Commit Graph

7 Commits

Author SHA1 Message Date
Zoltan Somogyi
d33273d033 Tell vim not to expand tabs in Makefiles.
This file-specific setting will override a default setting of expandtabs
in $HOME/.vimrc.

*/Makefile:
*/Mmakefile:
    As above.

tests/hard_coded/.gitignore:
    Don't ignore the purity subdir. This ignore must have been left over
    from when purity.m was a test in hard_coded, not hard_coded/purity,
    and it ignored an executable, not a directory.
2015-01-08 22:07:29 +11:00
Julien Fischer
c9a93d9713 Re-add this file from a recent workspace. The version in the repository
samples/tests/c_interface/cplusplus_calls_mercury/Mmakefile:
	Re-add this file from a recent workspace.  The version in the repository
	had been truncated.
2007-10-25 14:00:17 +00:00
Mark Brown
61727c021e Specify the full pathname when source'ing Mmake.thisdir, since
Estimated hours taken: 0.5

samples/tests/*/runtests:
	Specify the full pathname when source'ing Mmake.thisdir, since
	the current directory is not always searched.
2001-02-09 06:46:42 +00:00
Fergus Henderson
3f41481523 Fix some failing test cases in samples/c_interface.
Estimated hours taken: 2.5

Fix some failing test cases in samples/c_interface.
This fixes SourceForge bug report #131053.

samples/c_interface/cplusplus_calls_mercury/Mmakefile:
samples/c_interface/mercury_calls_cplusplus/Mmakefile:
samples/c_interface/simpler_cplusplus_calls_mercury/Mmakefile:
	Fix several bugs:
	- use $(MGNUC) rather than hard-coding mgnuc
	- pass $(ALL_GRADEFLAGS) $(ALL_MGNUCFLAGS) to mgnuc
	- pass $(ALL_GRADEFLAGS) $(ALL_MLFLAGS) to ml
	- s/*_REGS_H/MR_MACHDEPS_*_REGS_H/, to match
	  the renaming that was done a fair while back
	  in the runtime/machdeps/*.h.

samples/tests/c_interface/c_calls_mercury/Mmakefile:
	Add an explicit dependency to ensure that runtests makes
	the dependencies for the extra Mercury library used in
	this test case.
2001-02-05 09:35:56 +00:00
Fergus Henderson
ffff339217 The old version of this file had a bogus SUBDIRS list
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.
2000-11-19 04:14:08 +00:00
Fergus Henderson
0693c176a2 Delete an obsolete comment about setting `GRADEFLAGS-foo_init'
Estimated hours taken: 0.25

tests/Mmake.common:
samples/tests/Mmake.common:
	Delete an obsolete comment about setting `GRADEFLAGS-foo_init'
	(that isn't needed anymore, since Mmake handles it automatically --
	you only need to set `GRADEFLAGS-foo'.)
2000-02-16 07:30:13 +00:00
Tyson Dowd
d64781a3d7 Add a testing architecture for the samples directory.
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.
2000-02-14 05:28:45 +00:00