Makefile.am 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101
  1. EXTRA_DIST = run_test.sh run_test_all.sh tests.sh $(TESTS) long_tests \
  2. coverage_macro.texi
  3. base_tests = \
  4. macros sectioning formatting coverage info_coverage encodings indices \
  5. layout nested_formats contents \
  6. $(htmlxref_cnf_tests) invalid
  7. long_tests = \
  8. misc manuals xemacs_manual texi2html_manual tar_manual singular_manual
  9. htmlxref_cnf_tests = htmlxref htmlxref-only_mono htmlxref-only_split
  10. tex_html_tests = tex_html tex_html_manuals tex_html_singular
  11. DIST_SUBDIRS = $(base_tests) $(long_tests) $(tex_html_tests) many_input_files
  12. SUBDIRS = . many_input_files
  13. copy-tests: copy-base copy-long
  14. cd many_input_files && $(MAKE) copy-tests
  15. copy-base:
  16. $(srcdir)/tests.sh all -copy $(base_tests)
  17. # cp $(srcdir)/formatting/res/texi_formatting/formatting.texi $(srcdir)/formatting/formatting_for_makeinfo.texi
  18. copy-long:
  19. $(srcdir)/tests.sh all -copy $(long_tests)
  20. clean-tests:
  21. $(srcdir)/tests.sh all -clean $(base_tests) $(long_tests) $(tex_html_tests)
  22. copy-tex-html:
  23. $(srcdir)/tests.sh all -copy $(tex_html_tests)
  24. TESTS = base_tests
  25. # mimic automake check for an optional
  26. long-check:
  27. @srcdir=$(srcdir); export srcdir; \
  28. tst=tests.sh; failed=0; \
  29. if test -f ./$$tst; then dir=./; \
  30. elif test -f $$tst; then dir=; \
  31. else dir="$(srcdir)/"; fi; \
  32. if $(TESTS_ENVIRONMENT) $${dir}$$tst all $(long_tests); then :; \
  33. else failed="1"; fi ; \
  34. if test "$$failed" -ne 0; then \
  35. echo "FAIL: long_test"; \
  36. echo "========================================="; \
  37. echo "Failure of long_tests"; \
  38. if test -n "$(PACKAGE_BUGREPORT)"; then \
  39. echo "Please report to $(PACKAGE_BUGREPORT)"; \
  40. fi; \
  41. echo "========================================="; \
  42. else \
  43. echo "PASS: long_test"; \
  44. echo "================"; \
  45. echo "long_test passed"; \
  46. echo "================"; \
  47. fi ;\
  48. test "$$failed" -eq 0;
  49. tex-html-check:
  50. @srcdir=$(srcdir); export srcdir; \
  51. tst=tests.sh; failed=0; \
  52. if test -f ./$$tst; then dir=./; \
  53. elif test -f $$tst; then dir=; \
  54. else dir="$(srcdir)/"; fi; \
  55. if $(TESTS_ENVIRONMENT) $${dir}$$tst all $(tex_html_tests); then :; \
  56. else failed="1"; fi ; \
  57. if test "$$failed" -ne 0; then \
  58. echo "FAIL: tex_html"; \
  59. echo "========================================="; \
  60. echo "Failure of tex_html"; \
  61. if test -n "$(PACKAGE_BUGREPORT)"; then \
  62. echo "Please report to $(PACKAGE_BUGREPORT)"; \
  63. fi; \
  64. echo "========================================="; \
  65. else \
  66. echo "PASS: tex_html"; \
  67. echo "=============="; \
  68. echo "tex_html passed"; \
  69. fi ;\
  70. test "$$failed" -eq 0;
  71. all-checks: check long-check
  72. # this is in order to have the files in .texinfo in the build dir
  73. all-local:
  74. for dir in $(htmlxref_cnf_tests); do \
  75. if [ -f "$(srcdir)/$$dir/htmlxref.cnf-texinfo" ]; then \
  76. $(MKDIR_P) $$dir/.texinfo/ ; \
  77. ${INSTALL_DATA} "$(srcdir)/$$dir/htmlxref.cnf-texinfo" $$dir/.texinfo/ ; \
  78. fi; \
  79. if [ -f $(srcdir)/$$dir/htmlxref.cnf-ref ]; then \
  80. ${INSTALL_DATA} "$(srcdir)/$$dir/htmlxref.cnf-ref" $$dir/htmlxref.cnf ; \
  81. fi; \
  82. done
  83. ${INSTALL_DATA} $(srcdir)/sectioning/renamednodes.cnf-ref sectioning/equivalent_nodes-noderename.cnf
  84. clean-local:
  85. for dir in $(htmlxref_cnf_tests); do \
  86. rm -rf $$dir/.texinfo/ $$dir/htmlxref.cnf ; \
  87. done
  88. rm -f sectioning/equivalent_nodes-noderename.cnf