diff options
author | Jacob Bachmeyer <jcb@gnu.org> | 2021-05-20 00:15:25 -0500 |
---|---|---|
committer | Jacob Bachmeyer <jcb@gnu.org> | 2021-05-20 00:15:25 -0500 |
commit | 7e634eae6345ab38027f156202e298b591b68fb6 (patch) | |
tree | ea4d803631ae8c3a763cbdcb6d970c3862c9a8a5 /testsuite | |
parent | 9673505b54f1f2017f4dae7a2b972503e687f04c (diff) | |
download | dejagnu-7e634eae6345ab38027f156202e298b591b68fb6.zip dejagnu-7e634eae6345ab38027f156202e298b591b68fb6.tar.gz dejagnu-7e634eae6345ab38027f156202e298b591b68fb6.tar.bz2 |
Search for POSIX Awk in dejagnu auxiliary launcher
Diffstat (limited to 'testsuite')
-rw-r--r-- | testsuite/launcher.all/command.exp | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/testsuite/launcher.all/command.exp b/testsuite/launcher.all/command.exp index 6c400f0..c461b6a 100644 --- a/testsuite/launcher.all/command.exp +++ b/testsuite/launcher.all/command.exp @@ -103,6 +103,19 @@ set tests { { "dejagnu foo --help fails if Tcl variant selected" {foo --help} {EXPECT=true TCLSH=true } 2 "does not contain a help message" } + + { "dejagnu foo --help fails if no POSIX Awk available" + {foo --help} {EXPECT=bogus TCLSH=bogus AWK=bogus GAWK=bogus} 2 + "requires POSIX Awk" } + { "dejagnu foo --help recognizes dummy GNU Awk as Awk" + {foo --help} {EXPECT=bogus TCLSH=bogus AWK=bogus GAWK=true } 2 + "does not contain a help message" } + { + # The above still fails, because true(1) does not actually + # evaluate Awk programs and the Awk program that tests if a help + # message is present returns true if the launcher should abort. + } + } { dejagnu-foo |