Makefile.am 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102
  1. # $Id$
  2. # Makefile.am for texinfo/tp/tests.
  3. # Copyright 2012, 2013, 2014, 2015, 2016 Free Software Foundation, Inc.
  4. #
  5. # This file is free software; as a special exception the author gives
  6. # unlimited permission to copy and/or distribute it, with or without
  7. # modifications, as long as this notice is preserved.
  8. #
  9. # This program is distributed in the hope that it will be useful, but
  10. # WITHOUT ANY WARRANTY, to the extent permitted by law; without even the
  11. # implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  12. # autogenerated list of scripts that only run one test, and lists of
  13. # tests-parser.txt files specifying the tests to run.
  14. include $(srcdir)/Makefile.onetst
  15. $(srcdir)/Makefile.onetst: \
  16. ../maintain/regenerate_cmd_tests.sh $(test_driving_files_generated_list)
  17. cd $(srcdir) \
  18. && $(SHELL) ../maintain/regenerate_cmd_tests.sh "$@" . \
  19. -base '$(base_tests)' \
  20. -tex_html '$(tex_html_tests)'
  21. base_tests = formatting htmlxref htmlxref-only_mono htmlxref-only_split \
  22. sectioning coverage indices nested_formats contents layout
  23. tex_html_tests = tex_html
  24. DIST_SUBDIRS = many_input_files $(base_tests) $(tex_html_tests)
  25. SUBDIRS = . many_input_files
  26. copy-tests: copy-base
  27. cd many_input_files && $(MAKE) copy-tests
  28. copy-base:
  29. $(srcdir)/parser_tests.sh -copy $(base_tests)
  30. copy-tex-html:
  31. $(srcdir)/parser_tests.sh -copy $(tex_html_tests)
  32. cd many_input_files && $(MAKE) copy-tex-html
  33. clean-tests:
  34. $(srcdir)/parser_tests.sh -clean $(base_tests) $(tex_html_tests)
  35. other_tests = \
  36. t/stdout.sh \
  37. t/stdout_split.sh
  38. TESTS = $(one_test_files_generated_list) $(other_tests)
  39. AM_TESTS_ENVIRONMENT = srcdir="$(srcdir)"; export srcdir; top_srcdir="$(top_srcdir)"; export top_srcdir; builddir="$(builddir)"; export buildir; top_builddir="$(top_builddir)"; export top_builddir;
  40. all-checks all-check: all
  41. $(MAKE) $(AM_MAKEFLAGS) check ALL_TESTS=yes
  42. tex-html-checks tex-html-check: all
  43. $(MAKE) $(AM_MAKEFLAGS) check TEX_HTML_TESTS=yes
  44. # this is in order to have the htmlxref.cnf files in the build dir.
  45. # This is done in this directory to be sure that the files are there
  46. # when check is done in this directory.
  47. # Some files are in 2 directories in order to get the same result
  48. # in both test run locations.
  49. all-local: htmlxref/htmlxref.cnf htmlxref-only_mono/htmlxref.cnf \
  50. htmlxref-only_split/htmlxref.cnf \
  51. equivalent_nodes-noderename.cnf sectioning/equivalent_nodes-noderename.cnf \
  52. unknown_nodes_renamed-noderename.cnf \
  53. formatting/unknown_nodes_renamed-noderename.cnf coverage_macro-cr.texi
  54. htmlxref/htmlxref.cnf: htmlxref/htmlxref.cnf-ref
  55. ${INSTALL_DATA} $(srcdir)/htmlxref/htmlxref.cnf-ref $@
  56. htmlxref-only_mono/htmlxref.cnf: htmlxref-only_mono/htmlxref.cnf-ref
  57. ${INSTALL_DATA} $(srcdir)/htmlxref-only_mono/htmlxref.cnf-ref $@
  58. htmlxref-only_split/htmlxref.cnf: htmlxref-only_split/htmlxref.cnf-ref
  59. ${INSTALL_DATA} $(srcdir)/htmlxref-only_split/htmlxref.cnf-ref $@
  60. sectioning/equivalent_nodes-noderename.cnf: sectioning/renamednodes.cnf-ref
  61. ${INSTALL_DATA} $(srcdir)/sectioning/renamednodes.cnf-ref $@
  62. equivalent_nodes-noderename.cnf: sectioning/renamednodes.cnf-ref
  63. ${INSTALL_DATA} $(srcdir)/sectioning/renamednodes.cnf-ref $@
  64. formatting/unknown_nodes_renamed-noderename.cnf: formatting/unknown_nodes_renamed-noderename.cnf-ref
  65. ${INSTALL_DATA} $(srcdir)/formatting/unknown_nodes_renamed-noderename.cnf-ref $@
  66. unknown_nodes_renamed-noderename.cnf: formatting/unknown_nodes_renamed-noderename.cnf-ref
  67. ${INSTALL_DATA} $(srcdir)/formatting/unknown_nodes_renamed-noderename.cnf-ref $@
  68. coverage_macro-cr.texi: coverage_macro.texi
  69. sed 's/$$/\r/' $(srcdir)/coverage_macro.texi > $@
  70. EXTRA_DIST = run_parser_all.sh parser_tests.sh \
  71. $(one_test_files_generated_list) coverage_macro.texi \
  72. coverage_macro-cr.texi $(other_tests) reference
  73. DISTCLEANFILES = unknown_nodes_renamed-noderename.cnf \
  74. equivalent_nodes-noderename.cnf
  75. dist-hook:
  76. rm -rf `find $(distdir)/reference -name .svn`