summaryrefslogtreecommitdiff
path: root/tests
AgeCommit message (Collapse)Author
2017-07-17*: reindentreindent-master-afterwhitespace / reindent
indent.py `git ls-files | pcregrep '\.[ch]$' | pcregrep -v '^(ldpd|babeld|nhrpd)/'` Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
2017-07-14tests/ospf6d/test_lsdb: remove vty_outlnDavid Lamparter
Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
2017-07-14Merge remote-tracking branch 'frr/master' into table-hash-ospf6-lsdb-refactorDavid Lamparter
Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
2017-07-14Merge pull request #813 from opensourcerouting/newline-reduxRuss White
newline redux
2017-07-14Merge pull request #762 from bingen/mutiple_nh_recursive_levelsDonald Sharp
Allow for more than 1 NH recursion level
2017-07-14Merge remote-tracking branch 'frr/master' into newline-reduxDavid Lamparter
Lots of conflicts from CMD_WARNING_CONFIG_FAILED... Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
2017-07-14*: remove VTYNL, part 6 of 6David Lamparter
Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
2017-07-13*: ditch vty_outln(), part 1 of 2David Lamparter
Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
2017-07-13lib, test: Add test case for ALL_NEXTHOPS_ROßingen
Without it, tests were passing before commit 9fb47c0, so a case was missing (the one which that commit fixes). Signed-off-by: ßingen <bingen@voltanet.io>
2017-07-12tests: update prng to return better pseudo random numbersChristian Franke
Signed-off-by: Christian Franke <chris@opensourcerouting.org>
2017-07-11build: fix ttable testDavid Lamparter
test_ttable.refout wasn't in the dist package. Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
2017-07-11tests: ospf6d: basic LSDB testsDavid Lamparter
Needed these while rewriting LSDB iteration. NB: this commit fails because of a bug in ospf_lsdb_get_next, which will SEGV when the LSDB is actually empty. Whooo... (this is fixed in the following commits.) Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
2017-07-11tests: fix pytest API "surprise" in skipping testsDavid Lamparter
pytest.mark.skipif apparently iterates through a class's methods, applying itself onto the various methods. Now, since we're deriving from a parent class, the method is actually the same object inherited from the parent, so the decorator will apply itself on the parent's testrunning method (test_refout). The result is that any TestRefout tests after "test_commands.py" will be skipped... This only became apparent after adding ospf6d/test_lsdb.py; before, test_commands.py was the last test in the list so it didn't matter... Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
2017-07-10Rename ALL_NEXTHOPS_RO to ALL_NEXTHOPSßingen
2017-07-10Fix tests for NH multiple recursion levelsßingen
Tests were no passing. Besides, added cases to test more than 1 level depth in nexthop recursion.
2017-07-01*: update hash_create(), hash_create_size()Quentin Young
Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
2017-06-29lib: more `show thread cpu`Quentin Young
Add support for naming pthreads. Also, note that we don't have any records yet if that's the case. Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
2017-06-29*: rebase vty_outln() -> masterQuentin Young
Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
2017-06-29*: s/VTY_NEWLINE/VTYNL/gQuentin Young
Should be able to fit more vty_out onto one line now Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
2017-06-29*: use vty_outlnQuentin Young
Saves 400 lines Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
2017-06-28Allow for more than 1 NH recursion levelßingen
Before, only one level of recursive resolution was supported. Signed-off-by: ßingen <bingen@voltanet.io>
2017-06-28Merge pull request #714 from opensourcerouting/cli_magic_defpyDonald Sharp
CLI magic: part 1 (DEFPY)
2017-06-16lib: add table generatorQuentin Young
Allows for easy preparation of tabular output. Supports: -- Padding -- Alignment -- Styling
2017-06-14tests: cli: unit test DEFPY() + clidef.pyDavid Lamparter
Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
2017-06-08*: remove THREAD_BACKGROUNDQuentin Young
it's just an alias for a millisecond timer used in exactly nine places and serves only to complicate Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
2017-05-17Merge pull request #537 from donaldsharp/vrf_stuffDavid Lamparter
Vrf stuff
2017-05-16Merge branch 'master' into vrf_stuffDonald Sharp
2017-05-15tests: Fix vrf_init to have correct callDonald Sharp
Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
2017-05-15*: make consistent & update GPLv2 file headersDavid Lamparter
The FSF's address changed, and we had a mixture of comment styles for the GPL file header. (The style with * at the beginning won out with 580 to 141 in existing files.) Note: I've intentionally left intact other "variations" of the copyright header, e.g. whether it says "Zebra", "Quagga", "FRR", or nothing. Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
2017-05-15lib: cli: fix IPv6 address partial matchingDavid Lamparter
A partially-entered IPv6 address would never return a "partly_match", meaning some possible completions weren't listed by the matcher. This specifically breaks autocompleting BGP IPv6 neighbor addresses. Before: aegaeon# show ip bg ne 2001:<?> WORD Neighbor on BGP configured interface After: aegaeon# show ip bg ne 2001:<?> WORD Neighbor on BGP configured interface X:X::X:X Neighbor to display information about 2001:db8::2 Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
2017-05-09*: update thread_add_* callsQuentin Young
Pass pointer to pointer instead of assigning by return value. See previous commit message. To ensure that the behavior stays functionally correct, any assignments with the result of a thread_add* function have been transformed to set the pointer to null before passing it. These can be removed wherever the pointer is known to already be null. Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
2017-05-09*: remove THREAD_ON macros, add nullity checkQuentin Young
The way thread.c is written, a caller who wishes to be able to cancel a thread or avoid scheduling it twice must keep a reference to the thread. Typically this is done with a long lived pointer whose value is checked for null in order to know if the thread is currently scheduled. The check-and-schedule idiom is so common that several wrapper macros in thread.h existed solely to provide it. This patch removes those macros and adds a new parameter to all thread_add_* functions which is a pointer to the struct thread * to store the result of a scheduling call. If the value passed is non-null, the thread will only be scheduled if the value is null. This helps with consistency. A Coccinelle spatch has been used to transform code of the form: if (t == NULL) t = thread_add_* (...) to the form thread_add_* (..., &t) The THREAD_ON macros have also been transformed to the underlying thread.c calls. Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
2017-05-08tests: allow to use exit_cleanly as test methodChristian Franke
TestMultiOut can now also just check for clean exit Signed-off-by: Christian Franke <chris@opensourcerouting.org>
2017-04-04Merge branch 'stable/2.0'David Lamparter
Fixed minor conflicts from "defaults" change on stable. Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
2017-03-30Rename: FreeRangeRouting FRRoutingLou Berger
Signed-off-by: Lou Berger <lberger@labn.net>
2017-03-30Merge pull request #299 from opensourcerouting/test-ref-outDonald Sharp
tests: format TestRefMismatch more readable
2017-03-28*: track version & "defaults" in configsDavid Lamparter
[CF]: Move default name to autoconf and update tests Signed-off-by: Christian Franke <chris@opensourcerouting.org>
2017-03-28tests: format TestRefMismatch more readableChristian Franke
Signed-off-by: Christian Franke <chris@opensourcerouting.org>
2017-03-20Implement generic label managerßingen
Label Manager allows to share MPLS label space among different daemons. Each daemon can request a chunk of consecutive labels and release it if it doesn't need them anymore. Label Manager stores the daemon protocol and instance to identify the owner client. It uses them to perform garbage collection, releasing all label chunks from a client when it gets disconnected or reconnected. Additionally, every client can request that the chunk is never garbage collected. In that case client has the responsibility to release non-used labels. Zebra can host the label manager itself (if no -l param is provided) or connect to an external one using zserv/zclient (providing its address with -l param). Client code is in lib/zclient.c, but currently only LDP is using it. TODO: Allow for custom ranges requests, i.e., specify the start label besides the chunk. TODO: Release labels from LDP. Signed-off-by: Bingen Eguzkitza <bingen@voltanet.io>
2017-03-08lib: remove remaining struct zlog * argsDavid Lamparter
These don't serve any purpose either. Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
2017-03-08lib: simplify protocol/log namingDavid Lamparter
The protocols enum serves no purpose other than adding potential for bugs and making it complicated to add a new protocol... nuke. Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
2017-03-07*: add frr_init() infrastructureDavid Lamparter
Start centralising startup & option parsing into the library. FRR_DAEMON_INFO is a bit weird, but it will become useful later (e.g. for killing the ZLOG_* enum, and having the daemon name available) Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
2017-02-14tests: fix bgp print in testsPhilippe Guibert
This commit is a fix from previous commit: Quagga: AFI/SAFI mappings IANA to/from internal values. It removes the printf that was used for troubleshooting the afi/safi change, in respect to testing. Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
2017-02-14tests: update ecommunity_ecom2str call apiPhilippe Guibert
Test adaptation using updated API, introducing new ecommunity type. Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
2017-02-14tests: update bgp_nlri_parse function usage in bgp testingPhilippe Guibert
Because the bgp_nlri_parse function has been extended with one parameter, when doing bgp testing against some packets, the correct call to bgp_nlri_parse must be done. Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
2017-02-13tests: fix out-of-tree buildDavid Lamparter
Fix pytest with $(top_srcdir) != "." Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
2017-02-13tests: add pytest testrunnersChristian Franke
Signed-off-by: Christian Franke <chris@opensourcerouting.org>
2017-02-13tests: reorganize tests hierarchicallyChristian Franke
Signed-off-by: Christian Franke <chris@opensourcerouting.org>
2017-02-13tests: remove dejagnuChristian Franke
Signed-off-by: Christian Franke <chris@opensourcerouting.org>
2017-02-11Merge pull request #195 from opensourcerouting/cli_mergeDonald Sharp
CLI: independent merge step