#!/bin/sh -e

pkg=r-cran-rocr

if [ "$ADTTMP" = "" ] ; then
  ADTTMP=`mktemp -d /tmp/${pkg}-test.XXXXXX`
fi
cd $ADTTMP
cp -a /usr/share/doc/${pkg}/unittests $ADTTMP
find . -name "*.gz" -exec gunzip \{\} \;
LC_ALL=C R --vanilla < unittests/testsuite.ROCR.R
rm -fr $ADTTMP/*

exit 0
