/usr/share/doc/r-cran-qtl/run-unit-test is in r-cran-qtl 1.40-8-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 | #!/bin/sh -e
pkg=r-cran-qtl
if [ "$ADTTMP" = "" ] ; then
ADTTMP=`mktemp -d /tmp/${pkg}-test.XXXXXX`
fi
cd $ADTTMP
cp -a /usr/share/doc/${pkg}/tests/* $ADTTMP
find . -name "*.gz" -exec gunzip \{\} \;
for runtest in `ls *.R` ; do
LC_ALL=C R --no-save < $runtest >/dev/null
if [ ! $? ] ; then
echo "Test ${runtest} failed"
exit 1
else
echo "Test ${runtest} passed"
fi
done
# rm -rf $ADTTMP/*
|