Lines Matching full:help
10 * Test that "--help", "-h", and "-W help" options all work and
33 /* Exercise --help option. */ in DEFINE_TEST()
34 r = systemf("%s --help >help.stdout 2>help.stderr", testprog); in DEFINE_TEST()
36 failure("--help should generate nothing to stderr."); in DEFINE_TEST()
37 assertEmptyFile("help.stderr"); in DEFINE_TEST()
38 /* Help message should start with name of program. */ in DEFINE_TEST()
39 p = slurpfile(&plen, "help.stdout"); in DEFINE_TEST()
40 failure("Help output should be long enough."); in DEFINE_TEST()
42 failure("First line of help output should contain 'bsdtar': %s", p); in DEFINE_TEST()
45 * TODO: Extend this check to further verify that --help output in DEFINE_TEST()
55 failure("stdout should be same for -h and --help"); in DEFINE_TEST()
56 assertEqualFile("h.stdout", "help.stdout"); in DEFINE_TEST()
58 /* -W help should be another synonym. */ in DEFINE_TEST()
59 r = systemf("%s -W help >Whelp.stdout 2>Whelp.stderr", testprog); in DEFINE_TEST()
61 failure("-W help should generate nothing to stderr."); in DEFINE_TEST()
63 failure("stdout should be same for -W help and --help"); in DEFINE_TEST()
64 assertEqualFile("Whelp.stdout", "help.stdout"); in DEFINE_TEST()