testsuite/pdfgrep.tests/usage.exp
raw| 1 | set test "Print usage when invoked without options" |
| 2 | |
| 3 | pdfgrep |
| 4 | expect { |
| 5 | -re "^Usage: .*" { pass $test } |
| 6 | default { fail $test } |
| 7 | } |
| 8 | expect eof |
| 9 | expect_exit_status 2 |
| 10 | |
| 11 | # Also look that nothing is written to stdout |
| 12 | |
| 13 | set test "Print nothing to stdout without options" |
| 14 | |
| 15 | pdfgrep >/dev/null |
| 16 | expect { |
| 17 | eof { pass $test } |
| 18 | default { fail $test } |
| 19 | } |