summaryrefslogtreecommitdiffstats
path: root/debian/tests/t
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-28 09:02:52 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-28 09:02:52 +0000
commit185cf3109eee1fe86a2786a910b7ae1890135ba8 (patch)
tree5d4cd88809e5e42d77df8bf18b943d24ece216f1 /debian/tests/t
parentAdding upstream version 1.65.2. (diff)
downloadinit-system-helpers-185cf3109eee1fe86a2786a910b7ae1890135ba8.tar.xz
init-system-helpers-185cf3109eee1fe86a2786a910b7ae1890135ba8.zip
Adding debian version 1.65.2.debian/1.65.2debian
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'debian/tests/t')
-rw-r--r--debian/tests/t16
1 files changed, 16 insertions, 0 deletions
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