From 9bf8974b38e7928f211b316770521d1e13af1efb Mon Sep 17 00:00:00 2001 From: dmiller Date: Sat, 2 Aug 2014 04:38:04 +0000 Subject: [PATCH] Let nsock use /bin/sh instead of Bash for testing --- nsock/tests/run_tests.sh | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/nsock/tests/run_tests.sh b/nsock/tests/run_tests.sh index d781f1753..f2b45f68d 100755 --- a/nsock/tests/run_tests.sh +++ b/nsock/tests/run_tests.sh @@ -1,4 +1,4 @@ -#!/bin/bash +#!/bin/sh # nsock regression test suite # Same license as nmap -- see http://nmap.org/book/man-legal.html @@ -51,29 +51,29 @@ then fi -function setup_echo_udp() { +setup_echo_udp() { $NCAT -l --udp --sh-exec cat 127.0.0.1 $PORT_UDP & pid_udp=$! echo "started UDP listener on port $PORT_UDP (pid $pid_udp)" } -function setup_echo_tcp() { +setup_echo_tcp() { $NCAT -l --keep-open --sh-exec cat 127.0.0.1 $PORT_TCP & pid_tcp=$! echo "started TCP listener on port $PORT_TCP (pid $pid_tcp)" } -function setup_echo_tcpssl() { +setup_echo_tcpssl() { $NCAT -l --ssl --keep-open --sh-exec cat 127.0.0.1 $PORT_TCPSSL & pid_tcpssl=$! echo "started TCP SSL listener on port $PORT_TCPSSL (pid $pid_tcpssl)" } -function cleanup_all() { +cleanup_all() { kill -s KILL $@ 2>&1 >> /dev/null } -function main() { +main() { setup_echo_udp $PORT_UDP setup_echo_tcp $PORT_TCP setup_echo_tcpssl $PORT_TCPSSL