File: run-unit-test

package info (click to toggle)
r-cran-sass 0.4.9%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 4,128 kB
  • sloc: cpp: 29,740; ansic: 956; sh: 668; makefile: 321; perl: 124
file content (15 lines) | stat: -rw-r--r-- 367 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/bin/sh -e

debname=r-cran-sass

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
tar xaf /usr/share/doc/$debname/tests.tar.xz
cd tests
for testfile in *.R; do
    echo "BEGIN TEST $testfile"
    LANG=C R --no-save < $testfile
done