[med-svn] r24818 - in trunk/package_template: . tests
Andreas Tille
tille at moszumanska.debian.org
Sat Dec 9 07:09:09 UTC 2017
Author: tille
Date: 2017-12-09 07:09:08 +0000 (Sat, 09 Dec 2017)
New Revision: 24818
Added:
trunk/package_template/tests/
trunk/package_template/tests/control
trunk/package_template/tests/run-unit-test
Log:
Add template for autopkgtest
Added: trunk/package_template/tests/control
===================================================================
--- trunk/package_template/tests/control (rev 0)
+++ trunk/package_template/tests/control 2017-12-09 07:09:08 UTC (rev 24818)
@@ -0,0 +1,3 @@
+Tests: run-unit-test
+Depends: @
+Restrictions: allow-stderr
Added: trunk/package_template/tests/run-unit-test
===================================================================
--- trunk/package_template/tests/run-unit-test (rev 0)
+++ trunk/package_template/tests/run-unit-test 2017-12-09 07:09:08 UTC (rev 24818)
@@ -0,0 +1,15 @@
+#!/bin/bash
+set -e
+
+pkg=#PACKAGENAME#
+
+if [ "$AUTOPKGTEST_TMP" = "" ] ; then
+ AUTOPKGTEST_TMP=`mktemp -d /tmp/${pkg}-test.XXXXXX`
+ trap "rm -rf $AUTOPKGTEST_TMP" 0 INT QUIT ABRT PIPE TERM
+fi
+
+cp -a /usr/share/doc/${pkg}/examples/* $AUTOPKGTEST_TMP
+
+cd $AUTOPKGTEST_TMP
+
+#do_stuff_to_test_package#
More information about the debian-med-commit
mailing list