Estimated hours taken: 3
samples/tests/Mmakefile:
The old version of this file had a bogus SUBDIRS list
and a lot of code duplication with Mmake.common.samples.
I rewrote it to use Mmake.common.samples.
samples/tests/Mmake.common.samples:
Add some documentation.
Add some missing dependencies for the dep_local target.
Automatically set the SUBDIRS variable to the correct value,
rather than always setting it to empty.
Fix a couple of other bugs (an `ifeq' should have been `ifneq'
and in the condition of that test `$(SUBDIRS)' should have
been `"$(SUBDIRS)"').
samples/tests/Mmake.common:
samples/tests/generate_exp:
Delete the code for making .exp files using NU-Prolog.
samples/tests/c_interface/c_calls_mercury/Mmakefile:
samples/tests/c_interface/cplusplus_calls_mercury/Mmakefile:
Fix a bug: add some extra dependencies to ensure that
it copies the right files before invoking mmc to make
the dependencies.
Estimated hours taken: 15
Add a testing architecture for the samples directory.
The tests are in the "tests" subdirectory of the samples
directory. This keeps them close to the samples, but not close
enough to clutter up the samples.
It also means you don't have to worry about the issue of exactly where
the developer has checked out the CVS tests module.
samples/c_interface/simpler_c_calls_mercury/Mmakefile:
Update this example to generate a .a file
instead of directly using $(mercury_lib.os)
samples/tests/*:
Test cases for all the samples.