#!/bin/sh -e

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

