START	usr.sbin/bgpd/unittests	2025-03-20T07:19:39Z

==== run-regress-rde_sets_test ====
cc -O2 -pipe  -I/usr/src/regress/usr.sbin/bgpd/unittests -I/usr/src/regress/usr.sbin/bgpd/unittests/../../../../usr.sbin/bgpd -g  -MD -MP  -c /usr/src/regress/usr.sbin/bgpd/unittests/rde_sets_test.c
cc -O2 -pipe  -I/usr/src/regress/usr.sbin/bgpd/unittests -I/usr/src/regress/usr.sbin/bgpd/unittests/../../../../usr.sbin/bgpd -g  -MD -MP  -c /usr/src/regress/usr.sbin/bgpd/unittests/../../../../usr.sbin/bgpd/rde_sets.c
cc -O2 -pipe  -I/usr/src/regress/usr.sbin/bgpd/unittests -I/usr/src/regress/usr.sbin/bgpd/unittests/../../../../usr.sbin/bgpd -g  -MD -MP  -c /usr/src/regress/usr.sbin/bgpd/unittests/../../../../usr.sbin/bgpd/timer.c
cc -O2 -pipe  -I/usr/src/regress/usr.sbin/bgpd/unittests -I/usr/src/regress/usr.sbin/bgpd/unittests/../../../../usr.sbin/bgpd -g  -MD -MP  -c /usr/src/regress/usr.sbin/bgpd/unittests/../../../../usr.sbin/bgpd/log.c
cc -O2 -pipe  -I/usr/src/regress/usr.sbin/bgpd/unittests -I/usr/src/regress/usr.sbin/bgpd/unittests/../../../../usr.sbin/bgpd -g  -MD -MP  -c /usr/src/regress/usr.sbin/bgpd/unittests/../../../../usr.sbin/bgpd/monotime.c
cc   -o rde_sets_test rde_sets_test.o rde_sets.o timer.o log.o monotime.o -lutil
./rde_sets_test
OK

==== run-regress-rde_trie_test ====
cc -O2 -pipe  -I/usr/src/regress/usr.sbin/bgpd/unittests -I/usr/src/regress/usr.sbin/bgpd/unittests/../../../../usr.sbin/bgpd -g  -MD -MP  -c /usr/src/regress/usr.sbin/bgpd/unittests/rde_trie_test.c
/usr/src/regress/usr.sbin/bgpd/unittests/rde_trie_test.c:54:15: warning: call to undeclared function 'inet_net_pton'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
                if ((bits = inet_net_pton(AF_INET, s, &h->v4, sizeof(h->v4))) == -1)
                            ^
/usr/src/regress/usr.sbin/bgpd/unittests/rde_trie_test.c:103:7: warning: call to undeclared function 'inet_ntop'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
                if (inet_ntop(AF_INET, &p->v4, buf, sizeof(buf)) == NULL)
                    ^
/usr/src/regress/usr.sbin/bgpd/unittests/rde_trie_test.c:103:52: warning: comparison between pointer and integer ('int' and 'void *') [-Wpointer-integer-compare]
                if (inet_ntop(AF_INET, &p->v4, buf, sizeof(buf)) == NULL)
                    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^  ~~~~
/usr/src/regress/usr.sbin/bgpd/unittests/rde_trie_test.c:106:7: warning: call to undeclared function 'inet_ntop'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
                if (inet_ntop(AF_INET6, &p->v6, buf, sizeof(buf)) == NULL)
                    ^
/usr/src/regress/usr.sbin/bgpd/unittests/rde_trie_test.c:106:53: warning: comparison between pointer and integer ('int' and 'void *') [-Wpointer-integer-compare]
                if (inet_ntop(AF_INET6, &p->v6, buf, sizeof(buf)) == NULL)
                    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^  ~~~~
5 warnings generated.
cc -O2 -pipe  -I/usr/src/regress/usr.sbin/bgpd/unittests -I/usr/src/regress/usr.sbin/bgpd/unittests/../../../../usr.sbin/bgpd -g  -MD -MP  -c /usr/src/regress/usr.sbin/bgpd/unittests/../../../../usr.sbin/bgpd/rde_trie.c
cc -O2 -pipe  -I/usr/src/regress/usr.sbin/bgpd/unittests -I/usr/src/regress/usr.sbin/bgpd/unittests/../../../../usr.sbin/bgpd -g  -MD -MP  -c /usr/src/regress/usr.sbin/bgpd/unittests/../../../../usr.sbin/bgpd/util.c
cc   -o rde_trie_test rde_trie_test.o rde_trie.o util.o rde_sets.o timer.o log.o monotime.o -lutil
# cannot run without parameter

==== run-regress-rde_community_test ====
cc -O2 -pipe  -I/usr/src/regress/usr.sbin/bgpd/unittests -I/usr/src/regress/usr.sbin/bgpd/unittests/../../../../usr.sbin/bgpd -g  -MD -MP  -c /usr/src/regress/usr.sbin/bgpd/unittests/rde_community_test.c
cc -O2 -pipe  -I/usr/src/regress/usr.sbin/bgpd/unittests -I/usr/src/regress/usr.sbin/bgpd/unittests/../../../../usr.sbin/bgpd -g  -MD -MP  -c /usr/src/regress/usr.sbin/bgpd/unittests/../../../../usr.sbin/bgpd/rde_community.c
cc   -o rde_community_test rde_community_test.o rde_community.o -lutil
./rde_community_test
OK

