#-----------------------------------------------------------------------------#
# vim: ts=8 sw=8 noexpandtab ft=make
#-----------------------------------------------------------------------------#
#
# This directory contains test cases for sub-modules,
# including both nested modules and separate sub-modules.
#
#-----------------------------------------------------------------------------#

TESTS_DIR = ..
THIS_DIR = submodules
MAYBE_J1 = -j1
# Currently these test cases do not reliably pass if you use parallel make.

#-----------------------------------------------------------------------------#

SUB_MODULE_PROGS = \
	accessibility_t1 \
	accessibility_t2 \
	backquoted_qualified_ops \
	class \
	daf_bug \
	deeply_nested \
	direct_arg_cyclic \
	direct_arg_intermod \
	direct_arg_parent \
	dot_separator \
	external_unification_pred \
	finalise_parent \
	g12_fe_bug \
	impl_def_literal \
	initialise_parent \
	mutable_parent \
	nested_t1 \
	nested_t2 \
	nested_t3 \
	nested_intermod \
	non_word_mutable \
	parent_t1 \
	parent_t2 \
	sm_exp_bug \
	use_submodule

# Solver types only work in C grades.
ifeq "$(filter csharp% java%,$(GRADE))" ""
	SOLVER_PROGS = \
		ts
else
	SOLVER_PROGS =
endif

PROGS = $(SUB_MODULE_PROGS) $(SOLVER_PROGS)
TESTS = $(sort $(PROGS))
include ../Mmake.common

# Module-specific options should go in Mercury.options so they can be found
# by `mmc --make'.
include Mercury.options

%.runtest: %.res ;

#-----------------------------------------------------------------------------#
