Makecheck.am 954 B

1234567891011121314151617181920212223242526
  1. # Variables to be defined:
  2. #
  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
  9. TEST_VERBOSE ?= 0
  10. check-clean:
  11. [ -z "$(test_tmpdir)" ] || rm -fr $(test_tmpdir)
  12. check-local: $(test_data) $(test_cases)
  13. [ -z "$(test_tmpdir)" ] || $(MKDIR_P) $(test_tmpdir)
  14. PATH="$(top_builddir)/src:$(top_builddir)/scripts:$(top_builddir)/utils:$(PATH)" \
  15. LC_ALL=C \
  16. $(TEST_ENV_VARS) \
  17. srcdir=$(srcdir) builddir=$(builddir) \
  18. PERL5LIB=$(top_srcdir)/scripts PERL_DL_NONLAZY=1 \
  19. PERL5OPT=$(TEST_COVERAGE) \
  20. $(PERL) -I$(top_srcdir)/scripts \
  21. -MExtUtils::Command::MM -e "test_harness($(TEST_VERBOSE), '.')" \
  22. $(addprefix $(srcdir)/,$(test_cases))