==== run-regress-rde_decide_test ====
cc -O2 -pipe  -I/usr/src/regress/usr.sbin/bgpd/unittests -I/usr/src/regress/usr.sbin/bgpd/unittests/../../../../usr.sbin/bgpd -g  -MD -MP  -c /usr/src/regress/usr.sbin/bgpd/unittests/rde_decide_test.c
cc -O2 -pipe  -I/usr/src/regress/usr.sbin/bgpd/unittests -I/usr/src/regress/usr.sbin/bgpd/unittests/../../../../usr.sbin/bgpd -g  -MD -MP  -c /usr/src/regress/usr.sbin/bgpd/unittests/../../../../usr.sbin/bgpd/rde_decide.c
cc -O2 -pipe  -I/usr/src/regress/usr.sbin/bgpd/unittests -I/usr/src/regress/usr.sbin/bgpd/unittests/../../../../usr.sbin/bgpd -g  -MD -MP  -c /usr/src/regress/usr.sbin/bgpd/unittests/../../../../usr.sbin/bgpd/rde_attr.c
cc   -o rde_decide_test rde_decide_test.o rde_decide.o rde_attr.o util.o -lutil
./rde_decide_test
test 1: prefix with error OK
test 2: prefix with loop OK
test 3: prefix with unreachable nexthop OK
test 4: local preference check OK
test 5: aspath count check OK
test 6: origin EGP OK
test 7: origin INCOMPLETE OK
test 8: MED OK
test 9: EBGP vs IBGP OK
test 10: local weight OK
test 11: route age OK
test 12: BGP ID OK
test 13: remote peer address OK
test NULL element OK
test rde med compare strict 1 OK
test rde med compare strict 2 OK
test rde med compare strict 3 OK
test rde med compare always 1 OK
test rde med compare always 2 OK
test rde med compare always 3 OK
test rde route-age evaluate OK
test rde route-age ignore OK
evaluate with rde med compare strict
all OK
evaluate with rde med compare always
all OK
all tests OK

==== run-regress-rde_aspa_test ====
cc -O2 -pipe  -I/usr/src/regress/usr.sbin/bgpd/unittests -I/usr/src/regress/usr.sbin/bgpd/unittests/../../../../usr.sbin/bgpd -g  -MD -MP  -c /usr/src/regress/usr.sbin/bgpd/unittests/rde_aspa_test.c
cc   -o rde_aspa_test rde_aspa_test.o monotime.o -lutil
./rde_aspa_test
testing aspa_cp_lookup: OK
testing aspa_check_aspath: OK
testing aspa_validation: OK

==== run-regress-rde_flowspec_test ====
cc -O2 -pipe  -I/usr/src/regress/usr.sbin/bgpd/unittests -I/usr/src/regress/usr.sbin/bgpd/unittests/../../../../usr.sbin/bgpd -g  -MD -MP  -c /usr/src/regress/usr.sbin/bgpd/unittests/rde_flowspec_test.c
cc -O2 -pipe  -I/usr/src/regress/usr.sbin/bgpd/unittests -I/usr/src/regress/usr.sbin/bgpd/unittests/../../../../usr.sbin/bgpd -g  -MD -MP  -c /usr/src/regress/usr.sbin/bgpd/unittests/../../../../usr.sbin/bgpd/flowspec.c
cc   -o rde_flowspec_test rde_flowspec_test.o flowspec.o util.o -lutil
./rde_flowspec_test
OK

==== run-regress-rde_trie_test-1 ====
./rde_trie_test  /usr/src/regress/usr.sbin/bgpd/unittests/rde_trie_test.1.in  /usr/src/regress/usr.sbin/bgpd/unittests/rde_trie_test.1.check |  diff -u /usr/src/regress/usr.sbin/bgpd/unittests/rde_trie_test.1.out /dev/stdin

==== run-regress-rde_trie_test-2 ====
./rde_trie_test  /usr/src/regress/usr.sbin/bgpd/unittests/rde_trie_test.2.in  /usr/src/regress/usr.sbin/bgpd/unittests/rde_trie_test.2.check |  diff -u /usr/src/regress/usr.sbin/bgpd/unittests/rde_trie_test.2.out /dev/stdin

==== run-regress-rde_trie_test-3 ====
./rde_trie_test  /usr/src/regress/usr.sbin/bgpd/unittests/rde_trie_test.3.in  /usr/src/regress/usr.sbin/bgpd/unittests/rde_trie_test.3.check |  diff -u /usr/src/regress/usr.sbin/bgpd/unittests/rde_trie_test.3.out /dev/stdin

==== run-regress-rde_trie_test-4 ====
./rde_trie_test -o /usr/src/regress/usr.sbin/bgpd/unittests/rde_trie_test.4.in  /usr/src/regress/usr.sbin/bgpd/unittests/rde_trie_test.4.check |  diff -u /usr/src/regress/usr.sbin/bgpd/unittests/rde_trie_test.4.out /dev/stdin

==== run-regress-rde_trie_test-5 ====
./rde_trie_test -r /usr/src/regress/usr.sbin/bgpd/unittests/rde_trie_test.5.in  /usr/src/regress/usr.sbin/bgpd/unittests/rde_trie_test.5.check |  diff -u /usr/src/regress/usr.sbin/bgpd/unittests/rde_trie_test.5.out /dev/stdin

==== run-regress-rde_trie_test-6 ====
./rde_trie_test -r /usr/src/regress/usr.sbin/bgpd/unittests/rde_trie_test.6.in  /usr/src/regress/usr.sbin/bgpd/unittests/rde_trie_test.6.check |  diff -u /usr/src/regress/usr.sbin/bgpd/unittests/rde_trie_test.6.out /dev/stdin

PASS	usr.sbin/bgpd/unittests	Duration 0m07.45s