diff options
author | Neels Hofmeyr <neels@hofmeyr.de> | 2019-01-31 09:06:53 +0100 |
---|---|---|
committer | Neels Hofmeyr <nhofmeyr@sysmocom.de> | 2019-02-04 16:43:57 +0000 |
commit | faa49e24cb8044134a6c0d5621ca298cae628c4e (patch) | |
tree | 3a868a7cb0b3aa030d280a392faa212563025fc9 /tests/vty/vty_transcript_test.vty | |
parent | b3e9b313838fe4c80acdf0a95e0cd9609370f8f2 (diff) |
add generic vty_transcript_test.c, vty_transcript_test.vty
I want to tweak general VTY features and need to cover with a transcript test
to show the differences. Start by showing the current situation of optional
and multi-choice arguments.
Change-Id: I5a79c83fabd02aba6406b6e0d620969c4bd0cc1d
Diffstat (limited to 'tests/vty/vty_transcript_test.vty')
-rw-r--r-- | tests/vty/vty_transcript_test.vty | 53 |
1 files changed, 53 insertions, 0 deletions
diff --git a/tests/vty/vty_transcript_test.vty b/tests/vty/vty_transcript_test.vty new file mode 100644 index 00000000..1ae7c0d7 --- /dev/null +++ b/tests/vty/vty_transcript_test.vty @@ -0,0 +1,53 @@ +vty_transcript_test> list +... + multi0 (one|two|three) + multi1 ([one]|[two]|[three]) + +vty_transcript_test> multi0 ? + one 1 + two 2 + three 3 + +vty_transcript_test> multi0 one +ok argc=1 one + +vty_transcript_test> multi0 two +ok argc=1 two + +vty_transcript_test> multi0 o +ok argc=1 o + +vty_transcript_test> multi0 t +ok argc=1 t + +vty_transcript_test> multi0 th +ok argc=1 th + +vty_transcript_test> multi0 +% Command incomplete. + +vty_transcript_test> multi1 ? + [one] 1 + [two] 2 + [three] 3 + +vty_transcript_test> multi1 one +ok argc=1 one + +vty_transcript_test> multi1 two +ok argc=1 two + +vty_transcript_test> multi1 o +ok argc=1 o + +vty_transcript_test> multi1 t +ok argc=1 t + +vty_transcript_test> multi1 th +ok argc=1 th + +vty_transcript_test> multi1 +% Command incomplete. + +vty_transcript_test> multi1 [one] +% Unknown command. |