|
@@ -1,11 +1,11 @@
|
|
|
# Variables to be defined:
|
|
|
#
|
|
|
-# TEST_PREFIX - set to the path to prefix to each test case for execution
|
|
|
# TEST_VERBOSE - set to 0 (default) or 1 to control test suite verbosity
|
|
|
# TEST_ENV_VARS - environment variables to be set for the test suite
|
|
|
# TEST_COVERAGE - set to the perl module in charge of getting test coverage
|
|
|
# test_tmpdir - test suite temporary directory
|
|
|
-# test_cases - list of test case files
|
|
|
+# test_scripts - list of test case scripts
|
|
|
+# test_programs - list of test case programs
|
|
|
# test_data - list of test data files
|
|
|
|
|
|
TEST_VERBOSE ?= 0
|
|
@@ -23,7 +23,7 @@ TEST_RUNNER = '\
|
|
|
check-clean:
|
|
|
[ -z "$(test_tmpdir)" ] || rm -fr $(test_tmpdir)
|
|
|
|
|
|
-check-local: $(test_data) $(test_cases)
|
|
|
+check-local: $(test_data) $(test_programs) $(test_scripts)
|
|
|
[ -z "$(test_tmpdir)" ] || $(MKDIR_P) $(test_tmpdir)
|
|
|
PATH="$(top_builddir)/src:$(top_builddir)/scripts:$(top_builddir)/utils:$(PATH)" \
|
|
|
LC_ALL=C \
|
|
@@ -32,6 +32,5 @@ check-local: $(test_data) $(test_cases)
|
|
|
PERL_DL_NONLAZY=1 \
|
|
|
PERL5OPT=$(TEST_COVERAGE) \
|
|
|
$(PERL) -MTAP::Harness -e $(TEST_RUNNER) \
|
|
|
- $(if $(TEST_PREFIX), \
|
|
|
- $(addprefix $(TEST_PREFIX)/,$(test_cases)), \
|
|
|
- $(addprefix $(srcdir)/,$(test_cases)))
|
|
|
+ $(addprefix $(builddir)/,$(test_programs)) \
|
|
|
+ $(addprefix $(srcdir)/,$(test_scripts))
|