Source: cpio Version: 2.15+dfsg-2 Severity: wishlist Tags: patch Hi,
Please find attached a patch to run the testsuite as part of the autopkgtests. As documented in the test harness, in lieu of shipping a 500K+ binary in the cpio binary package, we rebuild the package simply for the 'genfile' text fixture generator. We do still test against the system cpio though, and this can be easily confirmed by installing an older version of cpio (eg. 2.13) and observing some of the tests fail. Thanks to Zaiba Sanglikar <zaiba.sangli...@toshiba-tsip.com> for requesting this feature. Regards, -- ,''`. : :' : Chris Lamb `. `'` la...@debian.org / chris-lamb.co.uk `-
diff --git a/debian/tests/control b/debian/tests/control new file mode 100644 index 0000000..64c9054 --- /dev/null +++ b/debian/tests/control @@ -0,0 +1,3 @@ +Tests: testsuite +Depends: @, @builddeps@ +Restrictions: rw-build-tree, allow-stderr diff --git a/debian/tests/testsuite b/debian/tests/testsuite new file mode 100644 index 0000000..bfed7d2 --- /dev/null +++ b/debian/tests/testsuite @@ -0,0 +1,17 @@ +#!/bin/sh + +set -ex + +echo "# Building package (for genfile)" +echo +debian/rules build + +echo "# Running tests against installed cpio" +echo +(cd tests && ./testsuite) || ret=$? + +echo "# cat testsuite.log" +echo +cat testsuite.log + +exit $ret