Debian Codegraph @

debian/tests/run-unit-test

raw
1 #!/bin/sh -e
2
3 debname=r-cran-ggfortify
4
5 if [ "$AUTOPKGTEST_TMP" = "" ] ; then
6 AUTOPKGTEST_TMP=`mktemp -d /tmp/${debname}-test.XXXXXX`
7 trap "rm -rf $AUTOPKGTEST_TMP" 0 INT QUIT ABRT PIPE TERM
8 fi
9 cd $AUTOPKGTEST_TMP
10 cp -a /usr/share/doc/$debname/tests $AUTOPKGTEST_TMP
11 gunzip -r *
12 cd tests
13 for testfile in *.R; do
14 echo "BEGIN TEST $testfile"
15 LC_ALL=C.UTF-8 R --no-save < $testfile
16 done
17