diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-15 17:29:55 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-15 17:29:55 +0000 |
commit | fd5e5f0288882f2c232b11e1a86a59a988ea25f6 (patch) | |
tree | f282b9d7906f52117728215a599fa6d8f2795377 /debian/tests | |
parent | Adding upstream version 1.66. (diff) | |
download | init-system-helpers-debian.tar.xz init-system-helpers-debian.zip |
Adding debian version 1.66.debian/1.66debian
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to '')
-rw-r--r-- | debian/tests/control | 7 | ||||
-rw-r--r-- | debian/tests/t | 16 |
2 files changed, 23 insertions, 0 deletions
diff --git a/debian/tests/control b/debian/tests/control new file mode 100644 index 0000000..22b132f --- /dev/null +++ b/debian/tests/control @@ -0,0 +1,7 @@ +Tests: t +Depends: @, + build-essential, + fakeroot, + fakechroot, + libtest-deep-perl +Restrictions: allow-stderr diff --git a/debian/tests/t b/debian/tests/t new file mode 100644 index 0000000..9b6b235 --- /dev/null +++ b/debian/tests/t @@ -0,0 +1,16 @@ +#!/bin/sh +set -eu + +export TEST_ON_REAL_SYSTEM=1 +export TEST_INSTALLED=1 + +# test with fakechroot +for test in t/*.t; do + echo "======== $(basename $test) (fakechroot) =======" + fakechroot fakeroot perl $test +done +# test with DPKG_ROOT +for test in t/*.t; do + echo "======== $(basename $test) (DPKG_ROOT) =======" + TEST_DPKG_ROOT=1 perl $test +done |