Files
mercury/tests/general/Mmakefile
Fergus Henderson 0470b29931 Disable the dnf' test case, since it uses tabling (pragma memo')
Estimated hours taken: 0.1

tests/general/Mmakefile:
	Disable the `dnf' test case, since it uses tabling (`pragma memo')
	which isn't implemented in non-gc grades yet.
1998-05-16 15:53:04 +00:00

102 lines
2.4 KiB
Plaintext

#-----------------------------------------------------------------------------#
main_target: check
include ../Mmake.common
#-----------------------------------------------------------------------------#
ifeq ($(HAVE_NUPROLOG),yes)
%.exp: %.nu
{ [ -f $*.inp ] && cat $*.inp; } | ./$< > $@ 2>&1;
endif
#-----------------------------------------------------------------------------#
# Any program added here should also be added to the `.cvsignore' file.
PROGS= array_test \
commit_bug \
commit_bug_2 \
disj_disj \
hello_again \
interpreter \
nasty_nondet \
nondet_disj \
nondet_ite \
nondet_ite_3 \
nondet_ite_4 \
nondetlive \
partition \
semidet_lambda \
\
arithmetic \
det_complicated_unify \
determinism_inlining \
double_error \
double_error2 \
duplicate_label \
environment \
fail_detism \
float_test \
frameopt_mkframe_bug \
higher_order \
intermod_type \
liveness \
liveness2 \
mode_inf_bug \
mode_inf \
mu \
nondet_ite_2 \
parse_list \
petdr1 \
prune_switch \
semidet_map \
set_test \
string_format_test \
string_test \
string_test_2 \
univ \
unreachable
# space.m does not work, due to an unfixed bug in code generation.
# dnf.m does not work in non-gc grades, because it uses `pragma memo'
# (i.e. tabling) and tabling is not yet implemented for non-gc grades.
NOT_WORKING = space dnf
# mode_inf and mode_inf_bug need to be compiled with `--infer-all'.
MCFLAGS-mode_inf = --infer-all
MCFLAGS-mode_inf_bug = --infer-all
MCFLAGS-intermod_type = --intermodule-optimization
MCFLAGS-intermod_type2 = --intermodule-optimization
# In grade `none' with options `-O1 --opt-space' on kryten
# (a sparc-sun-solaris2.5 system), string_test needs to be linked
# with `--no-strip', otherwise it gets a seg fault.
# The test case ../hard_coded/mode_choice suffers from a similar problem.
# This is probably a bug in one of the underlying tools (e.g. the Solaris
# linker) rather than a bug in Mercury, and since it is goes away when you
# compile with debugging information, it is very difficult to debug.
# It is much easier to just work around it this way rather than
# tracking it down.
MLFLAGS-string_test = --no-strip
DEPENDS=$(PROGS:%=%.depend)
OUTS= $(PROGS:%=%.out)
EXPS= $(PROGS:%=%.exp)
RESS= $(PROGS:%=%.res)
MODS= $(PROGS:%=%.mod)
depend: $(DEPENDS)
exp: $(EXPS)
check: $(OUTS) $(RESS)
mods: $(MODS)
all: $(PROGS)
#-----------------------------------------------------------------------------#