| 1 |
set test "helpout" |
| 2 |
|
| 3 |
if [installtest_p] { |
| 4 |
set cmds [list stap staprun $env(PKGLIBDIR)/stapio] |
| 5 |
if [dyninst_p] { |
| 6 |
lappend cmds stapdyn |
| 7 |
} |
| 8 |
} else { |
| 9 |
set cmds [list ../stap ../staprun/staprun ../staprun/stapio] |
| 10 |
if [dyninst_p] { |
| 11 |
lappend cmds ../stapdyn/stapdyn |
| 12 |
} |
| 13 |
} |
| 14 |
foreach cmd $cmds { |
| 15 |
foreach opt {-V -h} { |
| 16 |
set subtest "$test $cmd $opt" |
| 17 |
set rc [catch {exec $cmd $opt >/dev/null} out] |
| 18 |
if { $rc == "0" && $out == ""} then { pass $subtest } else { fail "$subtest ($rc $out)" } |
| 19 |
} |
| 20 |
} |