/usr/share/doc/r-cran-praise/run-unit-test is in r-cran-praise 1.0.0-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 | #!/bin/sh -e
pkg=r-cran-crayon
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 \{\} \;
# Make sure we are using C locale to pass all tests
LC_ALL=C R --no-save < testthat.R
rm -rf $ADTTMP/*
|