1 # vim:set syn=automake:
3 # Variables to be defined:
5 # TEST_VERBOSE - set to 0 or 1 to control test suite verbosity
6 # TEST_ENV_VARS - environment variables to be set for the test suite
7 # TEST_COVERAGE - set to the perl module in charge of getting test coverage
8 # test_tmpdir - test suite temporary directory
9 # test_cases - list of test case files
10 # test_data - list of test data files
15 check-local: $(test_data) $(test_cases)
16 $(mkdir_p) $(test_tmpdir)
17 PATH="$(top_builddir)/src:$(top_builddir)/scripts:$(top_builddir)/utils:$(PATH)" \
20 srcdir=$(srcdir) builddir=$(builddir) \
21 PERL5LIB=$(top_srcdir)/scripts PERL_DL_NONLAZY=1 \
22 PERL5OPT=$(TEST_COVERAGE) \
23 $(PERL) -I$(top_srcdir)/scripts \
24 -MExtUtils::Command::MM -e "test_harness($(TEST_VERBOSE), '.')" \
25 $(addprefix $(srcdir)/,$(test_cases))