1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
|
#!/bin/bash
. debian/tests/run-test-suite.sh
set -xeu
set -o pipefail
export LANG=C
export PATH=/usr/lib/ccache:$PATH
# set to "-v t/modules/ext_filter.t ..." to run only a few test, but verbose
TESTS=""
TESTUSER=tuserprefork
# The test framework assumes localhost resolves exclusively to 127.0.0.1
# (and not to ::1). So remove 'localhost' from the ::1 entry.
perl -p -i -e ' if (/^\s*::1\s+/) { s/\s+localhost\s+/ /g }' /etc/hosts
useradd --user-group --system --create-home -s /bin/bash $TESTUSER
cp -a debian/perl-framework $AUTOPKGTEST_TMP
cd $AUTOPKGTEST_TMP/perl-framework
export HARNESS_VERBOSE=1
run_tests mpm_prefork
|