1 ## Process this file with automake to create Makefile.in
3 # Copyright (C) 1996, 1997, 1998, 1999, 2001, 2002, 2003, 2004, 2005,
4 # 2006, 2007, 2008, 2009, 2010, 2011 Free Software Foundation, Inc.
6 # This program is free software; you can redistribute it and/or modify
7 # it under the terms of the GNU General Public License as published by
8 # the Free Software Foundation; either version 2, or (at your option)
11 # This program is distributed in the hope that it will be useful,
12 # but WITHOUT ANY WARRANTY; without even the implied warranty of
13 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 # GNU General Public License for more details.
16 # You should have received a copy of the GNU General Public License
17 # along with this program. If not, see <http://www.gnu.org/licenses/>.
19 TEST_EXTENSIONS = .test .tap
20 TAP_LOG_DRIVER = $(PERL) $(top_srcdir)/lib/tap-driver
21 TAP_LOG_DRIVER_FLAGS = --merge
23 MAINTAINERCLEANFILES =
24 EXTRA_DIST = ChangeLog-old
31 override-conditional-2.test \
32 pr8365-remake-timing.test \
33 yacc-dist-nobuild-subdir.test \
34 tap-plan-corner2.test \
40 include $(srcdir)/parallel-tests.am
42 $(srcdir)/parallel-tests.am: gen-parallel-tests Makefile.am
43 $(AM_V_GEN)($(am__cd) $(srcdir) && $(SHELL) ./gen-parallel-tests) >$@
45 $(parallel_tests): Makefile.am
46 $(AM_V_at)rm -f $@ $@-t
47 $(AM_V_GEN)input=`echo $@ | sed 's,.*/,,; s,-p.test$$,.test,'`; \
49 echo '# DO NOT EDIT! GENERATED AUTOMATICALLY!'; \
51 echo '# Ensure proper definition of $$testsrcdir.'; \
52 echo '. ./defs-static || exit 99'; \
53 echo 'test -n "$$testsrcdir" || exit 99 # sanity check'; \
55 echo "# Run the test with Automake's parallel-tests driver enabled."; \
56 echo 'parallel_tests=yes'; \
57 echo "# In the spirit of VPATH, we prefer a test in the build tree"; \
58 echo "# over one in the source tree."; \
59 echo "if test -f \"./$$input\"; then"; \
60 echo " . \"./$$input\""; \
62 echo " . \"\$$testsrcdir/$$input\""; \
65 $(AM_V_at)chmod a+rx $@-t && mv -f $@-t $@
67 MAINTAINERCLEANFILES += $(parallel_tests)
68 EXTRA_DIST += gen-parallel-tests
71 include $(srcdir)/instspc-tests.am
73 $(srcdir)/instspc-tests.am: instspc-tests.sh Makefile.am
74 $(AM_V_GEN)($(am__cd) $(srcdir) \
75 && $(SHELL) ./instspc-tests.sh --generate-makefile) >$@
77 $(instspc_tests): Makefile.am
78 $(AM_V_at)rm -f $@ $@-t
80 base=`expr 'x/$@' : 'x.*/instspc-\(.*\)\.test$$'`; \
81 name=`expr x"$$base" : x'\(.*\)-'`; \
82 action=`expr x"$$base" : x'.*-\(.*\)'`; \
85 echo '# DO NOT EDIT! GENERATED AUTOMATICALLY!'; \
87 echo '# Ensure proper definition of $$testsrcdir.'; \
88 echo '. ./defs-static || exit 99'; \
89 echo 'test -n "$$testsrcdir" || exit 99 # sanity check'; \
91 echo "instspc_test_name='$$name'"; \
92 echo "instspc_action='test-$$action'"; \
93 echo ". \$$testsrcdir/instspc-tests.sh"; \
95 $(AM_V_at)chmod a+rx $@-t && mv -f $@-t $@
97 # All instspc-*.test tests work by sourcing the `instspc-tests.sh'
98 # script. Also, they all use shared data generated by the helper
99 # test `instspc-data.test', for reasons of speed.
100 instspc-data.log: instspc-tests.sh
101 $(instspc_tests:.test=.log): instspc-tests.sh instspc-data.log
103 MAINTAINERCLEANFILES += $(instspc_tests)
104 EXTRA_DIST += instspc-tests.sh
105 XFAIL_TESTS += $(instspc_xfail_tests)
108 # Some testsuite-influential variables should be overridable from the
109 # test scripts, but not from the environment.
110 AM_TESTS_ENVIRONMENT = \
111 test x"$$me" = x || unset me; \
112 test x"$$required" = x || unset required; \
113 test x"$$use_tap" = x || unset use_tap; \
114 test x"$$parallel_tests" = x || unset parallel_tests; \
115 test x"$$original_AUTOMAKE" = x || unset original_AUTOMAKE; \
116 test x"$$original_ACLOCAL" = x || unset original_ACLOCAL;
154 amopts-location.test \
155 amopts-variable-expansion.test \
157 ansi2knr-deprecation.test \
176 autodist-subdir.test \
177 autodist-acconfig.test \
178 autodist-acconfig-no-subdir.test \
179 autodist-aclocal-m4.test \
180 autodist-config-headers.test \
181 autodist-configure-no-subdir.test \
182 autodist-no-duplicate.test \
183 autodist-stamp-vti.test \
239 check-exported-srcdir.test \
240 check-fd-redirect.test \
241 check-tests-in-builddir.test \
242 check-no-test-driver.test \
269 comments-in-var-def.test \
276 compile_f90_c_cxx.test \
277 compile_f_c_cxx.test \
363 cygnus-check-without-all.test \
364 cygnus-dependency-tracking.test \
365 cygnus-imply-foreign.test \
366 cygnus-no-dist.test \
367 cygnus-no-installinfo.test \
368 cygnus-requires-maintainer-mode.test \
399 deprecated-acinit.test \
404 dist-included-parent-dir.test \
405 distcleancheck.test \
416 distcheck-configure-flags.test \
417 distcheck-configure-flags-am.test \
418 distcheck-configure-flags-subpkg.test \
419 distcheck-hook.test \
420 distcheck-hook2.test \
488 hdr-vars-defined-once.test \
499 help-maintainer.test \
525 instdir-python.test \
531 instfail-libtool.test \
537 instmany-python.test \
559 lex-subobj-nodep.test \
634 maintclean-vpath.test \
669 no-outdir-option.test \
671 nobase-libtool.test \
708 override-conditional-1.test \
709 override-conditional-2.test \
711 override-suggest-local.test \
715 parallel-tests.test \
716 parallel-tests2.test \
717 parallel-tests3.test \
718 parallel-tests4.test \
719 parallel-tests5.test \
720 parallel-tests6.test \
721 parallel-tests7.test \
722 parallel-tests8.test \
723 parallel-tests9.test \
724 parallel-tests10.test \
725 parallel-tests-dry-run.test \
726 parallel-tests-fd-redirect.test \
727 parallel-tests-extra-programs.test \
728 parallel-tests-unreadable.test \
729 parallel-tests-subdir.test \
730 parallel-tests-interrupt.test \
731 parallel-tests-reset-term.test \
732 parallel-tests-harderror.test \
733 parallel-tests-log-override-1.test \
734 parallel-tests-log-override-2.test \
735 parallel-tests-log-override-recheck.test \
736 parallel-tests-empty-testlogs.test \
737 parallel-tests-driver-install.test \
738 parallel-tests-no-spurious-summary.test \
739 parallel-tests-exit-statuses.test \
740 parallel-tests-console-output.test \
741 parallel-tests-once.test \
742 tests-environment.test \
743 am-tests-environment.test \
744 testsuite-summary-color.test \
745 testsuite-summary-count.test \
746 testsuite-summary-count-many.test \
747 testsuite-summary-reference-log.test \
748 test-driver-custom-no-extra-driver.test \
749 test-driver-custom.test \
750 test-driver-custom-xfail-tests.test \
751 test-driver-custom-multitest.test \
752 test-driver-custom-multitest-recheck.test \
753 test-driver-custom-multitest-recheck2.test \
754 test-driver-custom-html.test \
755 test-driver-custom-no-html.test \
756 test-driver-create-log-dir.test \
757 test-driver-strip-vpath.test \
758 test-driver-fail.test \
760 test-metadata-global-log.test \
761 test-metadata-recheck.test \
762 test-metadata-results.test \
765 test-trs-basic.test \
766 test-trs-recover.test \
767 test-trs-recover2.test \
783 posixsubst-data.test \
784 posixsubst-extradist.test \
785 posixsubst-ldadd.test \
786 posixsubst-libraries.test \
787 posixsubst-ltlibraries.test \
788 posixsubst-programs.test \
789 posixsubst-scripts.test \
790 posixsubst-sources.test \
791 posixsubst-tests.test \
819 primary-prefix-invalid-couples.test \
820 primary-prefix-valid-couples.test \
821 primary-prefix-couples-force-valid.test \
822 primary-prefix-couples-documented-valid.test \
839 python-virtualenv.test \
862 remake-subdir-from-subdir.test \
863 remake-subdir-gnu.test \
865 remake-subdir2.test \
866 remake-gnulib-add-acsubst.test \
867 remake-gnulib-add-header.test \
868 remake-gnulib-remove-header.test \
869 remake-moved-m4-file.test \
870 remake-deleted-m4-file.test \
871 remake-renamed-m4-file.test \
872 remake-renamed-m4-macro-and-file.test \
873 remake-renamed-m4-macro.test \
874 pr8365-remake-timing.test \
876 regex-obsolete.test \
880 repeated-options.test \
882 self-check-cleanup.test \
883 self-check-dir.test \
884 self-check-env-sanitize.test \
885 self-check-exit.test \
886 self-check-is_newest.test \
888 self-check-report.test \
889 self-check-sanity.test \
890 self-check-tap.test \
891 self-check-unindent.test \
906 silent-many-gcc.test \
907 silent-many-generic.test \
908 silent-lex-gcc.test \
909 silent-lex-generic.test \
910 silent-yacc-gcc.test \
911 silent-yacc-generic.test \
913 silent-configsite.test \
935 strictness-override.test \
936 strictness-precedence.test \
950 subdirbuiltsources.test \
998 $(tap_with_common_setup_tests) \
1006 target-cflags.test \
1008 tests-environment-fd-redirect.test \
1009 tests-environment-and-log-compiler.test \
1040 txinfo-unrecognized-extension.test \
1070 warnings-override.test \
1071 warnings-precedence.test \
1072 warnings-strictness-interactions.test \
1073 warnings-unknown.test \
1075 warnings-win-over-strictness.test \
1076 warning-groups-win-over-strictness.test \
1095 yacc-dist-nobuild.test \
1100 yacc-dist-nobuild-subdir.test \
1103 yflags-cmdline-override.test \
1104 yflags-conditional.test \
1105 yflags-d-false-positives.test \
1106 yflags-force-override.test \
1107 yflags-force-conditional.test \
1108 yflags-var-expand.test \
1111 EXTRA_DIST += $(TESTS)
1113 ## Files containing auxiliary functions used by our test cases.
1114 EXTRA_DIST += tap-functions.sh plain-functions.sh
1116 test-driver-custom-multitest.log: trivial-test-driver
1117 test-driver-custom-multitest-recheck.log: trivial-test-driver
1118 test-driver-custom-multitest-recheck2.log: trivial-test-driver
1119 test-driver-custom-html.log: trivial-test-driver
1120 EXTRA_DIST += trivial-test-driver
1122 testsuite-summary-color.log testsuite-summary-count.log: \
1123 testsuite-summary-checks.sh extract-testsuite-summary
1124 EXTRA_DIST += testsuite-summary-checks.sh
1125 EXTRA_DIST += extract-testsuite-summary
1127 testsuite-summary-count-many.log: trivial-test-driver
1128 testsuite-summary-count-many.log: extract-testsuite-summary
1130 # List of tests on TAP support that use the files pre-computed by
1131 # `tap-common-setup.test', and sources the `tap-setup.sh' helper
1133 tap_with_common_setup_tests = \
1134 tap-autonumber.test \
1138 tap-diagnostic.test \
1139 tap-empty-diagnostic.test \
1141 tap-escape-directive.test \
1146 tap-global-log.test \
1147 tap-global-result.test \
1150 tap-merge-stdout-stderr.test \
1151 tap-no-merge-stdout-stderr.test \
1152 tap-message-0.test \
1153 tap-no-disable-hard-error.test \
1154 tap-no-spurious-summary.test \
1155 tap-no-spurious.test \
1156 tap-not-ok-skip.test \
1157 tap-numeric-description.test \
1158 tap-out-of-order.test \
1159 tap-passthrough.test \
1160 tap-passthrough-exit.test \
1162 tap-plan-corner.test \
1163 tap-plan-corner2.test \
1164 tap-plan-errors.test \
1166 tap-recheck-logs.test \
1167 tap-skip-whole-whitespace.test \
1168 tap-skip-whole.test \
1169 tap-todo-skip-together.test \
1170 tap-todo-skip-whitespace.test \
1171 tap-todo-skip.test \
1172 tap-unplanned.test \
1173 tap-whitespace-normalization.test \
1174 tap-with-and-without-number.test \
1175 tap-xfail-tests.test
1178 tap_with_common_setup_logs = $(tap_with_common_setup_tests:.test=.log)
1180 # Their dependencies.
1181 $(tap_with_common_setup_logs): tap-common-setup.log tap-setup.sh
1182 EXTRA_DIST += tap-setup.sh
1184 # Other tests on TAP support.
1186 tap-common-setup.test \
1196 tap-summary-color.test
1198 tap-summary.log tap-summary-color.log: tap-summary-aux.sh
1199 EXTRA_DIST += tap-summary-aux.sh
1201 # Dependencies valid for each test case.
1202 $(TEST_LOGS): defs defs-static aclocal-$(APIVERSION) automake-$(APIVERSION)
1203 # FIXME: this should be made more granular once we have a cleaner
1204 # subdivision of the tests.
1205 $(TEST_LOGS): plain-functions.sh tap-functions.sh
1207 clean-local: clean-local-check
1208 .PHONY: clean-local-check
1210 -set x *.dir; shift; \
1211 if test "$$#,$$1" = "1,*.dir"; then \
1212 : there is no test directory to clean; \
1214 find "$$@" -type d ! -perm -700 -exec chmod u+rwx {} ';'; \