summaryrefslogtreecommitdiffstats
path: root/debian/tests/t
diff options
context:
space:
mode:
Diffstat (limited to '')
-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