Allow environment of testcases to be set by Env.sh

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/tools/make/trunk@38323 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Richard Frith-MacDonald 2015-02-03 12:49:58 +00:00
parent ab0c0ff4bd
commit b4faf5f9dc
2 changed files with 13 additions and 1 deletions

View file

@ -336,6 +336,11 @@ log ... so you need to avoid starting a line in the log with any of the
special phrases generated to mark a passed test or a particular type of
failure.
If an Env.sh script is present in a test directory, then it will be
sourced immediately before each test in order to allow you to set up
special environment variables for the test. This script should produce
no output.
If a Summary.sh file is present in a test directory and gnustep-tests is
used to run just those tests in that directory, the shell script will be
executed in order to provide the summary of the test results. In all other

View file

@ -380,7 +380,14 @@ build_and_run ()
echo Running $dir/$TESTFILE...
# Run it. If it terminates abnormally, mark it as a crash (unless we have
# a special file to mark it as being expected to abort).
$RUN_CMD
if test -r ./Env.sh
then
( . ./Env.sh; $RUN_CMD )
else
$RUN_CMD
fi
if test $? != 0
then
if test -r $TESTFILE.abort