Commit Graph

7280 Commits

Author SHA1 Message Date
Stephen Morris
0342f7e559 [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)
(cherry picked from commit 4f68e67e5c)
(cherry picked from commit 704e2324e3)
2018-02-25 09:21:52 -08:00
Stephen Morris
8fa27c7358 [rt46602] Miscellaneous tidying up of code cherry-picked from experimental branch
(cherry picked from commit e1a69e5d1f)
(cherry picked from commit ba694ca38c)
(cherry picked from commit c7bf09069d)
2018-02-25 09:21:01 -08:00
Ondřej Surý
6f801ceceb [rt46602] Allow parallel run of new dynamic port tests and the old ones
(cherry picked from commit 3b14d54fd7)
(cherry picked from commit a14bd48268)
(cherry picked from commit fbd24ff359)
2018-02-25 09:21:00 -08:00
Ondřej Surý
d080192323 [rt46602] Put back original .gitignore files in the system tests
(cherry picked from commit caaec1ef6d)
(cherry picked from commit cf7a86661a)
(cherry picked from commit ff2356395b)
2018-02-25 09:21:00 -08:00
Ondřej Surý
043bd61301 [rt46602] Adjust rpzrecurse for dynamic port usage
Resolve conflict in run.sh during cherry-pick from an experimental branch.

(cherry picked from commit 2a435708e4)
(cherry picked from commit c5aa6ed87b)
(cherry picked from commit 9bdb4d67f1)
2018-02-25 09:20:58 -08:00
Ondřej Surý
0173209dda [rt46602] Add $SEDPORTS variable to help with @PORT@ and @CONTROLPORT@ replacement
(cherry picked from commit e6802badc0)
(cherry picked from commit d37a52cc56)
(cherry picked from commit 76848ca9d4)
2018-02-25 09:17:30 -08:00
Ondřej Surý
ffa6566643 [rt46602] Move most of ignored files to top of system tests directory
(cherry picked from commit d2c8286163)
(cherry picked from commit a5c3077a9c)
(cherry picked from commit f11975087c)
2018-02-25 09:17:27 -08:00
Ondřej Surý
0f99295e12 [rt46602] Fix output from rndc reload
(cherry picked from commit 53bade5ece)
(cherry picked from commit 112355adb8)
(cherry picked from commit 77e5c32baf)
2018-02-25 09:14:51 -08:00
Ondřej Surý
dce8925c61 [rt46602] Add .gitignore to allow_query
(cherry picked from commit bc276f6c05)
(cherry picked from commit 76dfb5c339)
(cherry picked from commit 51ccb16653)
2018-02-25 09:14:50 -08:00
Ondřej Surý
2d8cf8c8cc [rt46602] Utilize echo_i to allow mixed test output
(cherry picked from commit 7e3c96c867)
(cherry picked from commit 93034acb4d)
(cherry picked from commit 9bcf40cbed)
2018-02-25 09:14:50 -08:00
Ondřej Surý
585d362afe [rt46602] Prefix R:<result> as R:<test>:<result>
Resolve conflict in run.sh during cherry-pick from experimental branch.

(cherry picked from commit 278c72fef6)
(cherry picked from commit b8e866d60f)
(cherry picked from commit ff56ecafc4)
2018-02-25 09:14:50 -08:00
Ondřej Surý
9cff66b3b9 [rt46602] Add echo_i function to print I:<testname>:string
(cherry picked from commit f7ac41757a)
(cherry picked from commit bd5b36f7a4)
(cherry picked from commit cdc72937d6)
2018-02-25 09:14:47 -08:00
Ondřej Surý
5b45f67f61 [rt46602] Add serve-stale working files to .gitignore
(cherry picked from commit cba162e70e)
(cherry picked from commit 57adb949a4)
(cherry picked from commit 2327f41b35)
2018-02-25 09:14:30 -08:00
Ondřej Surý
10da6c8a87 [rt46602] Convert allow_query to dynamic port
(cherry picked from commit 992a2bafec)
(cherry picked from commit 1d10178e83)
(cherry picked from commit 1a568d5a76)
2018-02-25 09:14:30 -08:00
Ondřej Surý
a74f729d21 [rt46602] Change the system tests script to support running individual tests on different ports
Resolved conflict in run.sh.

(cherry picked from commit fb00f18005)
(cherry picked from commit 0ee883d443)
(cherry picked from commit 75428f4951)
2018-02-25 09:14:30 -08:00
Mark Andrews
29652923f8 remove 'check flushtree clears adb correctly' test 2018-02-22 14:35:40 +11:00
Michał Kępień
598d5538fe Improve the way cache contents are searched for "ns.flushtest.example"
During the "check flushtree clears adb correctly" check, expecting
"ns.flushtest.example" to always be the first name in the ADB dump is
fragile, because in a certain corner case "a.root-servers.nil" will be
the first name instead.

As the purpose of the relevant check is to ensure "ns.flushtest.example"
is removed from ADB by "rndc flushtree flushtest.example", search the
entire list of names present in ADB instead of just the first entry when
looking for "ns.flushtest.example".

