#!/bin/sh -e

pkg=r-cran-plyr

if [ "$ADTTMP" = "" ] ; then
  ADTTMP=`mktemp -d /tmp/${pkg}-test.XXXXXX`
fi
cd $ADTTMP
cp /usr/share/doc/${pkg}/tests/* $ADTTMP
# Make sure we are using C locale to pass all tests
LC_ALL=C R --no-save < test-all.R
rm -f $ADTTMP/*
