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 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/>.
26 include $(srcdir)/parallel-tests.am
28 $(srcdir)/parallel-tests.am: gen-parallel-tests Makefile.am
29 $(AM_V_GEN)(cd $(srcdir) && $(SHELL) ./gen-parallel-tests) >$@
31 $(parallel_tests): Makefile.am
32 $(AM_V_at)rm -f $@ $@-t
33 $(AM_V_GEN)input=`echo $@ | sed 's,.*/,,; s,-p.test$$,.test,'`; \
35 echo '# DO NOT EDIT! GENERATED AUTOMATICALLY!'; \
37 echo '# Ensure proper definition of $$srcdir.'; \
38 echo 'am_skip_defs=yes'; \
39 echo '. ./defs || exit 99'; \
40 echo 'test -n "$$srcdir" || exit 99 # sanity check'; \
42 echo "# Run the test with Automake's parallel-tests driver enabled."; \
43 echo 'parallel_tests=yes'; \
44 echo "# In the spirit of VPATH, we prefer a test in the build tree"; \
45 echo "# over one in the source tree."; \
46 echo "if test -f \"./$$input\"; then"; \
47 echo " . \"./$$input\""; \
49 echo " . \"\$$srcdir/$$input\""; \
52 $(AM_V_at)chmod a+rx $@-t && mv -f $@-t $@
54 MAINTAINERCLEANFILES = $(parallel_tests)
185 compile_f90_c_cxx.test \
186 compile_f_c_cxx.test \
302 distcleancheck.test \
401 instdir-python.test \
407 instfail-libtool.test \
413 instmany-python.test \
521 nobase-libtool.test \
563 parallel-tests.test \
564 parallel-tests2.test \
565 parallel-tests3.test \
566 parallel-tests4.test \
567 parallel-tests5.test \
568 parallel-tests6.test \
569 parallel-tests7.test \
570 parallel-tests8.test \
571 parallel-tests9.test \
572 parallel-tests10.test \
690 subdirbuiltsources.test \
817 EXTRA_DIST = ChangeLog-old gen-parallel-tests $(TESTS)
819 # Each test case depends on defs, aclocal, and automake.
820 $(TEST_LOGS): defs aclocal-$(APIVERSION) automake-$(APIVERSION)
822 clean-local: clean-local-check
823 .PHONY: clean-local-check
825 -set x *.dir; shift; \
826 if test "$$#,$$1" = "1,*.dir"; then \
827 : there is no test directory to clean; \
829 find "$$@" -type d '!' -perm -200 -exec chmod u+w {} ';'; \