debian/tests/smoke-tests
raw| 1 | #!/bin/sh |
| 2 | |
| 3 | exec 2>&1 |
| 4 | |
| 5 | should_pass() { |
| 6 | "$@" |
| 7 | } |
| 8 | should_fail() { |
| 9 | ! "$@" |
| 10 | } |
| 11 | |
| 12 | set -ex |
| 13 | |
| 14 | |
| 15 | # these should pass |
| 16 | should_pass clitest examples/cut.txt |
| 17 | should_pass clitest --prefix tab examples/cut.md |
| 18 | should_pass clitest examples/hello-world.txt |
| 19 | should_pass clitest examples/intro.txt |
| 20 | |
| 21 | # these should fail |
| 22 | should_fail clitest examples/will-fail.txt |