~ubuntu-branches/debian/sid/r-cran-rmarkdown/sid

« back to all changes in this revision

Viewing changes to debian/tests/run-unit-test

  • Committer: Package Import Robot
  • Author(s): Andreas Tille
  • Date: 2018-01-31 10:33:10 UTC
  • Revision ID: package-import@ubuntu.com-20180131103310-gqj6w22wr9x1rd5z
Tags: 1.8+dfsg-1
Initial release (closes: #884115)

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/bin/sh -e
 
2
 
 
3
pkgname=rmarkdown
 
4
debname=r-cran-rmarkdown
 
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
for testfile in *.R; do
 
14
    echo "BEGIN TEST $testfile"
 
15
    LC_ALL=C R --no-save < $testfile
 
16
done
 
17