Commit Graph

4 Commits

Author SHA1 Message Date
Julien Fischer
f32063fc75 Replace `:- external' declarations in tests we don't currently pass.
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.
2016-04-29 14:44:20 +10:00
Zoltan Somogyi
33eb3028f5 Clean up the tests in half the test directories.
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.
2015-02-14 20:14:03 +11:00
Fergus Henderson
791a0e170b Clean up tests/dppd so that it uses the new test suite framework properly,
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.
2003-01-10 13:33:41 +00:00
Peter Ross
51497341cc Add the DPPD (dozens of problems in partial deduction) suite to the
Estimated hours taken: 0.1

Add the DPPD (dozens of problems in partial deduction) suite to the
tests directory.
1999-02-20 11:34:42 +00:00