1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-14 03:39:02 +00:00

Added a minimal regression test suite for nsock.

This commit is contained in:
henri
2013-05-08 11:52:28 +00:00
parent 612b1c11ea
commit b51a943a48
7 changed files with 398 additions and 0 deletions

35
nsock/tests/run_tests.sh Executable file
View File

@@ -0,0 +1,35 @@
#!/bin/sh
# nsock regression test suite
# Same license as nmap -- see http://nmap.org/book/man-legal.html
EXEC_MAIN=./tests_main
if [ -n "$1" ]
then
case "$1" in
"gdb")
TRACER="gdb --args"
;;
"trace")
TRACER="strace"
;;
"leak")
TRACER="valgrind --leak-check=yes"
;;
"-h")
echo "Usage: `basename $0` [gdb|trace|leak]"
exit 0
;;
*)
echo "Unknown mode $1"
exit 1
;;
esac
fi
$TRACER $EXEC_MAIN