/usr/share/doc/r-cran-dosefinding/run-unit-test is in r-cran-dosefinding 0.9-15-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 20 21 22 23 24 25 | #!/bin/sh -e
pkg=r-cran-dosefinding
if [ "$ADTTMP" = "" ] ; then
ADTTMP=`mktemp -d /tmp/${pkg}-test.XXXXXX`
fi
cd $ADTTMP
cp /usr/share/doc/${pkg}/tests/* $ADTTMP
gunzip *.gz
for runtest in *.R ; do
if [ "$runtest" = "testsplotDRMod.R" ] ; then
echo "$runtest consists only from comments and returns non-zero exit value ... ignored"
else
R CMD BATCH $runtest
RET=$?
if [ $RET -eq 0 ] ; then
echo $runtest passed
else
echo $runtest failed with return code $RET
exit 1
fi
fi
done
#rm -f $ADTTMP/*
#exit 0
|