]> git.puffer.fish Git - mirror/frr.git/commit
tests: add CLI dummy command-exec tool
authorDavid Lamparter <equinox@opensourcerouting.org>
Tue, 5 May 2015 09:04:59 +0000 (11:04 +0200)
committerDaniel Walton <dwalton@cumulusnetworks.com>
Fri, 3 Jun 2016 20:34:55 +0000 (20:34 +0000)
commit2bb57c682e26132c2cb343b5bf540f557546d2c8
tree355053ba4ae8efd8c2e9fd84f75a98fe740771e4
parent72fcf42497508a9fad1bd2a3822228fbe830e2da
tests: add CLI dummy command-exec tool

This adds some common CLI testtool code as well as a tool that has a
bunch of commands to be poked for their correct processing.

The tool doesn't work correctly from a script at stdin at this point
because the vty code will throw away all buffered when it sees EOF, so
the tail end of the input file is lost.

Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
(cherry picked from commit db93eec18d8f1e840b32ba2cdf8baf2510f6e1a5)
tests/.gitignore
tests/Makefile.am
tests/common-cli.c [new file with mode: 0644]
tests/common-cli.h [new file with mode: 0644]
tests/test-cli.c [new file with mode: 0644]