blob: 778bd0caa344ff9db22d23c85ad9f057c53eebd0 [file] [log] [blame]
David Lamparterd79668f2015-05-14 14:47:05 +02001set timeout 30
2set test_name "testcli"
3
4spawn sh -c "./testcli < $env(srcdir)/testcli.in | diff -au $env(srcdir)/testcli.refout -"
5
6expect {
7 eof {
8 }
9 timeout {
10 exp_close
11 fail "$test_name: timeout"
12 }
13}
14
15catch wait result
16set os_error [lindex $result 2]
17set exit_status [lindex $result 3]
18
19if { $os_error == 0 && $exit_status == 0 } {
20 pass "$test_name"
21} else {
22 fail "$test_name"
23}