File: run-unit-test

package info (click to toggle)
r-cran-xtable 1%3A1.8-4-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, forky, sid, trixie
  • size: 992 kB
  • sloc: sh: 19; makefile: 2
file content (22 lines) | stat: -rw-r--r-- 432 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/bin/sh -e

pkg=r-cran-xtable
if [ "$AUTOPKGTEST_TMP" = "" ] ; then
  AUTOPKGTEST_TMP=`mktemp -d /tmp/${pkg}-test.XXXXXX`
fi
cd $AUTOPKGTEST_TMP
cp -a /usr/share/doc/${pkg}/tests/* $AUTOPKGTEST_TMP
# gunzip *.gz
export LC_ALL=C
for test in *R
do
  R CMD BATCH ${test}
  if [ ! $? ] ; then
    echo "Test ${test} failed"
    exit 1
  else
    echo "Test ${test} passed"
  fi
  rm -f ${test}out .RData
done
rm -f $AUTOPKGTEST_TMP/*