Files
mercury/tests/typeclasses/Mmakefile
Zoltan Somogyi 8a764392d9 Avoid warnings from make in test directories.
tests/Mmake.common:
    Don't invoke any actions in the clean_local and realclean_local
    targets, since if using mmc --make, the builtin mmake rules
    have actions for those targets as well, and make can't handle
    more than one action for a target having actions. Replace those
    actions with dependencies on other, unique targets that have
    the actions instead.

tests/*/Mmakefile:
    Avoid actions in clean_local and realclean_local targets the same way.

    Sort the test names in some directories that didn't already do so.

    Delete some obsolete comments.

    Fix style.

tests/valid/Mmake.valid.common:
    As for the Mmakefiles above, and also move the definition of a make
    variable before it is needed.
2015-09-08 05:57:53 +10:00

126 lines
3.0 KiB
Makefile

#-----------------------------------------------------------------------------#
# vim: ts=8 sw=8 noexpandtab ft=make
#-----------------------------------------------------------------------------#
THIS_DIR = typeclasses
SUBDIRS =
TESTS_DIR = ..
MAYBE_J1 =
#-----------------------------------------------------------------------------#
TYPECLASSES_PROGS = \
arbitrary_constraint_class \
arbitrary_constraint_pred_2 \
arbitrary_constraint_pred_1 \
complicated_constraint \
complicated_fundeps \
constrained_lambda \
extract_typeinfo \
extract_typeinfo2 \
exist_disjunction \
existential_type_classes \
existential_data_types \
existential_data_types_regr_test \
existential_rtti \
existential_type_switch \
extra_typeinfo \
func_default_mode_bug \
fundeps_1 \
fundeps_2 \
fundeps_3 \
fundeps_4 \
fundeps_5 \
fundeps_6 \
fundeps_7 \
ground_constraint \
ground_constraint_2 \
ho_map \
implied_instance \
implied_instance_multi_constraint \
implied_instance_missing_constraint \
implied_instance_poly \
impure_methods \
instance_clauses \
instance_unconstrained_tvar \
instance_unconstrained_tvar_type_spec \
inference_test \
inference_test_2 \
intermod_typeclass_bug \
lambda_multi_constraint_same_tvar \
mode_decl_order_bug \
module_test \
multi_constraint_diff_tvar \
multi_constraint_same_tvar \
multi_moded \
multi_parameter \
multi_parameter_bug \
no_fundep_infer \
nondet_class_method \
operator_classname \
record_syntax \
recursive_instance_1 \
reordered_existential_constraint \
submodule_consistency_test \
superclass_bug \
superclass_bug2 \
superclass_bug3 \
superclass_call \
test_default_func_mode \
tuple_instance \
typeclass_exist_method \
typeclass_exist_method_2 \
typeclass_order_bug \
typeclass_order_bug2 \
typeclass_order_bug3 \
typeclass_test_5 \
typeclass_test_6 \
type_spec \
unbound_tvar \
unqualified_method \
use_abstract_instance \
use_abstract_typeclass
# XXX We currently do only limited testing in grade java on this directory.
JAVA_TYPECLASSES_PROGS = \
ground_constraint \
implied_instance \
implied_instance_poly \
impure_methods \
intermod_typeclass_bug \
lambda_multi_constraint_same_tvar \
multi_constraint_diff_tvar \
multi_constraint_same_tvar \
multi_parameter \
multi_parameter_bug \
nondet_class_method \
reordered_existential_constraint \
superclass_bug \
superclass_bug2 \
superclass_bug3 \
superclass_call \
test_default_func_mode \
typeclass_test_5
# We don't support duplicated type variables in instance declarations yet.
# When we do, this test case should be enabled.
# instance_unconstrained_tvar_dup
ifneq "$(findstring java,$(GRADE))" ""
PROGS = $(JAVA_TYPECLASSES_PROGS)
else
PROGS = $(TYPECLASSES_PROGS)
endif
TESTS = $(PROGS)
include $(TESTS_DIR)/Mmake.common
# Module-specific options should go in Mercury.options so they
# can be found by `mmc --make'.
include Mercury.options
%.runtest: %.res ;
#-----------------------------------------------------------------------------#