Debian Codegraph @

debian/tests/run-unit-test

raw
1 #!/bin/sh -e
2
3 oname=ModelMetrics
4 pkg=r-cran-`echo $oname | tr '[A-Z]' '[a-z]'`
5
6 if [ "$AUTOPKGTEST_TMP" = "" ] ; then
7 AUTOPKGTEST_TMP=`mktemp -d /tmp/${pkg}-test.XXXXXX`
8 trap "rm -rf $AUTOPKGTEST_TMP" 0 INT QUIT ABRT PIPE TERM
9 fi
10 cd $AUTOPKGTEST_TMP
11 cp -a /usr/share/doc/${pkg}/tests/* $AUTOPKGTEST_TMP
12 find . -name "*.gz" -exec gunzip \{\} \;
13 LC_ALL=C R --no-save < testthat.R