tests/analysis_external/ext.m:
tests/analysis_external/ext2.m:
tests/dppd/bug.m:
tests/valid/determinism.m:
tests/valid/mode_merge_insts.m:
Replace `:- external' declarations with the new pragma form.
tests/accumulator/*.m:
tests/analysis_*/*.m:
tests/benchmarks*/*.m:
tests/debugger*/*.{m,exp,inp}:
tests/declarative_debugger*/*.{m,exp,inp}:
tests/dppd*/*.m:
tests/exceptions*/*.m:
tests/general*/*.m:
tests/grade_subdirs*/*.m:
tests/hard_coded*/*.m:
Make these tests use four-space indentation, and ensure that
each module is imported on its own line. (I intend to use the latter
to figure out which subdirectories' tests can be executed in parallel.)
These changes usually move code to different lines. For the debugger tests,
specify the new line numbers in .inp files and expect them in .exp files.
Estimated hours taken: 1.5
Branches: main
Clean up tests/dppd so that it uses the new test suite framework properly,
all the tests are enabled, and all tests pass.
tests/dppd/Mmakefile:
- Don't set MLFLAGS = --static.
- Add "%.runtest: %.res", as required by tests/Mmake.common.
- Likewise set THIS_DIR, TESTS, and SUBDIRS, as required by
tests/Mmake.common. TESTS is set to just the single test "run",
which is actually a Mercury test harness which invokes all the tests.
- Delete the rule "default_target: run", since the default target
is handled by tests/Mmake.common.
tests/dppd/grammar.m:
tests/dppd/grammar_impl.m:
Fix various type, mode, and determinism errors.
(Apparently this test had not yet been fully converted to Mercury.)
tests/dppd/run.m:
- Enable the "grammar", "ssuply", and "maxlength" tests.
- Don't define the inst "pair/2", since that is defined in std_util.m.
- Use "garbage_collect" from the standard library "gc" module,
rather than defining our own version of "collect" here, since it is
now defined in the standard library, and the definition here was
broken for grades that don't use conservative GC.
tests/dppd/map_reduce.m:
Work around a Mercury compiler bug, due to the lack of support for
partially instantiated data structures.
tests/dppd/bug.m:
Add some XXX comments.