dwww Home | Show directory contents | Find package

#!/bin/sh -e

debname=r-cran-desc

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
cd tests

# Do NOT decompress everything that is compressed since compressed files in testthat/fixtures/ are expected by the test suite
gunzip -r testthat/test-*.gz

for testfile in *.R; do
    echo "BEGIN TEST $testfile"
    LC_ALL=C.UTF-8 R --no-save < $testfile
done

Generated by dwww version 1.15 on Sat May 18 09:08:40 CEST 2024.