File: run-unit-test

package info (click to toggle)
r-cran-mlmrev 1.0-6-2
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 1,864 kB
  • sloc: sh: 10; makefile: 1
file content (13 lines) | stat: -rw-r--r-- 278 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/bin/sh -e

pkg=r-cran-mlmrev

if [ "$ADTTMP" = "" ] ; then
  ADTTMP=`mktemp -d /tmp/${pkg}-test.XXXXXX`
fi
cd $ADTTMP
cp -a /usr/share/doc/${pkg}/tests/* $ADTTMP
find . -name "*.gz" -exec gunzip \{\} \;
for testx in `ls *.R` ; do
    LC_ALL=C.UTF-8 R --no-save < $testx
done