#!/bin/sh -e

pkg=r-bioc-altcdfenvs
if [ "$ADTTMP" = "" ] ; then
  ADTTMP=`mktemp -d /tmp/${pkg}-test.XXXXXX`
fi
cd $ADTTMP
cp /usr/lib/R/site-library/altcdfenvs/UnitTests/* $ADTTMP
for runtest in `ls *.R` ; do
    R --no-save < $runtest
done
rm -f $ADTTMP/*
