summaryrefslogtreecommitdiffstats
path: root/tests/libzebra.tests (follow)
Commit message (Collapse)AuthorAgeFilesLines
* tests: fix exit <> return mix-up in dejagnuDavid Lamparter2017-01-131-2/+2
| | | | | | | | exit 0 exits the entire testrunner... Oops. Also, "unresolved" breaks too many things, so make this a pass. Signed-off-by: David Lamparter <equinox@opensourcerouting.org> [cherry-picked from master e988dfd35b0d9df437ac043a613472437c8842e6]
* tests: ignore stderr for expectDavid Lamparter2017-01-134-4/+4
| | | | | | | | | | | | | | expect redirects both stdout and stderr to its input. This causes serious problems when libzebra prints log messages to stderr, which are then asynchronously inserted in the middle of lines of stdout test output. Ultimately this makes testbgpmpattr fail on FreeBSD. (The stdio buffering seems to be slightly different on FreeBSD, triggering the bug.) Just ignore stderr for expect. Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
* tests: add testcli reference in/out & do DejaGNUDavid Lamparter2016-06-032-0/+24
| | | | | | | | | This adds reference in & output for the previously added testcli tool, to check basic CLI parsing/help functions. Unlike "testcommands", this one doesn't depend on compile-time system details. Signed-off-by: David Lamparter <equinox@opensourcerouting.org> (cherry picked from commit d79668fb440ae2689b54f52c076dbd79a8689135)
* tests: Add tests for timersChristian Franke2014-04-222-0/+8
| | | | | Signed-off-by: Christian Franke <chris@opensourcerouting.org> Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
* tests: fix build & disable testcommandsDavid Lamparter2014-04-011-1/+9
| | | | | | | | | | | The perils of having tests, the test wasn't tested thoroughly enough... Fixup various automake problems, and then disable it since it depends on configure parameters in its current version. For 0.99.24 we can ship a static copy of vtysh_cmd.c and have it reenabled. Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
* tests: add a test program for lib/command.cChristian Franke2014-04-012-0/+24
| | | | | Signed-off-by: Christian Franke <chris@opensourcerouting.org> Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
* zebra: rework recursive route resolutionChristian Franke2013-09-192-1/+10
| | | | | | | | | | | | | | | Change the datastructure for recursive routes. This brings the following benefits: By using struct nexthop also to store nexthops obtained by recursive resolution, we can get rid of quite a bit of code duplication in the fib management. (rt_netlink, rt_socket, ...) With the new datastructure we can make use of all available paths when recursive routes are resolved with multipath routes. Signed-off-by: Christian Franke <chris@opensourcerouting.org> Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
* tests: DejaGNU libzebraDavid Lamparter2013-04-143-0/+39
Wrap the few libzebra test programs we have up for DejaGNU. Signed-off-by: David Lamparter <equinox@opensourcerouting.org>