2 set testprefix "aspathtest "
8 # proc onetest { test_name note start } {
9 # proc headerline { line } {
12 proc parsertest { test_name } {
14 headerline "test $parserno"
15 onetest "parse $test_name" " ($parserno)" "$test_name:"
16 onetest "parse $test_name +empty_prepend" " (#$parserno)" "empty prepend $test_name:"
20 proc attrtest { test_name } {
22 headerline "aspath_attr test $attrno"
23 onetest "attr $test_name" " (#$attrno)" "$test_name"
37 parsertest "confmulti"
39 parsertest "tripleseq1"
40 parsertest "someprivate"
41 parsertest "allprivate"
43 parsertest "seq1extra"
45 parsertest "redundantset"
46 parsertest "reconcile_lead_asp"
47 parsertest "reconcile_new_asp"
48 parsertest "reconcile_confed"
49 parsertest "reconcile_start_trans"
50 parsertest "reconcile_start_trans4"
51 parsertest "reconcile_start_trans_error"
52 parsertest "redundantset2"
53 parsertest "zero-size overflow"
54 parsertest "zero-size overflow + valid segment"
55 parsertest "invalid segment type"
57 for {set i 0} {$i < 10} {incr i 1} { onetest "prepend $i" "" "prepend test $i"; }
58 for {set i 0} {$i < 5} {incr i 1} { onetest "aggregate $i" "" "aggregate test $i"; }
59 for {set i 0} {$i < 5} {incr i 1} { onetest "reconcile $i" "" "reconcile test $i"; }
60 for {set i 0} {$i < 22} {incr i 1} { onetest "compare $i" "" "left cmp "; }
62 onetest "empty_get" "" "empty_get_test"
64 attrtest "length too short"
65 attrtest "length too long"
66 attrtest "incorrect flag"
67 attrtest "as4_path, with as2 format data"
68 attrtest "as4, with incorrect attr length"
69 attrtest "basic 4-byte as-path"
70 attrtest "4b AS_PATH: too short"
71 attrtest "4b AS_PATH: too long"
72 attrtest "4b AS_PATH: too long2"
73 attrtest "4b AS_PATH: bad flags"
74 attrtest "4b AS4_PATH w/o AS_PATH"
75 attrtest "4b AS4_PATH: confed"