]> git.puffer.fish Git - matthieu/frr.git/commit
tests: Improve test suite for peer attributes
authorPascal Mathis <mail@pascalmathis.com>
Mon, 28 May 2018 16:50:52 +0000 (18:50 +0200)
committerPascal Mathis <mail@pascalmathis.com>
Mon, 28 May 2018 20:07:53 +0000 (22:07 +0200)
commitf9067479617fa6237abd9dc0391ae6ea14aa16a7
tree3a4e223c26fd04e4d753ba75a9cc66d565e8f890
parentcf9ac8bfb04288a9befd0c38de2259e5f7ee4544
tests: Improve test suite for peer attributes

This commit improves the previous implementation of the peer attribute
test suite by getting rid of some really ugly macros and replacing them
with sane functions.

Additionally, the macro TEST_ASSERT was changed to TEST_ASSERT_EQ (==
comparison) which now also prints the line where the assertion has been
infringend. This should make it way more clear where a specific issue
has been spotted.

Last but not least, the multicast families for both IPv4 and IPv6 had
been added as they are working without any further changes or special
cases for all currently existing peer attributes. Other AFI/SAFI
references have been removed to keep the code clean.

Signed-off-by: Pascal Mathis <mail@pascalmathis.com>
tests/bgpd/test_peer_attr.c
tests/bgpd/test_peer_attr.py