sniffer-testsuite.test 597 B

1234567891011121314151617181920212223
  1. #!/bin/sh
  2. #sniffer-testsuite.test
  3. echo -e "\nStaring snifftest on testsuite.pcap...\n"
  4. ./sslSniffer/sslSnifferTest/snifftest ./scripts/testsuite.pcap ./certs/server-key.pem 127.0.0.1 11111
  5. RESULT=$?
  6. [ $RESULT -ne 0 ] && echo -e "\nsnifftest failed\n" && exit 1
  7. if test $# -ne 0 && test "x$1" = "x-6";
  8. then
  9. echo -e "\nStaring snifftest on sniffer-ipv6.pcap...\n"
  10. ./sslSniffer/sslSnifferTest/snifftest ./scripts/sniffer-ipv6.pcap ./certs/server-key.pem ::1 11111
  11. RESULT=$?
  12. [ $RESULT -ne 0 ] && echo -e "\nsnifftest (ipv6) failed\n" && exit 1
  13. fi
  14. echo -e "\nSuccess!\n"
  15. exit 0