#!/bin/sh -e

debname=r-cran-igraph

if [ "$AUTOPKGTEST_TMP" = "" ] ; then
    AUTOPKGTEST_TMP=`mktemp -d /tmp/${debname}-test.XXXXXX`
    trap "rm -rf $AUTOPKGTEST_TMP" 0 INT QUIT ABRT PIPE TERM
fi
cd $AUTOPKGTEST_TMP
cp -a /usr/share/doc/${debname}/tests/* .
# do not gunzip *.gml.gz files
gunzip testthat/*.R.gz
LC_ALL=C R --no-save < testthat.R
