diff options
Diffstat (limited to 'debian/tests')
-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 |