2 # Copyright (C) 2008 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,
28 cat > configure.
in << 'END'
29 AC_INIT
([parallel-am
], [1.0])
30 AC_CONFIG_AUX_DIR
([build-aux
])
35 AC_CONFIG_FILES
([Makefile
])
38 cat > Makefile.am
<< 'END'
44 echo "AC_CONFIG_FILES([sub$i/Makefile])" >> configure.
in
45 echo "SUBDIRS += sub$i" >> Makefile.am
47 cat > sub
$i/Makefile.am
<<END
48 python_PYTHON = foo$i.py
54 rm -f install-sh missing depcomp
59 # Generate expected output using the non-threaded code.
60 unset AUTOMAKE_JOBS ||
:
61 AUTOMAKE_run
0 --add-missing
63 mv Makefile.
in Makefile.
in.exp
68 for run
in 1 2 3 4 5 6 7; do
69 rm -f build-aux
/* sub
*/Makefile.
in
70 AUTOMAKE_run
0 --add-missing
72 diff Makefile.
in Makefile.
in.exp