File: run-unit-test

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

oname=repr
pkg=r-cran-`echo $oname | tr '[A-Z]' '[a-z]'`

if [ "$ADTTMP" = "" ] ; then
  ADTTMP=`mktemp -d /tmp/${pkg}-test.XXXXXX`
fi
cd $ADTTMP
cp -a /usr/share/doc/${pkg}/tests/* $ADTTMP
gunzip -r *
LC_ALL=C R --no-save < testthat.R
rm -fr $ADTTMP/*