Commit Graph
8125 Commits
Author SHA1 Message Date
Stephen Morris df1348ad2b [rt46602] Assign block of ports for each test
Some tests use more ports than just the query and control ports.
Each test that can run in parallel with other tests is now assigned
a unique block of 10 ports.

(cherry picked from commit e0ff77f9d3)
2018-02-22 11:11:12 +00:00
Stephen Morris 58de0adbf6 [rt46602] Allow catz system test to run in parallel with other tests
(cherry picked from commit 07341693e1)
2018-02-22 11:11:12 +00:00
Stephen Morris 01eb4d7c97 [rt46602] Miscellaneous changes to existing parallelised tests
Currently these tests are allow_query, rpzrecurse and serve-stale

1. Function to copy files and set port numbers renamed from copy_config
to copy_setports, as this is used to change the ports in Perl and Python
test scripts as well.
2. Changes to rpzrecurse/tests.sh to handle two calls to getopts (one to
parse port numbers, the other to parse rpzrecurse-specific options). Also
fixed various commands to use correct ports.
3. Updates to "clean.sh" scripts to ensure that all files created in the
test are removed.

(cherry picked from commit 78f2b9ca01)
2018-02-22 11:11:00 +00:00
Stephen Morris 4f68e67e5c [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.

(cherry picked from commit e7429b124b)
2018-02-22 11:09:59 +00:00
Stephen Morris ba694ca38c [rt46602] Miscellaneous tidying up of code cherry-picked from experimental branch
(cherry picked from commit e1a69e5d1f)
2018-02-22 11:08:42 +00:00
Ondřej SurýandStephen Morris a14bd48268 [rt46602] Allow parallel run of new dynamic port tests and the old ones
(cherry picked from commit 3b14d54fd7)
2018-02-22 11:08:05 +00:00
Ondřej SurýandStephen Morris cf7a86661a [rt46602] Put back original .gitignore files in the system tests
(cherry picked from commit caaec1ef6d)
2018-02-22 11:08:05 +00:00
Ondřej SurýandStephen Morris c5aa6ed87b [rt46602] Adjust rpzrecurse for dynamic port usage
Resolve conflict in run.sh during cherry-pick from an experimental branch.

(cherry picked from commit 2a435708e4)
2018-02-22 11:07:30 +00:00
Ondřej SurýandStephen Morris d37a52cc56 [rt46602] Add $SEDPORTS variable to help with @PORT@ and @CONTROLPORT@ replacement
(cherry picked from commit e6802badc0)
2018-02-22 11:02:14 +00:00
Ondřej SurýandStephen Morris a5c3077a9c [rt46602] Move most of ignored files to top of system tests directory
(cherry picked from commit d2c8286163)
2018-02-22 11:01:35 +00:00
Ondřej SurýandStephen Morris 112355adb8 [rt46602] Fix output from rndc reload
(cherry picked from commit 53bade5ece)
2018-02-22 11:01:35 +00:00
Ondřej SurýandStephen Morris 76dfb5c339 [rt46602] Add .gitignore to allow_query
(cherry picked from commit bc276f6c05)
2018-02-22 11:01:35 +00:00
Ondřej SurýandStephen Morris 93034acb4d [rt46602] Utilize echo_i to allow mixed test output
(cherry picked from commit 7e3c96c867)
2018-02-22 11:01:29 +00:00
Ondřej SurýandStephen Morris b8e866d60f [rt46602] Prefix R:<result> as R:<test>:<result>
Resolve conflict in run.sh during cherry-pick from experimental branch.

(cherry picked from commit 278c72fef6)
2018-02-22 11:01:08 +00:00
Ondřej SurýandStephen Morris bd5b36f7a4 [rt46602] Add echo_i function to print I:<testname>:string
(cherry picked from commit f7ac41757a)
2018-02-22 11:01:08 +00:00
Ondřej SurýandStephen Morris 57adb949a4 [rt46602] Add serve-stale working files to .gitignore
(cherry picked from commit cba162e70e)
2018-02-22 11:01:07 +00:00
Ondřej SurýandStephen Morris 1d10178e83 [rt46602] Convert allow_query to dynamic port
(cherry picked from commit 992a2bafec)
2018-02-22 11:01:01 +00:00
Ondřej SurýandStephen Morris 0ee883d443 [rt46602] Change the system tests script to support running individual tests on different ports
Resolved conflict in run.sh.

(cherry picked from commit fb00f18005)
2018-02-22 10:58:33 +00:00
Mark Andrews e0c9b5bd2b check that sed selects a non zero range of lines
(cherry picked from commit 146c16c06e)
2018-02-22 12:37:27 +11:00
Mark Andrews ea29bec179 Merge branch '67-stabilize-cacheclean-system-test' into 'master'
Stabilize cacheclean system test

Closes #67

See merge request isc-projects/bind9!43

(cherry picked from commit 643c8c27ff)

01de79b3 Assign an index to each check in the cacheclean system test
aeea1faf Do not overwrite cache dumps
2bbff06d Wait until a cache dump completes instead of waiting for a fixed amount of time
ca1049b2 Improve the way cache contents are searched for "ns.flushtest.example"
2018-02-20 16:08:59 -05:00
Mark Andrews f103cbee94 return failure count 2018-02-16 15:08:24 +11:00
Mark Andrews 118203925a conditionally declare strbuf 2018-02-16 15:06:51 +11:00
Mark Andrews 0c2c1615cb add brackets 2018-02-16 14:59:20 +11:00
Mark Andrews bb7a470a0d reorder test to silence cppcheck 2018-02-16 14:59:20 +11:00
Mark Andrews 5d9109c3b5 remove event which is only used for sizeof 2018-02-16 14:59:19 +11:00
Mark Andrews 6b77f4f258 remember the masters count 2018-02-16 14:58:18 +11:00
Mark Andrews e51c5d2e74 reorder test to silence cppcheck 2018-02-16 14:58:18 +11:00
Mark Andrews 04c5165b40 use %u instead of %d 2018-02-16 14:58:17 +11:00
Mark Andrews c35a870559 use %u instead of %d 2018-02-16 14:36:56 +11:00
Mark Andrews 45960706e6 use %u instead of %d 2018-02-16 14:36:56 +11:00
Mark Andrews 1f0313656f use %u instead of %d 2018-02-16 14:36:02 +11:00
Mark Andrews b883fa4c14 use %u instead of %d 2018-02-16 14:28:25 +11:00
Mark Andrews 2c13e20d2d use %u instead of %d 2018-02-16 14:28:25 +11:00
Mark Andrews 5517274e84 use %u instead of %d 2018-02-16 14:28:01 +11:00
Mark Andrews b7c19f168f use %u instead of %d 2018-02-16 14:24:44 +11:00
Mark Andrews 27ca8bc72f use %u instead of %d 2018-02-16 14:23:54 +11:00
Mark Andrews 6bbecea663 use %u instead of %d 2018-02-16 14:23:54 +11:00
Mark Andrews eb96b507da use %u instead of %d 2018-02-16 14:23:54 +11:00
Mark Andrews 5a69c0dbf3 make declarations consistent 2018-02-16 14:23:54 +11:00
Mark Andrews e04fb892dd report argument error in human form 2018-02-16 14:23:14 +11:00
Mark Andrews cdaaa7b987 use %u instead of %d 2018-02-16 14:21:58 +11:00
Mark Andrews bb68962050 use %u instead of %d 2018-02-16 14:21:58 +11:00
Mark Andrews 59b75eda7d use %u instead of %d 2018-02-16 14:21:05 +11:00
Mark Andrews 5016c832fd use %u instead of %d 2018-02-16 14:21:05 +11:00
Mark Andrews bb8dbcf334 use %u instead of %d 2018-02-16 14:21:05 +11:00
Mark Andrews d421597403 use %u instead of %i 2018-02-16 14:21:05 +11:00
Mark Andrews 203b5fc246 use %u instead of %d 2018-02-16 14:21:05 +11:00
Mark Andrews 813c074edd use %u rather than %d; pass a unsigned int pointer 2018-02-16 14:21:05 +11:00
Mark Andrews e99ee92b84 clear *logp 2018-02-16 14:18:04 +11:00
Mark Andrews 4396092e81 use %u instead of %d 2018-02-16 14:18:04 +11:00