(cherry picked from commit ca1049b2f3)
(cherry picked from commit 3513a585e3)
2018-02-21 11:28:21 +11:00
Michał Kępień
580fb63a68 Wait until a cache dump completes instead of waiting for a fixed amount of time
Dumping the cache is an asynchronous operation, so sleeping for a fixed
amount of time after running "rndc dumpdb" is imperfect as dumping cache
contents may take longer than expected on slower machines.  Instead of
always sleeping for 1 second, wait until the "; Dump complete" line
appears in the dump or 10 seconds pass, whichever comes first.

(cherry picked from commit 2bbff06d36)
(cherry picked from commit e617b91527)
2018-02-21 11:28:16 +11:00
Michał Kępień
44e946e9e9 Do not overwrite cache dumps
Unless configured otherwise in named.conf, "rndc dumpdb" causes a cache
dump to be written to a file called "named_dump.db" in the working
directory of the given named instance.  Repeatedly using this command
throughout different checks in the cacheclean system test causes cache
dumps for older checks to be overwritten, which hinders failure
diagnosis.  Prevent this by moving each cache dump to a check-specific
location after running "rndc dumpdb".

Furthermore, during the "check flushtree clears adb correctly" check,
dump_cache() is called twice without renaming the resulting files.
Prevent the first cache dump from being overwritten by moving it to a
different file before calling "rndc dumpdb" for the second time.

(cherry picked from commit aeea1faf01)
(cherry picked from commit dcd91ab322)
2018-02-21 11:26:58 +11:00
Michał Kępień
5c0afa76f7 Assign an index to each check in the cacheclean system test
This will enable storing per-check forensic data, which facilitates
troubleshooting test failures.

(cherry picked from commit 01de79b332)
(cherry picked from commit 7679819e15)
2018-02-21 10:52:43 +11:00
Mark Andrews
4404fcb384 return failure count 2018-02-16 18:42:11 +11:00
Mark Andrews
7245f12d3e conditionally declare strbuf 2018-02-16 18:41:31 +11:00
Mark Andrews
872543eca7 add brackets 2018-02-16 18:37:05 +11:00
Mark Andrews
5de799a1c8 reorder test to silence cppcheck 2018-02-16 18:37:05 +11:00
Mark Andrews
32166fae3b remove event which is only used for sizeof 2018-02-16 18:37:05 +11:00
Mark Andrews
a4d8e7526a reorder test to silence cppcheck 2018-02-16 18:36:17 +11:00
Mark Andrews
f7c7a87cb4 use %u instead of %d 2018-02-16 18:30:18 +11:00
Mark Andrews
b7a4a93b0d use %u instead of %d 2018-02-16 18:17:59 +11:00
Mark Andrews
cc21083141 use %u instead of %d 2018-02-16 18:16:48 +11:00
Mark Andrews
b3d10f1a43 use %u instead of %d 2018-02-16 18:06:58 +11:00
Mark Andrews
62d579f152 use %u instead of %d 2018-02-16 18:05:01 +11:00
Mark Andrews
41ac666f4a use %u instead of %d 2018-02-16 18:04:27 +11:00
Mark Andrews
5c91a79de9 use %u instead of %d 2018-02-16 18:02:21 +11:00
Mark Andrews
3ddd77519d use %u instead of %d 2018-02-16 17:58:39 +11:00
Mark Andrews
e3bc8bc293 use %u instead of %d 2018-02-16 17:53:13 +11:00
Mark Andrews
75691e0d90 use %u instead of %d 2018-02-16 17:53:13 +11:00
Mark Andrews
01fd4fcca2 use %u instead of %d 2018-02-16 17:51:07 +11:00
Mark Andrews
a365729e6a make declarations consistent 2018-02-16 17:49:02 +11:00
Mark Andrews
5962de0c3e report argument error in human form 2018-02-16 17:49:02 +11:00
Mark Andrews
8498787e55 use %u instead of %d 2018-02-16 17:49:02 +11:00
Mark Andrews
2194d8674b use %u instead of %d 2018-02-16 17:49:02 +11:00
Mark Andrews
faabe3071c use %u instead of %d 2018-02-16 17:49:02 +11:00
Mark Andrews
028a719b2f use %u instead of %d 2018-02-16 17:49:02 +11:00
Mark Andrews
5c28ae51c5 use %u instead of %d 2018-02-16 17:49:02 +11:00
Mark Andrews
92a93137fc use %u instead of %i 2018-02-16 17:46:46 +11:00
Mark Andrews
abc877a61a use %u rather than %d; pass a unsigned int pointer 2018-02-16 17:44:39 +11:00
Mark Andrews
92eeb710c3 clear *logp 2018-02-16 17:44:39 +11:00
Mark Andrews
8251280d02 use %u instead of %d 2018-02-16 17:44:39 +11:00
Mark Andrews
2b64fa5994 signed vs unsigned fixes 2018-02-16 17:42:57 +11:00
Evan Hunt
950777feb8 [v9_9] copyrights 2018-02-10 16:32:35 -08:00