Debian Codegraph @

debian/tests/run-unit-test

raw
1 #!/bin/sh -e
2
3 pkgname=clubSandwich
4 debname=r-cran-clubsandwich
5
6 if [ "$AUTOPKGTEST_TMP" = "" ] ; then
7 AUTOPKGTEST_TMP=`mktemp -d /tmp/${debname}-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/$debname/tests/* $AUTOPKGTEST_TMP
12 gunzip -r *
13
14 hostarch=$(dpkg-architecture -qDEB_HOST_ARCH)
15
16 if [ "$hostarch" = "armhf" ] ; then
17 sed -i -e '/^test_that."clubSandwich agrees with metafor::robust() for CR0."/,/^})/d' testthat/test_rma-mv.R
18 fi
19
20 for testfile in *.R; do
21 echo "BEGIN TEST $testfile"
22 LC_ALL=C.UTF-8 R --no-save < $testfile
23 done
24