2 # Copyright (C) 2008-2017 Free Software Foundation, Inc.
4 # This program is free software; you can redistribute it and/or modify
5 # it under the terms of the GNU General Public License as published by
6 # the Free Software Foundation; either version 2, or (at your option)
9 # This program is distributed in the hope that it will be useful,
10 # but WITHOUT ANY WARRANTY; without even the implied warranty of
11 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 # GNU General Public License for more details.
14 # You should have received a copy of the GNU General Public License
15 # along with this program. If not, see <http://www.gnu.org/licenses/>.
17 # Test parallel automake execution.
20 # 3) normal automake output should be identical and ordered in the same way
21 # with --add-missing, even with concurrent file requirements, and the
22 # installation of aux files should be race-free.
27 cat > configure.ac
<< 'END'
28 AC_INIT
([parallel-am
], [1.0])
29 AC_CONFIG_AUX_DIR
([build-aux
])
34 AC_CONFIG_FILES
([Makefile
])
37 cat > Makefile.am
<< 'END'
43 echo "AC_CONFIG_FILES([sub$i/Makefile])" >> configure.ac
44 echo "SUBDIRS += sub$i" >> Makefile.am
46 unindent
> sub
$i/Makefile.am
<<END
47 python_PYTHON = foo$i.py
53 rm -f install-sh missing depcomp
58 # Generate expected output using the non-threaded code.
60 AUTOMAKE_run
--add-missing
62 mv Makefile.
in Makefile.
in.exp
67 for run
in 1 2 3 4 5 6 7; do
68 rm -f build-aux
/* sub
*/Makefile.
in
69 AUTOMAKE_run
--add-missing
71 diff Makefile.
in Makefile.
in.exp