allow configure without bash ... abort tests at runtime

This commit is contained in:
rfm 2023-12-12 19:58:02 +00:00
parent a95eb8e724
commit 2e99da71ef
4 changed files with 21 additions and 8 deletions

View file

@ -1,7 +1,8 @@
2023-12-11 Richard Frith-Macdonald <rfm@gnu.org>
2023-12-12 Richard Frith-Macdonald <rfm@gnu.org>
configure.ac: Require bash for test framework
configure: Regenerate
* TestFramework/gnustep-tests.in: Exit if no bash available
* configure.ac: Require bash for test framework
* configure: Regenerate
2023-12-05 Yavor Doganov <yavor@gnu.org>

View file

@ -29,6 +29,12 @@
# oldtests.log and oldtests.sum, available for comparison.
# The exit value of the script is 0 if there are no failures, 1 otherwise.
if test "@MISSINGBASH@" = "YES"; then
echo "gnustep-make unable to fnind bash at configure time."
echo "test framework cannot run without bash installed."
exit 0
fi
if test -z "$GNUSTEP_MAKEFILES"; then
GNUSTEP_MAKEFILES=`gnustep-config --variable=GNUSTEP_MAKEFILES 2>/dev/null`
if test -z "$GNUSTEP_MAKEFILES"; then

9
configure vendored
View file

@ -617,6 +617,7 @@ ac_unique_file="application.make"
ac_default_prefix=NONE
ac_subst_vars='LTLIBOBJS
LIBOBJS
MISSINGBASH
TESTPROG
SHELLPROG
LATEX2HTML
@ -10045,13 +10046,15 @@ fi
if test x"$SHELLPROG" = x""; then
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
printf "%s\n" "failed" >&6; }
echo "Unable to find the bash program (needed for testsuite)."
exit 1
SHELLPROG=/bin/sh
MISSINGBASH=YES
else
MISSINGBASH=NO
fi
#--------------------------------------------------------------------
# Produce the output files
#--------------------------------------------------------------------

View file

@ -1772,10 +1772,13 @@ AC_CHECK_PROGS(LATEX2HTML, latex2html)
AC_PATH_PROG(SHELLPROG, bash)
AC_PATH_PROG(TESTPROG, test)
if test x"$SHELLPROG" = x""; then
AC_MSG_RESULT(failed)
echo "Unable to find the bash program (needed for testsuite)."
exit 1
SHELLPROG=/bin/sh
MISSINGBASH=YES
else
MISSINGBASH=NO
fi
AC_SUBST(MISSINGBASH)
#--------------------------------------------------------------------