1
# Variables to be defined:
3
# TEST_VERBOSE - set to 0 (default) or 1 to control test suite verbosity
4
# TEST_ENV_VARS - environment variables to be set for the test suite
5
# TEST_COVERAGE - set to the perl module in charge of getting test coverage
6
# test_tmpdir - test suite temporary directory
7
# test_cases - list of test case files
8
# test_data - list of test data files
13
[ -z "$(test_tmpdir)" ] || rm -fr $(test_tmpdir)
15
check-local: $(test_data) $(test_cases)
16
[ -z "$(test_tmpdir)" ] || $(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))