Merge branch 't/makefile_cleanups'
[paraslash.git] / t / t0000-help-output.sh
1 #!/usr/bin/env bash
2
3 test_description='Parse help output of all executables.
4
5 Each paraslash executable supports the -h switch which instructs
6 the program to print out all available options and to exit. This test
7 checks whether this help output looks as expected.'
8
9 . ${0%/*}/test-lib.sh
10
11 grep_output()
12 {
13         local regex='^  -h, --help'
14         $1 -h | grep "$regex"
15 }
16
17 for exe in $o_executables; do
18         test_expect_success "$exe" "grep_output $o_executables_dir/$exe"
19 done
20 test_done