diff options
author | Ondrej Zajicek (work) <santiago@crfreenet.org> | 2019-12-17 00:01:53 +0100 |
---|---|---|
committer | Ondrej Zajicek (work) <santiago@crfreenet.org> | 2019-12-17 00:01:53 +0100 |
commit | 3dabf7b8d09c3188ea41b7e2f763397946943778 (patch) | |
tree | cbff2eaaf2be437defb87ff0fcb77427295400d5 /filter/test.conf | |
parent | 3232d1718636eb7617fedc7b27378cd1d8f8691d (diff) |
Test: Improve filter_test
Initial parsing of test.conf must be done directly in filter_test main,
while reconfiguration is handled as a regular test. Also fix several
minor issues in test code.
Diffstat (limited to 'filter/test.conf')
-rw-r--r-- | filter/test.conf | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/filter/test.conf b/filter/test.conf index 7152ee72..d0941e11 100644 --- a/filter/test.conf +++ b/filter/test.conf @@ -1271,10 +1271,9 @@ protocol static route 2001:0db8:85a3:8a2e::/64 max 96 as 1000; } -function test_roa_check() +function t_roa_check() prefix pfx; { - # cannot be tested in __startup(), sorry bt_assert(roa_check(r4, 10.10.0.0/16, 1000) = ROA_UNKNOWN); bt_assert(roa_check(r4, 10.0.0.0/8, 1000) = ROA_UNKNOWN); bt_assert(roa_check(r4, 10.110.0.0/16, 1000) = ROA_VALID); @@ -1329,7 +1328,10 @@ prefix pfx; bt_assert(pfx.asn = 1234); } -bt_test_suite(test_roa_check, "Testing ROA"); +bt_test_suite(t_roa_check, "Testing ROA"); + + + /* * Testing Mixed Net Types |