mirror of
https://github.com/Mercury-Language/mercury.git
synced 2025-12-16 14:25:56 +00:00
Estimated hours taken: 1 Add support for setting MLFLAGS to tests/runtests. This is needed if you want to run the tests with static linking when the default is shared linking, or vice versa. tests/handle_options: Add a new option for setting MLFLAGS. Define variables `mmakeopts' and `runtestopts' containing all the options needed for running mmake and runtests (respectively). tests/subdir_runtests: Use $runtestopts rather than $jfactor $cflag $gflag $fflag. tests/runtests: tests/*/runtests: tests/*/*/runtests: Use $mmakeopts rather than $jfactor $gradeopt $flagsopt $cflagsopt. tests/hard_coded/exceptions/runtests: New file. This directory was missing a `runtests' script.
21 lines
548 B
Plaintext
21 lines
548 B
Plaintext
# Run the tests in each of the subdirectories.
|
|
|
|
subdir_failures=""
|
|
for dir in *
|
|
do
|
|
if test -d $dir -a -x $dir/runtests
|
|
then
|
|
cd $dir
|
|
# we need to use `eval' here to get the quoting right in
|
|
# the case when $runtestopts contains embedded spaces
|
|
if eval ./runtests $runtestopts
|
|
then
|
|
true
|
|
else
|
|
subdir_failures="$subdir_failures $dir"
|
|
fi
|
|
cd ..
|
|
fi
|
|
done
|
|
|