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