Files
mercury/tests/valid_make_int/Mmakefile
Zoltan Somogyi 963f8de56a Fix even more invalid test case failures.
tests/invalid_make_int/unicode_1.{m,int_err_exp}:
tests/invalid_make_int/unicode_2.{m,int_err_exp}:
    Move these two test cases here from invalid_nodepend,
    since the errors they test for have been reported
    when making dependencies for a long while now.

tests/invalid_make_int/Mercury.options:
tests/invalid_make_int/Mmakefile:
tests/invalid_nodepend/Mercury.options:
tests/invalid_nodepend/Mmakefile:
    Update these files for the move.

tests/par_conj/Mmakefile:
    Don't execute the threads_hang test case in non-C grades,
    since one of its predicates is defined only for C.

tests/valid_make_int/Mmakefile:
    In grades that use mmc --make, specify targets to make
    in a form that mmc --make actually accepts. (We used to ask them
    to make a file in a subdirectory, which mmc --make does not allow.)
2025-09-14 18:00:50 +10:00

60 lines
1.5 KiB
Makefile

#-----------------------------------------------------------------------------#
# vim: ts=8 sw=8 noexpandtab ft=make
#-----------------------------------------------------------------------------#
TESTS_DIR = ..
THIS_DIR = valid_make_int
MAYBE_J1 =
#-----------------------------------------------------------------------------#
# Please keep these lists sorted.
SINGLE_MODULE_PROGS = \
extra_interface_import
MULTI_MODULE_PROGS = \
bug506 \
test_repn
#-----------------------------------------------------------------------------#
PROGS = $(SINGLE_MODULE_PROGS) $(MULTI_MODULE_PROGS)
TESTS = $(sort $(SINGLE_MODULE_PROGS:%=%-nodepend) $(MULTI_MODULE_PROGS))
include ../Mmake.common
# Module-specific options should go in Mercury.options so they can be found
# by `mmc --make'.
include Mercury.options
ifeq ($(MMAKE_USE_MMC_MAKE),yes)
$(SINGLE_MODULE_PROGS:%=%.runtest): %.runtest: %.int ;
$(MULTI_MODULE_PROGS:%=%.runtest): %.runtest: %.int ;
else
ifeq ($(TESTS_USE_SUBDIRS),yes)
$(SINGLE_MODULE_PROGS:%=%.runtest): %.runtest: Mercury/ints/%.int ;
$(MULTI_MODULE_PROGS:%=%.runtest): %.runtest: Mercury/ints/%.int ;
else
$(SINGLE_MODULE_PROGS:%=%.runtest): %.runtest: %.int ;
$(MULTI_MODULE_PROGS:%=%.runtest): %.runtest: %.int ;
endif
endif
#-----------------------------------------------------------------------------#
printtests:
@echo $(PROGS)
clean_local: clean_valid_make_int
clean_valid_make_int:
rm -f *.d *.dep *.dep_err *.date *.int*
#-----------------------------------------------------------------------------#