mirror of
https://github.com/Mercury-Language/mercury.git
synced 2025-12-15 22:03:26 +00:00
A long time ago, test directories such as hard_coded had subdirectories
such as hard_coded/typeclasses. These have since been flattened out
(e.g. hard_coded/typeclasses is now just typeclasses), but there were
still remnants of the old approach. This diff deletes those remnants.
tests/*/Mmakefile:
Delete the TESTS_DIR and the SUBDIRS mmake variables; TESTS_DIR
was always set to "..", and SUBDIRS to the empty string.
Delete any references to the make variable NOT_WORKING, since
it is never used.
tests/Mmake.common:
Document that Mmakefiles in test directories don't have to set
TESTS_DIR and SUBDIRS anymore. Fix the formatting of the documentation
of the make variables they do still have to set.
Delete the targets and actions for handling subdirectories of
test directories, since there aren't any.
tests/Mmakefile:
Simplify some code.
This directory contains tests for the `--smart-recompilation' option. The output with `--verbose-recompilation' is checked to make sure that recompilation occurs when expected. Most of the tests consist of two modules, a main module and a module imported from the main module. The `.1' or `.2' after the file name is a version number. The tests are run as follows: Compile the program using the `.1' versions of each module. Check the expected output. Update the imported module to version `.2'. Check the expected output. Check that the `.err' files contain the correct `--verbose-recompilation' messages. Tests with names ending in `_nr' result in no recompilation of the main module after the change to the imported module. Tests with names ending in `_r' should recompile the main module. Tests with names ending in `_re' should recompile the main module, reporting an error in the recompilation.