From 131cf5385ba31108c131d36f366183a8ac813727 Mon Sep 17 00:00:00 2001 From: Toni Uhlig Date: Sat, 10 Apr 2021 23:43:19 +0200 Subject: Added IPv6 support for -I / -E. * added another Python search path and try-catch ModuleNotFoundError again * run_tests.sh checks for OpenBSD netcat (required for -q) Signed-off-by: Toni Uhlig --- test/run_tests.sh | 19 ++++++++++++++----- 1 file changed, 14 insertions(+), 5 deletions(-) (limited to 'test') diff --git a/test/run_tests.sh b/test/run_tests.sh index 4b2603eff..ef7a15243 100755 --- a/test/run_tests.sh +++ b/test/run_tests.sh @@ -5,12 +5,14 @@ set -e LINE_SPACES=${LINE_SPACES:-48} MYDIR="$(realpath "$(dirname ${0})")" nDPId_test_EXEC="${2:-"$(realpath "${MYDIR}/../nDPId-test")"}" +JSON_VALIDATOR="${3:-"$(realpath "${MYDIR}/../examples/py-schema-validation/py-schema-validation.py")"}" -if [ $# -ne 1 -a $# -ne 2 ]; then +if [ $# -ne 1 -a $# -ne 2 -a $# -ne 3 ]; then cat <&2; exit 3; } function sighandler() { + printf '%s\n' ' Received shutdown SIGNAL, bye' >&2 rm -f "${LOCKFILE}" exit 4 } trap sighandler SIGINT SIGTERM if [ ! -x "${nDPId_test_EXEC}" ]; then -cat <&2 <&2; + printf '%s\n' "Your version: $(nc -h |& head -n1)" >&2; + exit 6; +} + nDPI_TEST_DIR="${nDPI_SOURCE_ROOT}/tests/pcap" cat <>"/tmp/nDPId-test-stderr/$(basename ${pcap_file}).out" if [ $? -eq 0 ]; then printf ' %s\n' '[OK]' -- cgit v1.2.3