Commit Graph

44 Commits

Author SHA1 Message Date
Zoltan Somogyi
4e46561bc4 Put module imports in their proper place.
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.
2000-09-04 04:48:44 +00:00
Zoltan Somogyi
66ac848b1e If the new --test-params option is given, copy the stage 2 Mmake.params
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.
2000-04-05 06:12:04 +00:00
Fergus Henderson
b15265caed Tell CVS to ignore poly.*.memprof.*.
Estimated hours taken: 0.1

tests/benchmarks/.cvsignore:
	Tell CVS to ignore poly.*.memprof.*.
1999-10-25 04:33:03 +00:00
Fergus Henderson
533b648219 Add support for setting MLFLAGS to tests/runtests.
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.
1999-10-03 08:20:42 +00:00
Zoltan Somogyi
c10175956e Ignore the CLEAN file.
Estimated hours taken: 0.1

tests/*/.cvsignore:
	Ignore the CLEAN file.
1998-09-30 04:23:44 +00:00
Zoltan Somogyi
f569e38ab1 Refer to printlist.m without an underscore. Doh.
Estimated hours taken: 0.1

tests/benchmarks/*.m:
	Refer to printlist.m without an underscore. Doh.
1998-09-16 04:56:32 +00:00
Zoltan Somogyi
3fa17815ab Move the import of print_list.m from the interface to the
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.
1998-09-15 07:17:39 +00:00
Zoltan Somogyi
ec5959523a Remove unnecessary imports.
Estimated hours taken: 0.1

tests/benchmarks/tak.m:
	Remove unnecessary imports.
1998-08-10 07:10:54 +00:00
Zoltan Somogyi
98fc3e45c0 Move the import of printlist into the implementation, where it belongs.
Estimated hours taken: 0.02

tests/benchmarks/queens.m:
	Move the import of printlist into the implementation, where it belongs.
	This avoids a warning.
1998-06-29 09:15:34 +00:00
Fergus Henderson
eb4df9d515 Update the expected memory profiling output to reflect changes
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.
1998-06-27 09:45:41 +00:00
Fergus Henderson
f326c7bb46 Update the expected profile output to reflect the split of
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.
1998-05-30 15:29:27 +00:00
Fergus Henderson
ef70f68916 Change the existing test case for memory profiling so that it
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.
1998-05-25 07:50:52 +00:00
Zoltan Somogyi
564d358da3 Avoid about half of the slow "mmake realclean"s required by a bootcheck.
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.
1998-05-13 04:06:38 +00:00
Zoltan Somogyi
cd31eecf88 When reporting the results, print the options that controlled
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.
1998-04-23 09:28:39 +00:00
Fergus Henderson
6e06050558 Rename Mmake' as Mmakefile', since using the name `Mmake'
Estimated hours taken: 0.25

*/Mmake:
	Rename `Mmake' as `Mmakefile', since using the name `Mmake'
	causes problems on case-insensitive file systems.
1997-09-29 18:05:38 +00:00
Fergus Henderson
b41b7780ba Remove the rule for `mmake clean'. The automatically-generated
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'.
1997-08-14 07:50:15 +00:00
Fergus Henderson
eef924930d If the tests succeeded, remove the `.allres' file, rather than
Estimated hours taken: 0.25

