#!/bin/sh -e

pkg=r-bioc-limma
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 -r *
for test in *.R
do
  LC_ALL=C R --no-save < ${test}
done
rm -f $AUTOPKGTEST_TMP/*

