Estimated hours taken: 0.1
tests/benchmarks/deriv.m:
tests/benchmarks/deriv2.m:
Put module imports in their proper place.
tests/benchmarks/qsort.m:
Add a missing module import.
Estimated hours taken: 1
tools/bootcheck:
If the new --test-params option is given, copy the stage 2 Mmake.params
file to the tests directory. This capability is required to test
changes such as compiling the library without special preds and
the test cases with special preds. You get a lot of spurious errors
if a test case assumes that since it was compiled with special
preds, all other modules it is linked with are also compiled with
special preds, and thus makes calls to non-existent special preds
for the types defined in the library.
tests/*/Mmakefile:
tests/*/*/Mmakefile:
Include Mmake.params from the top level tests directory if it exists.
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.
Estimated hours taken: 0.2
tests/benchmarks/*.m:
Move the import of print_list.m from the interface to the
implementation, where it belongs, to avoid warnings.
Estimated hours taken: 1
tests/benchmarks/poly.mprof-exp:
Update the expected memory profiling output to reflect changes
in the generated code caused by deforestation.
Estimated hours taken: 0.25
tests/benchmarks/poly.mprof-exp:
Update the expected profile output to reflect the split of
mercury_builtin.m into builtin.m and private_builtin.m.
Estimated hours taken: 0.25
tools/test_mercury:
tests/benchmark/poly.mprof-exp:
Change the existing test case for memory profiling so that it
actually checks the profile output, rather than just testing
that the profile can be created.
Estimated hours taken: 0.5
Avoid about half of the slow "mmake realclean"s required by a bootcheck.
tests/*/runtests:
Concentrate all the actions performed before the test and after
a successful tests (both of which involve an "mmake realclean")
into two scripts, tests/{startup,shutdown}.
tests/shutdown:
Clean up the directory, and touch the file CLEAN.
tests/startup:
If the file CLEAN exists and is the most recent file in the directory,
consider the directory clean to beging with. Otherwise, run mmake
realclean.
Estimated hours taken: 0.2
tests/runtests:
tests/*/runtests:
When reporting the results, print the options that controlled
the tests, so you don't have to search for them.
tests/*/runtests:
Clean up the directory if the tests are successful, in order
to reduce disk space usage.
Estimated hours taken: 0.25
tests/benchmarks/Mmake:
Remove the rule for `mmake clean'. The automatically-generated
rules should handle that automatically, and the manual rule
was removing the `*.dep' files, which broke the automatically-
generated rule for `mmake realclean'.
Estimated hours taken: 6
Fix bugs in the scripts for running tests.
tests/handle_options:
Quote EXTRA_CFLAGS and EXTRA_MCFLAGS so that we can use
eval in runtests.
tests/Mmake.common:
Set MGNUCFLAGS using $(EXTRA_MGNUFLAGS) and $(EXTRA_CFLAGS)
tests/*/runtests:
Don't pass empty strings as arguments to mmake, as this can
tickle bugs in make.
Try
make -f foo.123 ""
on a CASE machine or hydra (not kryten, it has a different
version of gnu-make). It will chop the `23' from that string.
So when using `make -f mmake.$$', only the single digit pids
work, which is fairly limiting.
Estimated hours taken: 0.5
tests/handle_options:
tests/runtests:
tests/*/runtests:
Fix bugs in the testing scripts which meant that commands such as
runtests --flags "-O5 --opt-space"
where the argument to a `--flags' (or similar) option contained
Also make sure we handle the `--cflags' option in the subdirectory
`runtests' scripts.
that on kryten it tried to remake the `.exp' files
in the hard_coded directory using NU-Prolog.
tests/benchmarks/Mmake:
Add the rule for creating `.exp' files.
Estimated hours taken: 0.25
Fix unique mode errors in the benchmark tests.
tests/benchmarks/{cqueens,crypt,queens,query}.m:
Change the determinism of main from `multi' to the new `cc_multi'.
tests/benchmarks/{deriv,deriv2}.m:
Rearrange the code slightly to move the I/O
out of the condition of an if-then-else.
tests/benchmarks:
Modify the nondet/semidet benchmarks so that `main' is either
det or multidet.
Remove files `Entry' and `NP_Entry' since they are no longer
needed.
queens.nl:
Make it 9-queens rather than 8-queens.
Entry:
Fix the entry points for the new name mangling.
Makefile, NP_Entry:
Various changes.
arithmetic.nl:
Added a test of the arithmetic operators.
This probably belongs in a different directory, but
this will do for the moment.
tests/benchmarks/*
Lots of makefile hacking.
Changed a mode declaration in query.nl to work around
a problem with implied modes.
The compiler now passes all of these tests, let's keep it that way!