From fa079d2346ec105d73fcb3ccf500c48aa9f219c0 Mon Sep 17 00:00:00 2001 From: Toni Uhlig Date: Wed, 12 May 2021 12:24:54 +0200 Subject: Git submodule libnDPI update. * enable ctest to run integration tests (**only** if BUILD_NDPI=ON) Signed-off-by: Toni Uhlig --- test/run_tests.sh | 29 +++++++++++++++++------------ 1 file changed, 17 insertions(+), 12 deletions(-) (limited to 'test/run_tests.sh') diff --git a/test/run_tests.sh b/test/run_tests.sh index 4bebf7a3c..6268fc39d 100755 --- a/test/run_tests.sh +++ b/test/run_tests.sh @@ -9,18 +9,24 @@ NETCAT_EXEC="nc -q 0 -l 127.0.0.1 9000" JSON_VALIDATOR="$(realpath "${3:-"${MYDIR}/../examples/py-schema-validation/py-schema-validation.py"}")" SEMN_VALIDATOR="$(realpath "${4:-"${MYDIR}/../examples/py-semantic-validation/py-semantic-validation.py"}")" -if [ $# -eq 0 -a -x "${MYDIR}/../libnDPI/tests/pcap" ]; then - nDPI_SOURCE_ROOT="${MYDIR}/../libnDPI" -elif [ $# -ne 1 -a $# -ne 2 -a $# -ne 3 -a $# -ne 4 ]; then +function usage() +{ cat <&2 <