#!/bin/sh -e pkgname=rmarkdown debname=r-cran-rmarkdown if [ "$AUTOPKGTEST_TMP" = "" ] ; then AUTOPKGTEST_TMP=`mktemp -d /tmp/${debname}-test.XXXXXX` trap "rm -rf $AUTOPKGTEST_TMP" 0 INT QUIT ABRT PIPE TERM fi cd $AUTOPKGTEST_TMP cp -a /usr/share/$debname/tests/* $AUTOPKGTEST_TMP for testfile in *.R; do echo "BEGIN TEST $testfile" NOT_CRAN=true LC_ALL=C.UTF-8 R --no-save < $testfile done