Debian Codegraph @

debian/tests/run-unit-test

raw symbols SCIP
1 #!/bin/sh -e
2
3 debname=r-cran-desc
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 cd tests
12
13 # Do NOT decompress everything that is compressed since compressed files in testthat/fixtures/ are expected by the test suite
14 gunzip -r testthat/test-*.gz
15
16 for testfile in *.R; do
17 echo "BEGIN TEST $testfile"
18 LC_ALL=C.UTF-8 R --no-save < $testfile
19 done
20