1 # Variables to be defined:
3 # TEST_VERBOSE - set to 0 (default) or 1 to control test suite verbosity
4 # TEST_PARALLEL - set to 1 (default) or N to control the parallel jobs
5 # TEST_ENV_VARS - environment variables to be set for the test suite
6 # TEST_COVERAGE - set to the perl module in charge of getting test coverage
7 # test_tmpdir - test suite temporary directory
8 # test_scripts - list of test case scripts
9 # test_programs - list of test case programs
10 # test_data - list of test data files
16 [ -z "$(test_tmpdir)" ] || rm -fr $(test_tmpdir)
18 tap-check: $(test_data) $(test_programs) $(test_scripts)
19 [ -z "$(test_tmpdir)" ] || $(MKDIR_P) $(test_tmpdir)
21 TEST_PARALLEL=$(TEST_PARALLEL) \
22 TEST_VERBOSE=$(TEST_VERBOSE) \
23 abs_srcdir=$(abs_srcdir) \
24 abs_builddir=$(abs_builddir) \
25 abs_top_srcdir=$(abs_top_srcdir) \
26 abs_top_builddir=$(abs_top_builddir) \
27 srcdir=$(srcdir) builddir=$(builddir) \
32 PERL5OPT=$(TEST_COVERAGE) \
33 $(PERL) $(top_srcdir)/build-aux/test-runner \
34 $(addprefix $(builddir)/,$(test_programs)) \
35 $(addprefix $(srcdir)/,$(test_scripts))
38 AUTHOR_TESTING=1 $(MAKE) check