[rt46602] Ensure that tests running in parallel use unique ports
Via an intermediate make file, tests that have been modified to be able to run in parallel are assigned unique query and control port numbers (other than 5300 and 9953 respectively). Tests that have not yet been modified all use ports 5300 and 9953, so must be run sequentially.
This commit is contained in:
@@ -72,7 +72,10 @@ KRB5_CONFIG=/dev/null
|
||||
# The "stress" test is not run by default since it creates enough
|
||||
# load on the machine to make it unusable to other users.
|
||||
# v6synth
|
||||
SUBDIRS="acl additional addzone auth autosign builtin
|
||||
#
|
||||
# List of tests that use ports 5300 and 9953. For this reason, these must
|
||||
# be run sequentially.
|
||||
SEQUENTIALDIRS="acl additional addzone auth autosign builtin
|
||||
cacheclean case catz cds chain
|
||||
checkconf @CHECKDS@ checknames checkzone cookie @COVERAGE@
|
||||
database digdelv dlv dlz dlzexternal
|
||||
@@ -88,6 +91,15 @@ SUBDIRS="acl additional addzone auth autosign builtin
|
||||
tsig tsiggss unknown upforwd verify views wildcard xfer
|
||||
xferquota zero zonechecks"
|
||||
|
||||
# List of tests that use unique ports (other than 5300 and 9953). These
|
||||
# tests can be run in parallel.
|
||||
#
|
||||
# This symbol must be kept in step with the PARALLEL macro in Makefile.in
|
||||
PARALLELDIRS="allow_query rps-recurse serve-stale"
|
||||
|
||||
SUBDIRS="$SEQUENTIALDIRS $PARALLELDIRS"
|
||||
|
||||
|
||||
# Things that are different on Windows
|
||||
KILL=kill
|
||||
DIFF=diff
|
||||
@@ -191,6 +203,10 @@ fi
|
||||
TESTNAME="`basename $PWD`"
|
||||
|
||||
echo_i() {
|
||||
# Without formatting
|
||||
echo "I:$TESTNAME:$@" >> test.output
|
||||
|
||||
# With formatting
|
||||
echoinfo "I:$TESTNAME:$@"
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user