Debian Codegraph @

debian/tests/run-unit-test

raw symbols SCIP
1 #!/bin/sh -e
2
3 # Attention: as it is explained in
4 # https://github.com/r-lib/fs/issues/359#issuecomment-986707338
5 # there are failing tests if run as root
6
7 debname=r-cran-fs
8
9 if [ "$AUTOPKGTEST_TMP" = "" ] ; then
10 AUTOPKGTEST_TMP=`mktemp -d /tmp/${debname}-test.XXXXXX`
11 trap "rm -rf $AUTOPKGTEST_TMP" 0 INT QUIT ABRT PIPE TERM
12 fi
13 cd $AUTOPKGTEST_TMP
14 cp -a /usr/share/doc/$debname/tests $AUTOPKGTEST_TMP
15 gunzip -r *
16 cd tests
17 for testfile in *.R; do
18 echo "BEGIN TEST $testfile"
19 LC_ALL=C.UTF-8 R --no-save < $testfile
20 done
21