Package: mawk
Version: 1.3.3-11
Severity: wishlist
Tags: patch

The enclosed patch provides a testcase for the autodebtest/autopkgtest
automatic package testing infrastructure.  With this patch applied,
the source package can be used with the testing framework to test an
installed version of the .deb.

The patch supplies one test case, which runs the upstream mawktest
script but using the installed version of mawk.  The upstream tests
are not systematically broken out into individual tests, so it's
easiest to represent the whole lot as one test.

For more information on this automatic package testing infrastructure,
see:
 autodebtest (in sid, will shortly be renamed to autopkgtest)
 http://lists.debian.org/debian-devel/2006/02/msg00035.html
 https://wiki.ubuntu.com/AutomatedTesting

The reference documentation for the testing system will be migrating
into the autopkgtest package at some point.

Ian.

diff --exclude 'parse.[ch]' -ruN orig/mawk-1.3.3/debian/tests/control 
mawk-1.3.3/debian/tests/control
--- orig/mawk-1.3.3/debian/tests/control        1970-01-01 01:00:00.000000000 
+0100
+++ mawk-1.3.3/debian/tests/control     2006-01-31 15:25:36.081499137 +0000
@@ -0,0 +1,2 @@
+Tests: mawktest
+Restrictions: rw-build-tree
diff --exclude 'parse.[ch]' -ruN orig/mawk-1.3.3/debian/tests/mawktest 
mawk-1.3.3/debian/tests/mawktest
--- orig/mawk-1.3.3/debian/tests/mawktest       1970-01-01 01:00:00.000000000 
+0100
+++ mawk-1.3.3/debian/tests/mawktest    2006-01-31 15:25:36.081499137 +0000
@@ -0,0 +1,9 @@
+#!/bin/sh
+set -e
+sed -e '
+       /^PATH=/d;
+       /^mawk -W version/ s/$/ 2>&1/;
+' <test/mawktest >"$TMPDIR/mawktest"
+chmod +x "$TMPDIR/mawktest"
+cd test
+"$TMPDIR/mawktest"


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to