#!/bin/sh -e

pkg=r-cran-expm
if [ "$AUTOPKGTEST_TMP" = "" ] ; then
  AUTOPKGTEST_TMP=`mktemp -d /tmp/${pkg}-test.XXXXXX`
fi
cd $AUTOPKGTEST_TMP
cp /usr/share/doc/${pkg}/tests/* $AUTOPKGTEST_TMP
gunzip *.gz
for testx in `ls *.R` ; do
    R --no-save < $testx
done
