#!/bin/sh -e

pkg=r-cran-bbmisc
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 *
LC_ALL=C.UTF-8 R --no-save < run-all.R
rm -fr $AUTOPKGTEST_TMP/*
