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 MAINTAINERCLEANFILES =
20 EXTRA_DIST = ChangeLog-old
29 override-conditional-2.test \
31 pr8365-remake-timing.test \
32 yacc-dist-nobuild-subdir.test \
37 include $(srcdir)/parallel-tests.am
39 $(srcdir)/parallel-tests.am: gen-parallel-tests Makefile.am
40 $(AM_V_GEN)($(am__cd) $(srcdir) && $(SHELL) ./gen-parallel-tests) >$@
42 $(parallel_tests): Makefile.am
43 $(AM_V_at)rm -f $@ $@-t
44 $(AM_V_GEN)input=`echo $@ | sed 's,.*/,,; s,-p.test$$,.test,'`; \
46 echo '# DO NOT EDIT! GENERATED AUTOMATICALLY!'; \
48 echo '# Ensure proper definition of $$testsrcdir.'; \
49 echo '. ./defs-static || exit 99'; \
50 echo 'test -n "$$testsrcdir" || exit 99 # sanity check'; \
52 echo "# Run the test with Automake's parallel-tests driver enabled."; \
53 echo 'parallel_tests=yes'; \
54 echo "# In the spirit of VPATH, we prefer a test in the build tree"; \
55 echo "# over one in the source tree."; \
56 echo "if test -f \"./$$input\"; then"; \
57 echo " . \"./$$input\""; \
59 echo " . \"\$$testsrcdir/$$input\""; \
62 $(AM_V_at)chmod a+rx $@-t && mv -f $@-t $@
64 MAINTAINERCLEANFILES += $(parallel_tests)
65 EXTRA_DIST += gen-parallel-tests
68 include $(srcdir)/instspc-tests.am
70 $(srcdir)/instspc-tests.am: instspc-tests.sh Makefile.am
71 $(AM_V_GEN)($(am__cd) $(srcdir) \
72 && $(SHELL) ./instspc-tests.sh --generate-makefile) >$@
74 $(instspc_tests): Makefile.am
75 $(AM_V_at)rm -f $@ $@-t
77 base=`expr 'x/$@' : 'x.*/instspc-\(.*\)\.test$$'`; \
78 name=`expr x"$$base" : x'\(.*\)-'`; \
79 action=`expr x"$$base" : x'.*-\(.*\)'`; \
82 echo '# DO NOT EDIT! GENERATED AUTOMATICALLY!'; \
84 echo '# Ensure proper definition of $$testsrcdir.'; \
85 echo '. ./defs-static || exit 99'; \
86 echo 'test -n "$$testsrcdir" || exit 99 # sanity check'; \
88 echo "instspc_test_name='$$name'"; \
89 echo "instspc_action='test-$$action'"; \
90 echo ". \$$testsrcdir/instspc-tests.sh"; \
92 $(AM_V_at)chmod a+rx $@-t && mv -f $@-t $@
94 # All instspc-*.test tests work by sourcing the `instspc-tests.sh'
95 # script. Also, they all use shared data generated by the helper
96 # test `instspc-data.test', for reasons of speed.
97 instspc-data.log: instspc-tests.sh
98 $(instspc_tests:.test=.log): instspc-tests.sh instspc-data.log
100 MAINTAINERCLEANFILES += $(instspc_tests)
101 EXTRA_DIST += instspc-tests.sh
102 XFAIL_TESTS += $(instspc_xfail_tests)
105 # Some testsuite-influential variables should be overridable from the
106 # test scripts, but not from the environment.
107 AM_TESTS_ENVIRONMENT = \
108 test x"$$me" = x || unset me; \
109 test x"$$required" = x || unset required; \
110 test x"$$parallel_tests" = x || unset parallel_tests; \
111 test x"$$original_AUTOMAKE" = x || unset original_AUTOMAKE; \
112 test x"$$original_ACLOCAL" = x || unset original_ACLOCAL;
138 aclocal-print-acdir.test \
140 aclocal-path-install.test \
141 aclocal-path-install-serial.test \
142 aclocal-path-nonexistent.test \
143 aclocal-path-precedence.test \
159 amhello-cflags.test \
160 amhello-cross-compile.test \
161 amhello-binpkg.test \
165 amopts-location.test \
166 amopts-variable-expansion.test \
168 ansi2knr-no-more.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-tests-in-builddir.test \
241 check-tests_environment.test \
242 check-concurrency-bug9245.test \
243 tests-environment-backcompat.test \
270 comments-in-var-def.test \
277 compile_f90_c_cxx.test \
278 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 \
405 dist-auxfile-2.test \
406 dist-included-parent-dir.test \
407 distcleancheck.test \
418 distcheck-configure-flags.test \
419 distcheck-configure-flags-am.test \
420 distcheck-configure-flags-subpkg.test \
421 distcheck-hook.test \
422 distcheck-hook2.test \
423 distcheck-missing-m4.test \
424 distcheck-outdated-m4.test \
425 distcheck-pr9579.test \
426 distcheck-override-infodir.test \
428 doc-parsing-buglets-colneq-subst.test \
429 doc-parsing-buglets-tabs.test \
496 hdr-vars-defined-once.test \
507 help-maintainer.test \
533 instdir-python.test \
539 instfail-libtool.test \
545 instmany-python.test \
555 java-empty-classpath.test \
556 javadir-undefined.test \
563 java-compile-install.test \
564 java-compile-run-flat.test \
565 java-compile-run-nested.test \
567 java-no-duplicate.test \
569 java-uninstall.test \
580 lex-subobj-nodep.test \
654 maintclean-vpath.test \
689 no-extra-makefile-code.test \
690 no-outdir-option.test \
692 nobase-libtool.test \
730 override-conditional-1.test \
731 override-conditional-2.test \
733 override-suggest-local.test \
737 parallel-tests.test \
738 parallel-tests2.test \
739 parallel-tests3.test \
740 parallel-tests4.test \
741 parallel-tests5.test \
742 parallel-tests6.test \
743 parallel-tests7.test \
744 parallel-tests8.test \
745 parallel-tests9.test \
746 parallel-tests10.test \
747 parallel-tests-am_tests_environment.test \
748 parallel-tests-unreadable-log.test \
749 parallel-tests-subdir.test \
750 parallel-tests-interrupt.test \
751 parallel-tests-reset-term.test \
752 parallel-tests-harderror.test \
753 parallel-tests-log-override-1.test \
754 parallel-tests-log-override-2.test \
755 parallel-tests-log-override-recheck.test \
756 parallel-tests-cmdline-override.test \
757 parallel-tests-log-compiler-example.test \
758 parallel-tests-fork-bomb.test \
759 test-extensions.test \
760 test-extensions-cond.test \
776 posixsubst-data.test \
777 posixsubst-extradist.test \
778 posixsubst-ldadd.test \
779 posixsubst-libraries.test \
780 posixsubst-ltlibraries.test \
781 posixsubst-programs.test \
782 posixsubst-scripts.test \
783 posixsubst-sources.test \
784 posixsubst-tests.test \
812 primary-prefix-invalid-couples.test \
813 primary-prefix-valid-couples.test \
814 primary-prefix-couples-force-valid.test \
815 primary-prefix-couples-documented-valid.test \
817 py-compile-basic.test \
818 py-compile-basic2.test \
819 py-compile-basedir.test \
820 py-compile-destdir.test \
821 py-compile-env.test \
822 py-compile-option-terminate.test \
823 py-compile-usage.test \
839 python-virtualenv.test \
862 remake-subdir-from-subdir.test \
863 remake-subdir-gnu.test \
865 remake-subdir2.test \
866 remake-subdir-long-time.test \
867 remake-gnulib-add-acsubst.test \
868 remake-gnulib-add-header.test \
869 remake-gnulib-remove-header.test \
870 remake-moved-m4-file.test \
871 remake-deleted-m4-file.test \
872 remake-renamed-m4-file.test \
873 remake-renamed-m4-macro-and-file.test \
874 remake-renamed-m4-macro.test \
875 pr8365-remake-timing.test \
877 regex-obsolete.test \
881 repeated-options.test \
883 self-check-cleanup.test \
884 self-check-dir.test \
885 self-check-env-sanitize.test \
886 self-check-exit.test \
887 self-check-is_newest.test \
889 self-check-report.test \
890 self-check-sanity.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 \
1004 target-cflags.test \
1006 tests-environment-fd-redirect.test \
1007 tests-environment-and-log-compiler.test \
1038 txinfo-unrecognized-extension.test \
1041 uninstall-pr9578.test \
1042 uninstall-fail.test \
1071 warnings-override.test \
1072 warnings-precedence.test \
1073 warnings-strictness-interactions.test \
1074 warnings-unknown.test \
1076 warnings-win-over-strictness.test \
1077 warning-groups-win-over-strictness.test \
1096 yacc-dist-nobuild.test \
1101 yacc-dist-nobuild-subdir.test \
1104 yflags-cmdline-override.test \
1105 yflags-conditional.test \
1106 yflags-d-false-positives.test \
1107 yflags-force-override.test \
1108 yflags-force-conditional.test \
1109 yflags-var-expand.test \
1112 EXTRA_DIST += $(TESTS)
1114 # Dependencies valid for each test case.
1115 $(TEST_LOGS): defs defs-static aclocal-$(APIVERSION) automake-$(APIVERSION)
1117 distcheck-missing-m4.log distcheck-outdated-m4.log: distcheck-hook-m4.am
1118 EXTRA_DIST += distcheck-hook-m4.am
1120 clean-local: clean-local-check
1121 .PHONY: clean-local-check
1123 -set x *.dir; shift; \
1124 if test "$$#,$$1" = "1,*.dir"; then \
1125 : there is no test directory to clean; \
1127 find "$$@" -type d ! -perm -700 -exec chmod u+rwx {} ';'; \