Makecheck.am 871 B

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