1
--- maradns-1.4.01/sqa/regressions/do.tests 2009-02-13 02:18:31.000000000 -0600
2
+++ maradns-1.4.02/sqa/regressions/do.tests 2010-01-07 22:20:16.000000000 -0600
6
# Tests to make sure most Mararc parameters work
7
-TESTS="mararc_n_admin_acl "
8
-TESTS=$TESTS"mararc_n_bind_address "
10
+# These tests are a little wonky are are done first
11
+# Try again if any of these tests fail
12
+WONKY="mararc_n_admin_acl "
13
+WONKY=$WONKY"mararc_n_default_rrany_set "
14
+WONKY=$WONKY"mararc_n_max_glueless_level "
15
+WONKY=$WONKY"mararc_n_max_queries_total "
16
+WONKY=$WONKY"mararc_n_min_ttl "
17
+WONKY=$WONKY"mararc_n_min_ttl_cname "
18
+WONKY=$WONKY"mararc_n_min_visible_ttl "
19
+WONKY=$WONKY"mararc_n_recursive_acl "
20
+WONKY=$WONKY"mararc_n_spammers "
21
+WONKY=$WONKY"mararc_n_synth_soa_serial "
24
+TESTS="mararc_n_bind_address "
25
TESTS=$TESTS"mararc_n_bind_star_handling "
26
TESTS=$TESTS"mararc_n_chroot_dir "
27
TESTS=$TESTS"mararc_n_csv2_default_zonefile "
28
TESTS=$TESTS"mararc_n_csv2_synthip_list "
29
TESTS=$TESTS"mararc_n_csv2_tilde_handling "
30
TESTS=$TESTS"mararc_n_debug_msg_level "
31
-TESTS=$TESTS"mararc_n_default_rrany_set "
32
TESTS=$TESTS"mararc_n_dns_port "
33
TESTS=$TESTS"mararc_n_dos_protection_level "
34
TESTS=$TESTS"mararc_n_handle_noreply "
36
TESTS=$TESTS"mararc_n_maradns_uid "
37
TESTS=$TESTS"mararc_n_max_ar_chain "
38
TESTS=$TESTS"mararc_n_max_chain "
39
-TESTS=$TESTS"mararc_n_max_glueless_level "
40
-TESTS=$TESTS"mararc_n_max_queries_total "
41
TESTS=$TESTS"mararc_n_max_total "
42
-TESTS=$TESTS"mararc_n_min_ttl "
43
-TESTS=$TESTS"mararc_n_min_ttl_cname "
44
-TESTS=$TESTS"mararc_n_min_visible_ttl "
45
TESTS=$TESTS"mararc_n_notthere_ip "
46
TESTS=$TESTS"mararc_n_recurse_delegation "
47
-TESTS=$TESTS"mararc_n_recursive_acl "
48
TESTS=$TESTS"mararc_n_remote_admin "
49
-TESTS=$TESTS"mararc_n_spammers "
50
TESTS=$TESTS"mararc_n_synth_soa_origin "
51
-TESTS=$TESTS"mararc_n_synth_soa_serial "
52
TESTS=$TESTS"mararc_n_timestamp_type "
53
TESTS=$TESTS"mararc_n_upstream_port "
54
TESTS=$TESTS"mararc_n_verbose_level "
56
# 192.168.1.116, 172.16.116.70, 10.1.2.3, and 126.254.254.9)
57
TESTS=$TESTS"private_ips "
59
+for test in $WONKY ; do
61
+ sh ./do.test > output.test
63
+ if ! cmp output.success output.test > /dev/null 2>&1 ; then
64
+ echo test $test failed\; trying again
66
+ sh ./do.test > output.test
68
+ if ! cmp output.success output.test > /dev/null 2>&1 ; then
69
+ echo test $test failed again
71
+ sh ./do.test > output.test
73
+ if ! cmp output.success output.test > /dev/null 2>&1
75
+ echo $test failed again\; giving up
78
+ echo $test finally succeeded
82
+ echo test $test succeeded this time
85
+ echo test $test succeeded
91
for test in $TESTS ; do
93
sh ./do.test > output.test
98
+echo All tests successful