~samiam/MaraDNS

f0778823422a359314be9ec93741288e26d0928e — Sam Trenholme a month ago 7244a05
coLunacyDNS sqa: Clean up how we run production code tests
M deadwood-github/tools/coLunacyDNS/sqa/do.tests => deadwood-github/tools/coLunacyDNS/sqa/do.tests +5 -0
@@ 1,5 1,7 @@
#!/bin/sh

. ./testVars

# We need to be root to bind to port 53
if ! id | grep root > /dev/null 2>&1 ; then
        echo the tests must be run as a root user


@@ 127,6 129,9 @@ for test in $TESTS ; do
			exit 1
		fi
	fi
	ps auxw | awk "$PROCGET" | grep coLunacyDNS | awk '{print "kill " $1}
                ' | sh
	sleep 1
	cd "$HERE"
done
##########################################################################

M deadwood-github/tools/coLunacyDNS/sqa/sqa_oneanswer/do.test => deadwood-github/tools/coLunacyDNS/sqa/sqa_oneanswer/do.test +1 -0
@@ 6,6 6,7 @@ PROG="../../coLunacyDNS"

cat > test.lua << EOF
bindIp = "127.7.7.1" 
logLevel = 1
function processQuery(Q) -- Called for every DNS query received
  coDNS.log("Query " .. Q.coQuery)
  return {co1Type = "A", co1Data = "10.1.1.1"}