add snifftest script check to make check

This commit is contained in:
toddouska
2015-04-18 08:35:47 -07:00
parent 99a9d221bc
commit 1e9647023c
6 changed files with 35 additions and 2 deletions

9
scripts/include.am Normal file
View File

@@ -0,0 +1,9 @@
# vim:ft=automake
# included from Top Level Makefile.am
# All paths should be given relative to the root
if BUILD_SNIFFTEST
dist_noinst_SCRIPTS+= scripts/sniffer-testsuite.test
endif
EXTRA_DIST += scripts/testsuite.pcap

13
scripts/sniffer-testsuite.test Executable file
View File

@@ -0,0 +1,13 @@
#!/bin/bash
#sniffer-testsuite.test
echo -e "\nStaring snifftest on testsuite.pcap...\n"
./sslSniffer/sslSnifferTest/snifftest ./scripts/testsuite.pcap ./certs/server-key.pem 127.0.0.1 11111
RESULT=$?
[ $RESULT -ne 0 ] && echo -e "\nsnifftest failed\n" && exit 1
echo -e "\nSuccess!\n"
exit 0

BIN
scripts/testsuite.pcap Normal file

Binary file not shown.