[med-svn] r22116 - in trunk/packages/profbval/trunk/debian: . tests
Tatiana Malygina
latticetower-guest at moszumanska.debian.org
Wed Jun 8 17:41:22 UTC 2016
Author: latticetower-guest
Date: 2016-06-08 17:41:21 +0000 (Wed, 08 Jun 2016)
New Revision: 22116
Added:
trunk/packages/profbval/trunk/debian/tests/
trunk/packages/profbval/trunk/debian/tests/control
trunk/packages/profbval/trunk/debian/tests/installation-test
Log:
add simple testsuite
Added: trunk/packages/profbval/trunk/debian/tests/control
===================================================================
--- trunk/packages/profbval/trunk/debian/tests/control (rev 0)
+++ trunk/packages/profbval/trunk/debian/tests/control 2016-06-08 17:41:21 UTC (rev 22116)
@@ -0,0 +1,2 @@
+Tests: installation-test
+Depends: @
Added: trunk/packages/profbval/trunk/debian/tests/installation-test
===================================================================
--- trunk/packages/profbval/trunk/debian/tests/installation-test (rev 0)
+++ trunk/packages/profbval/trunk/debian/tests/installation-test 2016-06-08 17:41:21 UTC (rev 22116)
@@ -0,0 +1,25 @@
+#!/bin/sh
+# autopkgtest check: build and run with default test data
+# Author: Tatiana Malygina <merlettaia at gmail.com>
+
+set -e
+
+pkg=profbval
+
+if [ "$ADTTMP" = "" ] ; then
+ ADTTMP=$(mktemp -d /tmp/${pkg}-test.XXXXXX)
+ trap "rm -rf $ADTTMP" 0 INT QUIT ABRT PIPE TERM
+fi
+
+cd $ADTTMP
+
+cp -a /usr/share/doc/${pkg}/examples/* .
+find . -type f -name "*.gz" -exec gunzip \{\} \;
+for lnk in `find . -type l -name "*.gz"` ; do
+ ln -s `basename $(readlink $lnk) .gz` `echo $lnk | sed 's/\.gz$//'`
+ rm $lnk
+done
+
+# call example from man:
+profbval cad23.f cad23-fil.rdbProf cad23-fil.hssp cad23.profbval 9 6
+[ -s cad23.profbval ]
More information about the debian-med-commit
mailing list