Merge branch 'msvc' into maint
[platform/upstream/automake.git] / tests / Makefile.am
1 ## Process this file with automake to create Makefile.in
2
3 # Copyright (C) 1996, 1997, 1998, 1999, 2001, 2002, 2003, 2004, 2005,
4 # 2006, 2007, 2008, 2009, 2010, 2011, 2012 Free Software Foundation,
5 # Inc.
6
7 # This program is free software; you can redistribute it and/or modify
8 # it under the terms of the GNU General Public License as published by
9 # the Free Software Foundation; either version 2, or (at your option)
10 # any later version.
11
12 # This program is distributed in the hope that it will be useful,
13 # but WITHOUT ANY WARRANTY; without even the implied warranty of
14 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15 # GNU General Public License for more details.
16
17 # You should have received a copy of the GNU General Public License
18 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
19
20 XFAIL_TESTS = \
21 all.test \
22 auxdir2.test \
23 cond17.test \
24 dist-auxfile.test \
25 dist-auxfile-2.test \
26 gcj6.test \
27 java-nobase.test \
28 objext-pr10128.test \
29 pr8365-remake-timing.test \
30 lex-subobj-nodep.test \
31 remake-am-pr10111.test \
32 remake-m4-pr10111.test \
33 txinfo5.test
34
35 include $(srcdir)/parallel-tests.am
36
37 $(srcdir)/parallel-tests.am: gen-parallel-tests Makefile.am
38         $(AM_V_GEN)(cd $(srcdir) && $(SHELL) ./gen-parallel-tests) >$@
39
40 $(parallel_tests): $(parallel_tests:-p.test=.test) Makefile.am
41         $(AM_V_GEN)input=`echo $@ | sed 's,.*/,,; s,-p.test$$,.test,'` \
42           && sed 's|^\. \./defs.*|parallel_tests=yes; &|' \
43                < $(srcdir)/$$input >$@ \
44           && chmod a+rx $@
45
46 MAINTAINERCLEANFILES = $(parallel_tests)
47
48 # Some testsuite-influential variables should be overridable from the
49 # test scripts, but not from the environment.
50 TESTS_ENVIRONMENT = \
51   test x"$$me" = x || unset me; \
52   test x"$$required" = x || unset required; \
53   test x"$$parallel_tests" = x || unset parallel_tests;
54
55 TEST_EXTENSIONS = .pl .test
56
57 PL_LOG_COMPILER = $(PERL)
58 AM_PL_LOG_FLAGS = -Mstrict -I $(top_builddir)/lib -I $(top_srcdir)/lib -w
59
60 include $(srcdir)/list-of-tests.mk
61
62 TESTS = $(handwritten_TESTS) $(parallel_tests)
63
64 # FIXME: make these automatically computed once we are merged into
65 # FIXME: the `testsuite-work' branch.
66 ar-lib4.log: libtool-macros.log
67 ar-lib6a.log: libtool-macros.log
68 ar-lib6b.log: libtool-macros.log
69 depcomp4.log: libtool-macros.log
70 depcomp7.log: libtool-macros.log
71 depcomp8b.log: libtool-macros.log
72 extradep2.log: libtool-macros.log
73 fort5.log: libtool-macros.log
74 instdir-ltlib.log: libtool-macros.log
75 instfail-libtool.log: libtool-macros.log
76 ldadd.log: libtool-macros.log
77 ldflags.log: libtool-macros.log
78 libobj13.log: libtool-macros.log
79 libtoo10.log: libtool-macros.log
80 libtoo11.log: libtool-macros.log
81 libtool.log: libtool-macros.log
82 libtool2.log: libtool-macros.log
83 libtool3.log: libtool-macros.log
84 libtool5.log: libtool-macros.log
85 libtool6.log: libtool-macros.log
86 libtool7.log: libtool-macros.log
87 libtool8.log: libtool-macros.log
88 libtool9.log: libtool-macros.log
89 listval.log: libtool-macros.log
90 ltcond.log: libtool-macros.log
91 ltcond2.log: libtool-macros.log
92 ltconv.log: libtool-macros.log
93 ltdeps.log: libtool-macros.log
94 ltinit.log: libtool-macros.log
95 ltinstloc.log: libtool-macros.log
96 ltlibobjs.log: libtool-macros.log
97 ltlibsrc.log: libtool-macros.log
98 ltorder.log: libtool-macros.log
99 nobase-libtool.log: libtool-macros.log
100 pr211.log: libtool-macros.log
101 pr300-ltlib.log: libtool-macros.log
102 pr307.log: libtool-macros.log
103 pr401b.log: libtool-macros.log
104 pr72.log: libtool-macros.log
105 reqd2.log: libtool-macros.log
106 silent3.log: libtool-macros.log
107 silent4.log: libtool-macros.log
108 silent9.log: libtool-macros.log
109 stdlib2.log: libtool-macros.log
110 strip3.log: libtool-macros.log
111 subobj9.log: libtool-macros.log
112 suffix10.log: libtool-macros.log
113 suffix2.log: libtool-macros.log
114 suffix5.log: libtool-macros.log
115 suffix8.log: libtool-macros.log
116 vala.log: libtool-macros.log
117 vala1.log: libtool-macros.log
118 vala2.log: libtool-macros.log
119 vala3.log: libtool-macros.log
120 vala4.log: libtool-macros.log
121 vala5.log: libtool-macros.log
122
123 # FIXME: make these automatically computed once we are merged into
124 # FIXME: the `testsuite-work' branch.
125 gettext.log: gettext-macros.log
126 gettext2.log: gettext-macros.log
127 gettext3.log: gettext-macros.log
128 subcond.log: gettext-macros.log
129
130 EXTRA_DIST = ChangeLog-old gen-parallel-tests $(TESTS)
131
132 distcheck-missing-m4.log distcheck-outdated-m4.log: distcheck-hook-m4.am
133 EXTRA_DIST += distcheck-hook-m4.am
134
135 # Each test case depends on defs, aclocal, and automake.
136 check_SCRIPTS = defs aclocal-$(APIVERSION) automake-$(APIVERSION)
137
138 ## Checking the list of tests.
139 test_subdirs = . pm
140 include $(srcdir)/CheckListOfTests.am
141 maintainer-check-list-of-tests: $(parallel_tests)
142
143 clean-local: clean-local-check
144 .PHONY: clean-local-check
145 clean-local-check:
146         -set x *.dir; shift; \
147          if test "$$#,$$1" = "1,*.dir"; then \
148            : there is no test directory to clean; \
149          else \
150            find "$$@" -type d ! -perm -700 -exec chmod u+rwx {} ';'; \
151            rm -rf "$$@"; \
152          fi;