| 1 |
#!/bin/sh -e |
| 2 |
|
| 3 |
debname=r-cran-estimatr |
| 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 |
|
| 14 |
rm $(grep -Rl randomizr) |
| 15 |
if apt-cache show r-cran-randomizr > /dev/null 2>/dev/null ; then |
| 16 |
echo "Package r-cran-randomizr is available now - please drop this paragraph from run-unit-test" |
| 17 |
exit -1 |
| 18 |
fi |
| 19 |
|
| 20 |
rm $(grep -Rl fabricatr) |
| 21 |
if apt-cache show r-cran-fabricatr > /dev/null 2>/dev/null ; then |
| 22 |
echo "Package r-cran-fabricatr is available now - please drop this paragraph from run-unit-test" |
| 23 |
exit -1 |
| 24 |
fi |
| 25 |
|
| 26 |
for testfile in *.R; do |
| 27 |
echo "BEGIN TEST $testfile" |
| 28 |
LC_ALL=C.UTF-8 R --no-save < $testfile |
| 29 |
done |
| 30 |
|