This is an automated email from the git hooks/post-receive script. guillem pushed a commit to branch master in repository dpkg.
View the commit online: https://git.dpkg.org/cgit/dpkg/dpkg.git/commit/?id=08911c47fdabf401dc3a4d7fffd324024c51a1ea commit 08911c47fdabf401dc3a4d7fffd324024c51a1ea Author: Guillem Jover <[email protected]> AuthorDate: Sat Nov 17 18:32:40 2018 +0100 debian: Add superficial autopkgtest functional tests This will execute the functional test suite on the installed system programs. --- Makefile.am | 3 +++ debian/changelog | 1 + debian/tests/control | 7 +++++++ debian/tests/test-not-root | 14 ++++++++++++++ debian/tests/test-root | 14 ++++++++++++++ 5 files changed, 39 insertions(+) diff --git a/Makefile.am b/Makefile.am index 8d9c1cba4..b78bb6f5b 100644 --- a/Makefile.am +++ b/Makefile.am @@ -80,6 +80,9 @@ EXTRA_DIST = \ debian/rules \ debian/shlibs.default \ debian/shlibs.override \ + debian/tests/control \ + debian/tests/test-not-root \ + debian/tests/test-root \ po/its/polkit.its \ po/its/polkit.loc \ $(test_scripts) \ diff --git a/debian/changelog b/debian/changelog index 9967966a6..4429ccc68 100644 --- a/debian/changelog +++ b/debian/changelog @@ -86,6 +86,7 @@ dpkg (1.19.3) UNRELEASED; urgency=medium - Switch to debhelper compatibility level 11. - Create the log file in postinst only if it does not exist. Prompted by Johannes Schauer <[email protected]>. + - Add superficial autopkgtest functional tests. * Test suite: - Add new shellcheck author test. diff --git a/debian/tests/control b/debian/tests/control new file mode 100644 index 000000000..51d565e8b --- /dev/null +++ b/debian/tests/control @@ -0,0 +1,7 @@ +Tests: test-not-root +Depends: make +Restrictions: superficial rw-build-tree + +Tests: test-root +Depends: make +Restrictions: superficial rw-build-tree needs-root breaks-testbed diff --git a/debian/tests/test-not-root b/debian/tests/test-not-root new file mode 100644 index 000000000..6b20dd87e --- /dev/null +++ b/debian/tests/test-not-root @@ -0,0 +1,14 @@ +#!/bin/sh + +set -e + +if [ "$(id -u)" = '0' ]; then + exit 1 +fi + +t=test-not-root + +mkdir -p $t +cd $t +../configure +make installcheck diff --git a/debian/tests/test-root b/debian/tests/test-root new file mode 100644 index 000000000..40210a572 --- /dev/null +++ b/debian/tests/test-root @@ -0,0 +1,14 @@ +#!/bin/sh + +set -e + +if [ "$(id -u)" != '0' ]; then + exit 1 +fi + +t=test-root + +mkdir -p $t +cd $t +../configure +make installcheck -- Dpkg.Org's dpkg

