]> git.ipfire.org Git - thirdparty/openssh-portable.git/commitdiff
Pass configure's egrep through to test-exec.sh.
authorDarren Tucker <dtucker@dtucker.net>
Wed, 22 Apr 2020 01:33:15 +0000 (11:33 +1000)
committerDarren Tucker <dtucker@dtucker.net>
Wed, 22 Apr 2020 01:35:49 +0000 (11:35 +1000)
Use it to create a wrapper function to call it from tests.  Fixes the
keygen-comment test on platforms with impoverished default egrep (eg
Solaris).

Makefile.in
regress/test-exec.sh

index 4ce13e7f8d71c70934fa0e098fa4e018a7479778..4f514c8db5e1e1b12ef72c01f315e312063bf5e8 100644 (file)
@@ -671,6 +671,7 @@ unit: regress-unit-binaries
 interop-tests t-exec file-tests: regress-prep regress-binaries $(TARGETS)
        BUILDDIR=`pwd`; \
        cd $(srcdir)/regress || exit $$?; \
+       EGREP='@EGREP@' \
        $(MAKE) \
                .OBJDIR="$${BUILDDIR}/regress" \
                .CURDIR="`pwd`" \
index 62f5dfc46343fac3f47c0ce69518bff8647e82af..bfe8783fedb95ee6dc32b118fe87d93011473c1f 100644 (file)
@@ -23,6 +23,16 @@ else
        PORT=4242
 fi
 
+# If configure tells us to use a different egrep, create a wrapper function
+# to call it.  This means we don't need to change all the tests that depend
+# on a good implementation.
+if test "x${EGREP}" != "x"; then
+       egrep ()
+{
+        ${EGREP} "$@"
+}
+fi
+
 if [ -x /usr/ucb/whoami ]; then
        USER=`/usr/ucb/whoami`
 elif whoami >/dev/null 2>&1; then