#!/bin/sh -e

pkg=epigrass

# Trivial test
epirunner -h

if [ "$AUTOPKGTEST_TMP" = "" ] ; then
  AUTOPKGTEST_TMP=`mktemp -d /tmp/${pkg}-test.XXXXXX`
fi

cd $AUTOPKGTEST_TMP

cp -a /usr/share/doc/${pkg}/demos/* .

gunzip *.gz

# Run simulations with demo models
epirunner script.epg
epirunner rio.epg
epirunner flu.epg
epirunner sars.epg
epirunner star.epg
epirunner script.epg
epirunner mesh.epg

echo "PASS"