test/*/runtests:
	If the tests succeeded, remove the `.allres' file, rather than
	leaving it lying around.
1997-07-14 03:18:46 +00:00
Zoltan Somogyi
35eec814fd Simple formatting change to make future changes easier.
Estimated hours taken: 0.1

Mmake:
	Simple formatting change to make future changes easier.
1997-04-27 05:14:52 +00:00
Tyson Dowd
bc1e28d8d5 Fix bugs in the scripts for running tests.
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.
1997-03-18 06:01:27 +00:00
Fergus Henderson
4d2a39d04c Fix bugs in the testing scripts which meant that commands such as
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.
1996-12-14 16:56:22 +00:00
Fergus Henderson
f14a6860a6 Fix a bug in the testing process which meant
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.
1996-11-26 01:15:18 +00:00
Zoltan Somogyi
1b5905ffbe Include ../Mmake.common instead of ../Mmake.
Estimated hours taken: 0.1

Mmake:
	Include ../Mmake.common instead of ../Mmake.
1996-11-21 08:30:37 +00:00
Zoltan Somogyi
b22d9c3dcd The expected output for each test.
Estimated hours taken: 0

*.exp:
	The expected output for each test.
1996-11-04 07:00:59 +00:00
Zoltan Somogyi
7779054295 Add a rule for mmake clean.
Estimated hours taken: 1

Mmake:
	Add a rule for mmake clean.

runtests:
	Compare actual outputs with the outputs computed by NU-Prolog.
1996-11-04 06:57:37 +00:00
Fergus Henderson
0ecebea6e4 Add a target for building all the `.out' files.
Estimated hours taken: 0.1

tests/benchmarks/Mmake:
	Add a target for building all the `.out' files.
1996-07-24 16:00:35 +00:00
Fergus Henderson
c8dd4f1eaf Add `cs' target, to make the .c files.
Estimated hours taken: 0.1

tests/benchmarks/Mmake:
	Add `cs' target, to make the .c files.
1996-03-15 14:53:10 +00:00
Fergus Henderson
aa8c66345d Fix unique mode errors in the benchmark tests.
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.
1996-01-15 16:34:46 +00:00
Fergus Henderson
ea6801399e Add *.exp *.out *.res to the .cvsignore files in the tests subdirectories. 1995-11-19 08:58:19 +00:00
Fergus Henderson
61bc4f34fa General clean up of the test suite directories.
tests/benchmarks/Mmake:
	Minor changes.  Add `mmake dep' target.
1995-11-14 07:57:05 +00:00
Fergus Henderson
5f5f46ff98 Add a `.cvsignore' file to the repository. 1995-10-07 06:41:52 +00:00
Fergus Henderson
e37104b795 Fix singleton variable warning.
tests/benchmarks/poly.m:
	Fix singleton variable warning.
1995-09-09 00:08:29 +00:00
Fergus Henderson
e8a39797b6 Modify the nondet/semidet benchmarks so that `main' is either
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.
1995-06-27 14:26:17 +00:00
Fergus Henderson
06a9689403 Add a comment to the Mmake file.
tests/benchmarks/Mmake:
	Add a comment to the Mmake file.
1995-06-23 10:45:16 +00:00
Fergus Henderson
af9ac87a91 Remove reference to *.mod.
tests/benchmarks/Mmake:
	Remove reference to *.mod.
1995-05-10 09:19:36 +00:00
Fergus Henderson
c3d6d6511a Rename *.nl as *.m.
tests/benchmarks:
	Rename *.nl as *.m.
	Move arithmetic.nl to tests/general.
1995-04-22 16:56:09 +00:00
Fergus Henderson
150d1d1404 Use mmake.
tests/*
	Use mmake.
	Use main/2 rather than main_predicate/3.
1995-03-18 15:57:10 +00:00
Fergus Henderson
aaafa54da5 Define main/2.
*.nl:
	Define main/2.
1995-03-06 05:22:25 +00:00
Fergus Henderson
12e85f8c62 Avoid dependency on list module, since it causes link problems
poly.nl:
	Avoid dependency on list module, since it causes link problems
	with unification preds.
1995-01-17 21:19:33 +00:00
Fergus Henderson
6767c77662 Removed arithmetic.nl stuff from the Makefiles etc., since arithmetic.nl
is in tests/general now.
1994-10-13 22:05:25 +00:00
Fergus Henderson
88d7481917 Make it 9-queens rather than 8-queens.
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.
1994-10-02 16:40:36 +00:00
Fergus Henderson
911d21a87a Various changes.
Makefile:
	Various changes.
1994-09-08 12:56:45 +00:00
Fergus Henderson
7f8044592b Clean up some junk.
Entry, NP_Entry:
	Clean up some junk.
1994-09-08 12:55:07 +00:00
Fergus Henderson
96210ed42e Lots of makefile hacking.
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!
1994-08-28 21:53:49 +00:00
Fergus Henderson
5468d2b766 Add the beginnings of a test suite directory. 1994-08-27 20:08:00 +00:00