/usr/share/doc/r-cran-xtable/run-unit-test is in r-cran-xtable 1:1.8-2-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 | #!/bin/sh -e
pkg=r-cran-xtable
if [ "$ADTTMP" = "" ] ; then
ADTTMP=`mktemp -d /tmp/${pkg}-test.XXXXXX`
fi
cd $ADTTMP
cp -a /usr/share/doc/${pkg}/tests/* $ADTTMP
# gunzip *.gz
export LC_ALL=C
for test in *R
do
R CMD BATCH ${test}
if [ ! $? ] ; then
echo "Test ${test} failed"
exit 1
else
echo "Test ${test} passed"
fi
rm -f ${test}out .RData
done
rm -f $ADTTMP/*
|