From 7e634eae6345ab38027f156202e298b591b68fb6 Mon Sep 17 00:00:00 2001 From: Jacob Bachmeyer Date: Thu, 20 May 2021 00:15:25 -0500 Subject: Search for POSIX Awk in dejagnu auxiliary launcher --- testsuite/launcher.all/command.exp | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'testsuite') 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 -- cgit v1.1