blob: c63659072978fe17cab4ae91b863e8567954d279 [file] [log] [blame]
Jacob Erlbeckae15a2c2013-08-06 14:29:14 +02001Going to test vty_cmd_string_from_valstr()
Jacob Erlbeckcd195fa2013-08-06 14:29:15 +02002Tested with %s-strings, resulting cmd = '[prefix%s%s%s%s%s][foo%s%s%s%s%s][sep%s%s%s%s%s][bar%s%s%s%s%s][end%s%s%s%s%s]'
Jacob Erlbeck0c987bd2013-09-06 16:52:00 +02003Going to test VTY node tree structure
4Going to execute 'enable'
5Returned: 0, Current node: 3 '%s# '
6Going to execute 'configure terminal'
7Returned: 0, Current node: 4 '%s(config)# '
8Going to execute 'exit'
9Returned: 0, Current node: 3 '%s# '
10Going to execute 'configure terminal'
11Returned: 0, Current node: 4 '%s(config)# '
12Going to execute 'end'
13Returned: 0, Current node: 3 '%s# '
14Going to execute 'configure terminal'
15Returned: 0, Current node: 4 '%s(config)# '
16Going to execute 'log stderr'
17Returned: 0, Current node: 7 '%s(config-log)# '
18Going to execute 'exit'
19Returned: 0, Current node: 4 '%s(config)# '
20Going to execute 'log stderr'
21Returned: 0, Current node: 7 '%s(config-log)# '
22Going to execute 'end'
23Returned: 0, Current node: 3 '%s# '
24Going to execute 'configure terminal'
25Returned: 0, Current node: 4 '%s(config)# '
26Going to execute 'line vty'
Jacob Erlbeckadc900e2015-10-20 19:05:52 +020027Returned: 0, Current node: 9 '%s(config-line)# '
Jacob Erlbeck0c987bd2013-09-06 16:52:00 +020028Going to execute 'exit'
29Returned: 0, Current node: 4 '%s(config)# '
30Going to execute 'line vty'
Jacob Erlbeckadc900e2015-10-20 19:05:52 +020031Returned: 0, Current node: 9 '%s(config-line)# '
Jacob Erlbeck0c987bd2013-09-06 16:52:00 +020032Going to execute 'end'
33Returned: 0, Current node: 3 '%s# '
34Going to execute 'configure terminal'
35Returned: 0, Current node: 4 '%s(config)# '
36Going to execute 'log stderr'
37Returned: 0, Current node: 7 '%s(config-log)# '
38Going to execute 'line vty'
Jacob Erlbeckadc900e2015-10-20 19:05:52 +020039Returned: 0, Current node: 9 '%s(config-line)# '
Jacob Erlbeck0c987bd2013-09-06 16:52:00 +020040Going to execute 'log stderr'
41Returned: 0, Current node: 7 '%s(config-log)# '
42Going to execute 'end'
43Returned: 0, Current node: 3 '%s# '
44Going to execute 'exit'
45Returned: 0, Current node: 3 '%s# '
Jacob Erlbeckae15a2c2013-08-06 14:29:14 +020046All tests passed