[med-svn] [Git][med-team/epigrass][master] Add functional test

Tássia Camões Araújo gitlab at salsa.debian.org
Sat Feb 20 18:36:29 GMT 2021



Tássia Camões Araújo pushed to branch master at Debian Med / epigrass


Commits:
21ff7b76 by Tassia Camoes Araujo at 2021-02-20T13:31:51-05:00
Add functional test

- - - - -


2 changed files:

- + debian/tests/control
- + debian/tests/run-unit-test


Changes:

=====================================
debian/tests/control
=====================================
@@ -0,0 +1,3 @@
+Tests: run-unit-test
+Depends: @
+Restrictions: allow-stderr


=====================================
debian/tests/run-unit-test
=====================================
@@ -0,0 +1,27 @@
+#!/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"



View it on GitLab: https://salsa.debian.org/med-team/epigrass/-/commit/21ff7b76346a1eba900f79224de6d839227eb948

-- 
View it on GitLab: https://salsa.debian.org/med-team/epigrass/-/commit/21ff7b76346a1eba900f79224de6d839227eb948
You're receiving this email because of your account on salsa.debian.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/debian-med-commit/attachments/20210220/7148e10b/attachment-0001.htm>


More information about the debian-med-commit mailing list