2 set test_name "testcommands"
4 if {![info exists env(QUAGGA_TEST_COMMANDS)]} {
5 # sadly, the test randomly fails when configure parameters differ from
6 # what was used to create testcommands.refout. this can be fixed by
7 # shipping a matching vtysh_cmd.c, which we'll add after 0.99.23
8 unresolved "$test_name"
12 spawn sh -c "./testcommands -e 0 < $env(srcdir)/testcommands.in | diff -au - $env(srcdir)/testcommands.refout"
19 fail "$test_name: timeout"
24 set os_error [lindex $result 2]
25 set exit_status [lindex $result 3]
27 if { $os_error == 0 && $exit_status == 0 } {