Package: src:libseccomp Hey there,
I'm currently working on getting libseccomp promoted to main in Ubuntu. One thing that was identified as part of the MainInclusion process is that libseccomp ships with a test suite but it's not run at build time. Attached is a patch which turns on said testsuite and makes the build fail if any failure (not error) is reported by the regression test. The debian/rules change isn't as clean as some would expect because the regression testing script upstream always returns 0, so the actual output has to be diverted and parsed to detect failures. I'm now uploading this change directly to Ubuntu. Once it lands in Debian, a simple sync will bring Debian and Ubuntu back on the same source. -- Stéphane Graber Ubuntu developer http://www.ubuntu.com
=== modified file 'debian/changelog' --- debian/changelog 2012-12-07 11:38:03 +0000 +++ debian/changelog 2013-01-23 20:27:08 +0000 @@ -1,3 +1,9 @@ +libseccomp (1.0.1-1ubuntu1) UNRELEASED; urgency=low + + * Run the testsuite at build time. + + -- Stéphane Graber <stgra...@ubuntu.com> Wed, 23 Jan 2013 20:26:39 +0000 + libseccomp (1.0.1-1) unstable; urgency=low * New upstream release. === modified file 'debian/rules' --- debian/rules 2012-12-07 11:38:03 +0000 +++ debian/rules 2013-01-23 20:23:19 +0000 @@ -20,3 +20,8 @@ #sed -i -e 's/^prefix=.*/prefix=\/usr/' $(CURDIR)/libseccomp.pc \ # -e 's/^libdir=.*/libdir=$${prefix}\/lib\/$(DEB_HOST_MULTIARCH)/' \ # $(CURDIR)/libseccomp.pc + +override_dh_auto_test: + cd tests && ./regression | tee regression.out && \ + grep -q "tests failed: 0" regression.out && rm regression.out || \ + (rm -f regression.out && exit 1)
signature.asc
Description: OpenPGP digital signature