summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rwxr-xr-xtest/run_tests.sh5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/run_tests.sh b/test/run_tests.sh
index f5acfb4a5..df6fdd277 100755
--- a/test/run_tests.sh
+++ b/test/run_tests.sh
@@ -31,6 +31,11 @@ else
nDPI_SOURCE_ROOT="$(realpath "${1}")"
fi
+if [ ! -x "${nDPI_SOURCE_ROOT}/tests/pcap" ]; then
+ printf 'PCAP directory %s does not exist or you do not have the permission to access it.\n' "${nDPI_SOURCE_ROOT}/tests/pcap" >&2
+ exit 2
+fi
+
LOCKFILE="$(realpath "${0}").lock"
touch "${LOCKFILE}"