1 2010-12-21 Stefano Lattarini <stefano.lattarini@gmail.com>
3 man8.test: avoid comments inside recipe commands.
4 * tests/man8.test: Remove shell comments from makefile rule
5 commands, as they are not portable to (at least) Tru64 make.
7 2010-12-21 Stefano Lattarini <stefano.lattarini@gmail.com>
9 Fix sed-related buglet in test "subdir5.test"
10 * tests/subdir5.test: Always terminate text passed to the
11 `i' sed command with a newline, to work around limitations
12 in e.g. older OpenBSD sed.
14 2010-12-21 Stefano Lattarini <stefano.lattarini@gmail.com>
16 Fix spurious failures in tests on AC_CONFIG_AUX_DIR.
17 * tests/auxdir7.test: Do not try to needlessly overwrite the files
18 `install-sh' and `missing'. This avoid spurious failures in "make
19 distcheck", when those files might be copied as read-only from the
21 * tests/auxdir8.test: Likewise.
23 2010-12-18 Stefano Lattarini <stefano.lattarini@gmail.com>
25 Make test 'posixsubst-script' portable to MinGW/MSYS.
26 * tests/posixsubst-script.test: Ensure that the generated dummy
27 scripts really start with a shebang line, to work around a
28 limitation of 'test -x' on MinGW/MSYS.
29 Reported by Ralf Wildenhues.
31 Improve comments in tests `posixsubst*.test'.
32 * tests/posixsubst-data.test: Improve comment explaining why we
33 try also empty match suffix.
34 * tests/posixsubst-extradist.test: Likewise.
35 * tests/posixsubst-ldadd.test: Likewise.
36 * tests/posixsubst-libraries.test: Likewise.
37 * tests/posixsubst-ltlibraries.test: Likewise.
38 * tests/posixsubst-programs.test: Likewise.
39 * tests/posixsubst-scripts.test: Likewise.
40 * tests/posixsubst-sources.test: Likewise.
41 * tests/posixsubst-tests.test: Likewise.
42 Suggested by Ralf Wildenhues.
44 2010-12-18 Stefano Lattarini <stefano.lattarini@gmail.com>
46 docs: fix blunder in example about python extension modules
47 * doc/automake.texi (Python): Use `quaternion_la_SOURCES',
48 not `quaternion_SOURCES', to declare the sources of python
49 extension module `quaternion.la'.
51 2010-12-16 Stefano Lattarini <stefano.lattarini@gmail.com>
53 docs: list LTLIBRARIES among Automake primaries
54 * doc/automake.texi (Uniform): List `LTLIBRARIES' among
55 the Automake primaries.
57 2010-12-13 Stefano Lattarini <stefano.lattarini@gmail.com>
58 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
60 Tests defs: requirement 'xsi-shell' must be synced with libtool.
61 * tests/defs (xsi-shell): Add comment telling to keep the
62 XSI-conformance checks in sync with libtool.
64 2010-12-13 Stefano Lattarini <stefano.lattarini@gmail.com>
66 Extend, fix and improve tests on Lex and Yacc support.
67 * tests/lexcpp.test: New test script, on support for Lex + C++.
68 * tests/lexvpath.test: New test script, test build and rebuild
69 rules for lexers in VPATH setup.
70 * tests/yacc-basic.test: New test script, run simple "semantic"
71 checks on basic Yacc support (similarly to what lex3.test does
73 * tests/lex.test: Don't create useless dummy source file joe.l.
74 Remove extra blank lines.
75 * tests/lex4.test: Add trailing `:' command. Do not create dummy
76 useless lex source file.
77 * tests/lex2.test: Likewise. Call automake with the `-a' option,
78 so that it doesn't fail for the absence of `ylwrap' script. Make
79 grepping of automake stderr stricter.
80 * tests/yacc7.test: Add trailing `:' command. Enable `errexit'
81 shell flag earlier (just after having sourced ./defs).
82 * tests/yacc4.test: Likewise. Also ...
83 (configure.in): Use pre-populated skeleton set up by ./defs,
84 instead of writing one from scratch.
85 Other minor cosmetic changes.
86 * tests/yacc5.test: Likewise.
87 * tests/yaccvpath.test: Likewise. Also ...
88 ($distdir): New variable.
90 * tests/lex5.test: Likewise.
91 * tests/lex3.test: Likewise. Check the distdir, rather than
92 grepping the distribution tarball. Extend the test on the
93 created binary, and be sure to avoid hangs. Add some comments.
94 * tests/yacc.test: Use stricter grepping. Add trailing `:'.
95 * tests/yacc6.test: Likewise.
96 * tests/yacc3.test: Likewise. Do not create the unused file
97 `Makefile.sed'. Remove useless rules from Makefile.am. Other
98 minor cosmetic changes.
99 * tests/yacc2.test: Make grepping of generated `Makefile.in' and
100 of automake error messages stricter. Do not redirect output of
101 grep to /dev/null. Move call to aclocal earlier. Reduce the
102 number of empty blank lines. Fix a typo in comments.
103 * tests/yacc8.test: Fixed bugs that reduced the completeness of
104 the tests. Added trailing `:' command.
105 (configure.in): Use pre-populated skeleton set up by ./defs,
106 instead of writing one from scratch.
107 * tests/yaccpp.test: Test also extensions `.y++', `.ypp', and
108 `.yxx', rather than only `.yy'.
109 * tests/Makefile.am (TESTS): Update.
111 2010-12-17 Stefano Lattarini <stefano.lattarini@gmail.com>
113 Minor cleanups in canon7.test.
114 * tests/canon7.test (_foo_bar_SOURCES): Remove libs.c.
115 (configure.in): Remove AC_PROG_CXX.
117 2010-12-16 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
119 Avoid false positive in sc_tests_plain_make maintainer-check.
120 * Makefile.am (sc_tests_plain_make): Ensure to only match full
121 `make' words. Avoid false positive with remake11.test.
123 2010-12-16 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
125 Fix canon7.test failure.
126 * tests/canon7.test (_foo_bar_SOURCES): Add foobar.c.
127 (lib.h, libd.c, libs.c): Use const for constant strings.
129 2010-12-16 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
131 Fix typos in test comments.
132 * tests/posixsubst-data.test, tests/posixsubst-extradist.test,
133 tests/posixsubst-ldadd.test, tests/posixsubst-libraries.test,
134 tests/posixsubst-ltlibraries.test, tests/posixsubst-programs.test,
135 tests/posixsubst-scripts.test, tests/posixsubst-sources.test,
136 tests/posixsubst-tests.test: Fix typos.
138 2010-12-14 Stefano Lattarini <stefano.lattarini@gmail.com>
140 More uses of AS_HELP_STRING in automake macros.
141 * m4/depend.m4 (AM_DEP_TRACK): Use `AS_HELP_STRING' to format
142 the help message added to the generated configure.
143 * m4/dmalloc.m4 (AM_WITH_DMALLOC): Likewise.
144 * m4/lispdir.m4 (AM_PATH_LISPDIR): Likewise.
145 * m4/maintainer.m4 (AM_MAINTAINER_MODE): Likewise.
146 * m4/multi.m4 (AM_ENABLE_MULTILIB): Likewise.
147 Also, bumped all serial numbers of the modified m4 files.
149 2010-12-14 Stefano Lattarini <stefano.lattarini@gmail.com>
151 Improve tests on generated portions of configure help screen.
152 * tests/help-depend.test: Grepping of configure help screen
153 relaxed to cater for possible line wrapping, and tightened in
155 * tests/help-depend2.test: Likewise.
156 * tests/help-dmalloc.test: Likewise.
157 * tests/help-lispdir.test: Likewise.
158 * tests/help-maintainer.test: Likewise.
159 * tests/help-multilib.test: Likewise.
160 * tests/help-silent.test: Likewise.
161 * tests/help-upc.test: Likewise.
162 * tests/help-init.test: Grepping of configure help screen
165 2010-12-15 Stefano Lattarini <stefano.lattarini@gmail.com>
167 Extended tests on AC_CONFIG_AUX_DIR.
168 * tests/auxdir.test: Enable `errexit' shell flag. Prefer `$me'
169 over hard-coded test name. Use proper m4 quoting. Add trailing
171 * tests/auxdir2.test: Likewise. Try to call automake also with
172 the `-a' option, so that it will not fail for spurious reasons.
173 * tests/auxdir3.test: Add an explanatory comment and a trailing
175 * tests/auxdir4.test: Prefer `$me' over hard-coded test name.
176 Make grepping of automake stderr slightly stricter. Also, now
177 this test just checks about Automake's reaction to unportable
178 auxiliary directory names (and it has been extended in this
179 respect). Moved the checks about non-existent auxiliary
181 * tests/auxdir5.test: ... this new test.
182 * tests/auxdir6.test: New test.
183 * tests/auxdir7.test: Likewise.
184 * tests/auxdir8.test: Likewise.
185 * tests/auxdir9.test: Likewise.
186 * tests/Makefile.am (TESTS): Updated.
188 2010-12-06 Stefano Lattarini <stefano.lattarini@gmail.com>
190 Tests: extend checks on remake rules.
191 This adds proper semantical tests (i.e. run make to check the
192 rebuild rules are correctly triggered) in addition to tentative
193 grepping of the generated Makefile.in(s).
194 * tests/remake.test: Enable `errexit' shell flag, and related
195 changes. Modernize `configure.in'. Add trailing `:' command.
196 Improve heading comments, and add a reference to new sister test
198 * tests/remake3.test: Likewise (but with sister test being
200 * tests/remake2.test: Improve heading comments. Enable `errexit'
201 shell flag, and related changes. Modernize `configure.in'. Make
202 grepping of `Makefile.in' slightly stricter. Add trailing `:'
204 * tests/remake5.test: Also run the `distcheck' target. Add
205 trailing `:' command. Use proper m4 quoting in configure.in.
206 * tests/remake4.test: Prefer `$me' over hard-coded test name.
207 * tests/remake7.test: Use the `configure.in' stub created by
208 ./defs, rather than writing it from scratch.
209 * tests/remake6.test: Likewise. Also, add trailing `:' command,
210 and ensure verbose printing of captured make output.
211 * tests/remake1a.test: New test, sister of remake.test.
212 * tests/remake3a.test: New test, sister of remake3.test.
213 * tests/remake8a.test: New test.
214 * tests/remake8b.test: Likewise.
215 * tests/remake9a.test: Likewise.
216 * tests/remake9b.test: Likewise.
217 * tests/remake9c.test: Likewise.
218 * tests/remake9d.test: Likewise.
219 * tests/remake10a.test: Likewise.
220 * tests/remake10b.test: Likewise.
221 * tests/remake10c.test: Likewise.
222 * tests/remake11.test: Likewise.
223 * tests/remake12.test: Likewise.
224 * tests/Makefile.am (TESTS): Updated.
226 2010-12-11 Stefano Lattarini <stefano.lattarini@gmail.com>
228 Improve and extend tests on canonicalization.
229 * tests/canon-name.test: Add trailing `:' command. When writing
230 configure.in, prefer to use $me instead of hard-coding the test
232 * tests/canon3.test: Prefer trailing `:' over trailing `Exit 0'.
233 * tests/canon4.test: Likewise. Make grepping of Makefile.in
234 stricter. Improve heading comment, and add reference to ...
235 * tests/canon6.test: ... this new test (sister test of the
237 * tests/canon.test: Prefer cat + here-doc over echo to append
238 text to configure.in. Extend grepping of Automake stderr. Add
239 trailing `:' command.
240 * tests/canon5.test: Likewise.
241 * tests/canon7.test: New file, stress test on canonicalization.
242 * tests/canon8.test: New test, for better coverage (check that
243 the `@' character is not transliterated in canonicalizations).
244 * tests/Makefile.am: Updated.
246 2010-12-13 Stefano Lattarini <stefano.lattarini@gmail.com>
248 Libobj tests: refer to automake bug tracker for limitations.
249 * tests/libobj15b.test (configure.in): In the comment explaining
250 why an apparently redundant AC_OUTPUT is indeed needed, refer
251 to the relevant entry in the Automake bug tracker rather than
252 describing the bug in detail with a FIXME-style comment.
253 * tests/libobj15c.test: Likewise.
254 * tests/libobj20b.test: Likewise.
256 Libobj tests: do not use `##' automake comments in-line.
257 * tests/libobj19.test (Makefile.am): Do not use inline `##'
258 comments in the definition of AUTOMAKE_OPTIONS.
259 * tests/libobj20c.test: Likewise.
260 Report by Ralf Wildenhues.
262 2010-12-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
264 Fix testsuite failure of check12.test without DejaGNU.
265 * tests/check12.test: Require runtest.
267 2010-12-12 Stefano Lattarini <stefano.lattarini@gmail.com>
269 Tests defs: more uses of $top_testsrcdir.
270 * tests/compile6.test: Use `$top_testsrcdir' instead of
273 2010-11-12 Stefano Lattarini <stefano.lattarini@gmail.com>
275 Tests required tools: also try `-v' option for GNU compilers.
276 * tests/defs.in: In the loop on "$required" tools, for gcc
277 and g++, also run "gcc -v" (resp. "g++ -v"), to get more
278 information, and for consistency with gcj.
280 2010-11-12 Stefano Lattarini <stefano.lattarini@gmail.com>
281 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
283 Tests defs: avoid some useless subshells.
284 * tests/defs: In the loop on "$required" tools: avoid subshells
287 2010-12-09 Stefano Lattarini <stefano.lattarini@gmail.com>
289 Extend tests on AC_LIBOBJ and friends.
290 * tests/aclibobj.test: Removed, superseded by ...
291 * tests/libobj-basic.test: ... this new test, which runs autoconf,
292 ./configure and make, to ensure everything really works.
293 * tests/libobj3.test: Add trailing `:' command. Escape literal
295 * tests/libobj4.test: Enable `errexit' shell flag, and related
296 changes. Add trailing `:' command. Use proper m4 quoting.
297 * tests/ltlibobjs.test: Likewise.
298 * tests/libobj5.test: Enable `errexit' shell flag, and related
299 changes. Add trailing `:' command. Make more robust by using
300 longer filenames to be grepped.
301 * tests/libobj8.test: Enable `errexit' shell flag, and related
302 changes. Add trailing `:' command. Use the configure.in
303 stub provided by ./defs, rather than writing it from scratch.
304 * tests/libobj2.test: Likewise. Also, add calls to autoconf,
305 ./configure and make, to ensure everything really works.
306 * tests/libobj7.test: Likewise, and ensure that at least one
307 function listed in AC_REPLACE_FUNCTIONS is truly replaced.
308 * tests/libobj13.test: Make grepping of Automake stderr slightly
309 stricter. Add trailing `:' command.
310 * tests/libobj12.test: Likewise. Also, prefer "cat + here-doc"
311 over "echo" to append to Makefile.am, and some cosmetic changes
313 * tests/libobj14.test: Call `Exit 1' if sourcing of ./defs fails.
314 Slighty improve m4 quoting. Add trailing `:' command.
315 * tests/libobj10.test: Add calls to autoconf, ./configure and
316 make, to ensure everything really works. Also, remove tests that
317 nonexistent source for AC_LIBOBJ cause an Automake failure: this
318 is already checked by ...
319 * tests/libobj15a.test: ... this new test.
320 * tests/libobj15b.test: New test, sister test of libobj15a.test,
321 checks AC_LIBSOURCE instead of AC_LIBOBJ.
322 * tests/libobj15c.test: New test, sister test of libobj15a.test,
323 checks AC_LIBSOURCES instead of AC_LIBOBJ.
324 * tests/libobj11.test: Removed, superseded by ...
325 * tests/libobj16a.test: ... this new test.
326 * tests/libobj16b.test: New test, sister test of libobj16a.test,
327 but using oldish/deprecated idioms.
328 * tests/libobj17.test: New test.
329 * tests/libobj18.test: Likewise.
330 * tests/libobj19.test: Likewise.
331 * tests/libobj20a.test: Likewise.
332 * tests/libobj20b.test: Likewise.
333 * tests/libobj20c.test: Likewise.
334 * tests/Makefile.am (TESTS): Updated.
336 2010-12-08 Stefano Lattarini <stefano.lattarini@gmail.com>
338 Test `$(var:suf=rpl)' expansion in special automake variables.
339 * tests/posixsubst-data.test: New test.
340 * tests/posixsubst-extradist.test: Likewise.
341 * tests/posixsubst-ldadd.test: Likewise.
342 * tests/posixsubst-libraries.test: Likewise.
343 * tests/posixsubst-ltlibraries.test: Likewise.
344 * tests/posixsubst-programs.test: Likewise.
345 * tests/posixsubst-scripts.test: Likewise.
346 * tests/posixsubst-sources.test: Likewise.
347 * tests/posixsubst-tests.test: Likewise.
348 * tests/Makefile.am (TESTS): Update.
350 2010-12-07 Stefano Lattarini <stefano.lattarini@gmail.com>
352 Make tests `colon*.test' more "semantic".
353 Prefer running configure and make over grepping the generated
354 files; this is both more correct and less fragile.
355 * tests/colon.test: Made more "semantic", as described above.
356 * tests/colon5.test: Likewise.
357 * tests/colon6.test: Likewise.
358 * tests/colon7.test: Likewise.
359 * tests/colon2.test: Likewise, and improve syncing with sister
361 * tests/colon3.test: Likewise (but with the sister test being
364 2010-12-10 Stefano Lattarini <stefano.lattarini@gmail.com>
366 Extend and improve tests on DejaGnu support.
367 * tests/dejagnu.test: Do not create useless dummy test script.
368 Add trailing `:' command. In heading comments, add reference
370 * tests/check12.test: ... this new "semantic" test, covering
371 concurrent use of dejagnu tests, simple tests and `check-local'
373 * tests/dejagnu2.test: Make test more reliable, by avoid weak
374 grepping of make output. Prefer `cat' over `echo' to append
375 to configure.in. Quote literal dots in grep regexps. Prefer
376 `grep -c ...' over `grep ... | wc -l'. Make grepping of
377 automake stderr slightly stricter. Add trailing `:' command.
378 * tests/dejagnu3.test: Prefer `cat' over `echo' to append to
379 configure.in. Check stderr of expected-to-fail "make" call.
380 Remove extra blank lines from Makefile.am.
381 * tests/dejagnu4.test: Prefer `cat' over `echo' to append to
382 configure.in. Prefer `mv -f' over plain `mv' when the target
383 file already exists. Avoid extra mkdir calls by creating more
384 directories at once. Better use of blank lines. Check that
385 the `*.log' and `*.sum' files are created by runtest also when
387 * tests/dejagnu7.test: Prefer `cat' over `echo' to append to
388 configure.in. Better use of blank lines. Add a trailing `:'
390 * tests/dejagnu6.test: Likewise, and give the dejagnu test a
391 more descriptive name.
392 * tests/dejagnu5.test: Likewise. Also, simply define package
393 name to `$me' rather than using a non-obvious sed script to
394 extract it from `AC_INIT', and write the Makefile.am with only
396 * tests/Makefile.am (TESTS): Updated.
398 2010-12-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
400 Avoid running installed automake from 'libtool --help'.
401 * tests/subobj9.test: Export AUTOCONF and AUTOMAKE.
402 Together with fixed Libtool, this fixes check-coverage to not
403 invoke installed automake.
405 2010-12-06 Stefano Lattarini <stefano.lattarini@gmail.com>
407 Separate checks on target overriding into multiple test scripts.
408 * tests/overrid.test: Deleted, its contents separated into ...
409 * tests/override-suggest-local.test: ... this new test ...
410 * tests/override-html.test: ... and this new test ...
411 * tests/override-conditional-1.test: ... and this new test ...
412 * tests/override-conditional-2.test: ... and this new test (still
414 * tests/Makefile.am (TESTS, XFAIL_TESTS): Updated.
416 Enable `set -e' in more tests (plus some tweakings).
417 * tests/implicit.test: Enable `errexit' shell flag, and related
418 changes. Add trailing `:' command.
419 * tests/insh2.test: Likewise.
420 * tests/instman2.test: Likewise.
421 * tests/interp.test: Likewise.
422 * tests/interp2.test: Likewise.
423 * tests/library.test: Likewise.
424 * tests/mclean.test: Likewise.
425 * tests/info.test: Enable `errexit' shell flag, and related
426 changes. Add trailing `:' command. Remove useless chaff from
427 generated Makefile.am. Add a "FIXME" comment.
428 * tests/include.test: Enable `errexit' shell flag, and related
429 changes. Add trailing `:' command. Prefer cat + here-doc over
430 echo to append to configure.in. Make tests more robust by using
431 longer and less common names to grep. Remove an useless call to
432 echo. Remove an useless subshell.
433 * tests/header.test: Enable `errexit' shell flag, and related
434 changes. Use proper m4 quoting. Add excerpts from the original
435 report of the bug tested for by this script.
436 * tests/gcj.test: Enable `errexit' shell flag, and related
437 changes. Use proper m4 quoting. Add trailing `:' command.
438 * tests/gcj3.test: Likewise.
439 * tests/ldflags.test: Likewise.
440 * tests/libtool.test: Likewise.
441 * tests/listval.test: Likewise.
442 * tests/javaprim.test: Likewise, and prefer cat + here-doc over
443 echo to append to configure.in.
444 * tests/javasubst.test: Likewise.
445 * tests/discorver.test: Enable `errexit' shell flag. Prefer
446 trailing `:' over trailing `Exit 0'.
447 * tests/instdat.test: Enable `errexit' shell flag, and related
448 changes. Use proper m4 quoting. Avoid usless subshell. Prefer
449 cat + here-doc over echo to append to configure.in.
450 * tests/libtool2.test: Enable `errexit' shell flag, and related
451 changes. Add trailing `:' command. Use the configure.in
452 stub provided by ./defs, rather than writing it from scratch.
454 Modernize, improve and/or tweak some test scripts.
455 * tests/maintclean.test: Use proper m4 quoting. Add trailing `:'
457 * tests/sinclude.test: Likewise, and add a couple of blank lines,
459 * tests/make.test: Move setting of `errexit' shell flag earlier in
460 the script (just after inclusion of ./defs). Use the configure.in
461 stub created by ./defs, rather than writing it from scratch. Some
462 cosmetic changes in spacing. Ensure we wait enough time before
463 touching configure.in to trigger the rebuild rules.
464 * tests/makej.test: Use `$me' instead of hard-coding the test
465 name. Add trailing `:' command.
466 * tests/version7.test: Likewise.
467 * tests/space.test: Enable `errexit' shell flag, and related
469 * tests/makevars.test: Likewise. Also, prefer trailing `:' over
470 trailing `Exit 0', and be more tolerant of white spaces when
471 grepping Makefile.in.
473 2010-12-02 Stefano Lattarini <stefano.lattarini@gmail.com>
475 * tests/silent8.test: Use "|| Exit 1" after ". ./defs".
477 Enable `set -e' in more tests (plus some tweakings).
478 * tests/mkinstall.test: Enable `errexit' shell flag, and related
479 changes. Add a trailing `:' command, if needed.
480 * tests/mdate2.test: Likewise.
481 * tests/objc.test: Likewise.
482 * tests/noinst.test: Likewise.
483 * tests/outdir.test: Likewise.
484 * tests/number.test: Likewise.
485 * tests/pluseq.test: Likewise.
486 * tests/req.test: Likewise.
487 * tests/rulepat.test: Likewise.
488 * tests/specflg6.test: Likewise.
489 * tests/spell3.test: Likewise.
490 * tests/parse.test: Likewise, and ...
491 (configure.in): Use the stub created by ./defs, rather than
492 writing it from scratch. Remove useless calls to AC_PROG_RANLIB
494 * tests/mdate4.test: Likewise.
495 * tests/mkinstall.test: Likewise, and ...
496 (configure.in): ... drop useless call to `AC_OUTPUT'.
497 * tests/output.test: Enable `errexit' shell flag, and related
498 changes. Add a trailing `:' command.
499 (configure.in): Modernize.
500 * tests/output2.test: Likewise.
501 * tests/output3.test: Likewise.
502 * tests/output4.test: Likewise.
503 * tests/mdate3.test: Enable `errexit' shell flag, and related
504 changes. Prefer `$me' over hard-coded test name. Do not move
505 non-existent or useless files in the build auxiliary directory.
506 * tests/nodistdir.test: Enable `errexit' shell flag, and related
507 changes. Prefer trailing `:' over trailing `Exit 0'.
508 * tests/nodist.test: Likewise. Also, prefer cat + here-doc over
509 echo to create input test files, and do not create useless dummy
511 * tests/nodist2.test: Likewise.
512 * tests/ppf77.test: Enable `errexit' shell flag, with related
513 changes. Add a trailing `:' command. Do not create useless
515 * tests/spelling.test: Enable `errexit' shell flag, with related
516 changes. Add a trailing `:' command. Also, grep Automake error
518 * tests/specflg3.test: Enable `errexit' shell flag, with related
519 changes. Avoid unportable use of `-e' option of fgrep. Prefer
520 trailing `:' over trailing `Exit 0'. Remove extra empty lines,
521 and cosmetic changes to whitespaces.
522 * tests/obsolete.test: Enable `errexit' shell flag, with related
523 changes. Improve verbosity. Other miscellanous changes.
525 2010-11-30 Stefano Lattarini <stefano.lattarini@gmail.com>
527 Improve and extend tests on `:=' variable assignments.
528 * tests/colneq.test: Avoid redundant use of variable assignments
529 in Makefile.am. Use command-line automake options instead of
530 editing AUTOMAKE_OPTIONS in Makefile.am. Make grepping of the
531 generated Makefile.in slightly stricter. Add a trailing `:'
533 * tests/colneq2.test: Do not create unneeded dummy files. Run
534 also autoconf, ./configure and make. Add trailing `:' command.
535 * tests/colneq3.test: New test, similar to colneq.test, but
536 running also autoconf, ./configure and make.
537 * tests/Makefile.am (TESTS): Update.
539 2010-11-26 Stefano Lattarini <stefano.lattarini@gmail.com>
541 Remove long-deprecated options --Werror and --Wno-error.
542 These options has been deprecated at least since commit
543 "Release-1-6-1b-35-gc037f20", dated 2002-07-06.
544 * automake.in (parse_arguments): Do not recognize anymore options
545 `--Werror' and `--Wno-error' as synonyms of respectively `-Werror'
547 * tests/werror.test: Update: use `-Werror' instead of `--Werror'.
550 2010-11-25 Stefano Lattarini <stefano.lattarini@gmail.com>
552 Fix spurious failures in `silent*.test' for $CC != gcc
553 In some tests on automake-produced silent rules, we forced the
554 use of gcc depmode to improve testsuite coverage; but this has
555 unsurprisingly led to spurious failures when some non-GNU C
556 compilers were used. So we are now careful to require GCC in
557 tests that force gcc depmode.
558 From reports by Ralf Wildenhues.
559 * silent5.test: Test removed, its content split into ...
560 * silent-many-generic.test, silent-many-gcc.test: ... these new
561 sister tests, the latter of which forces gcc depmode and lists
563 * silentlex.test: Test removed, its content split into ...
564 * silent-lex-generic.test, silent-lex-gcc.test: ... these new
565 sister tests, the latter of which forces gcc depmode and lists
567 * silentyacc.test: Test removed, its content split into ...
568 * silent-yacc-generic.test, silent-yacc-gcc.test: ... these new
569 sister tests, the latter of which forces gcc depmode and lists
571 * tests/Makefile.am (TESTS): Updated.
573 2010-11-21 Stefano Lattarini <stefano.lattarini@gmail.com>
575 Tests: consistently use "|| Exit 1" after ". ./defs".
576 * tests/autohdr.test: Use `. ./defs || Exit 1', not bare
577 `. ./defs', for consistency with other tests.
578 * tests/autohdr2.test: Likewise.
579 * tests/autohdr3.test: Likewise.
580 * tests/autohdr4.test: Likewise.
581 * tests/cond23.test: Likewise.
582 * tests/cond24.test: Likewise.
583 * tests/cond25.test: Likewise.
584 * tests/cond26.test: Likewise.
585 * tests/cond27.test: Likewise.
586 * tests/cond28.test: Likewise.
587 * tests/cond29.test: Likewise.
588 * tests/cond30.test: Likewise.
589 * tests/cond31.test: Likewise.
590 * tests/cond32.test: Likewise.
591 * tests/cond33.test: Likewise.
592 * tests/cond34.test: Likewise.
593 * tests/cond35.test: Likewise.
594 * tests/cond36.test: Likewise.
595 * tests/cond37.test: Likewise.
596 * tests/cond38.test: Likewise.
597 * tests/cond39.test: Likewise.
598 * tests/cond40.test: Likewise.
599 * tests/cond41.test: Likewise.
600 * tests/cond42.test: Likewise.
601 * tests/cond43.test: Likewise.
602 * tests/cond44.test: Likewise.
603 * tests/cond45.test: Likewise.
604 * tests/dollarvar.test: Likewise.
605 * tests/dollarvar2.test: Likewise.
606 * tests/hfs.test: Likewise.
607 * tests/libobj14.test: Likewise.
608 * tests/percent.test: Likewise.
609 * tests/percent2.test: Likewise.
610 * tests/phony.test: Likewise.
611 * tests/silent.test: Likewise.
612 * tests/silent2.test: Likewise.
613 * tests/silent3.test: Likewise.
614 * tests/silent4.test: Likewise.
615 * tests/silent5.test: Likewise.
616 * tests/silent6.test: Likewise.
617 * tests/silent7.test: Likewise.
618 * tests/silent9.test: Likewise.
619 * tests/silentcxx.test: Likewise.
620 * tests/silentf77.test: Likewise.
621 * tests/silentf90.test: Likewise.
622 * tests/silentlex.test: Likewise.
623 * tests/silentyacc.test: Likewise.
625 Avoid useless cleaning in some `silent*.test' tests.
626 * tests/silentf77.test: Removed useless calls to "make clean"
627 and "make maintainer-clean".
628 * tests/silentf90.test: Likewise.
629 * tests/silent3.test: Removed useless call to "make distclean".
630 * tests/silent4.test: Likewise.
631 * tests/silent9.test: Likewise.
633 2010-11-19 Ian Lance Taylor <iant@google.com>
635 Sync config-ml.in from GCC.
636 * config-ml.in: Add Go support: treat GOC and GOCFLAGS like other
637 compiler/flag environment variables.
639 2010-11-20 Stefano Lattarini <stefano.lattarini@gmail.com>
641 release-stats: account for more generated tests.
642 * Makefile.am (release-stats): Be sure to take into account all
643 the generated tests, by grepping the test scripts to decide which
644 ones of them are automatically generated.
646 2010-11-20 Stefano Lattarini <stefano.lattarini@gmail.com>
648 Code cleanup after removal of option `--output-directory'.
649 * automake.in ($output_directory): Remove, it's unconditionally
650 defined to `.' and used only ...
651 (generate_makefile): ... in this subroutine, which now has been
652 edited and simplified accordingly.
654 Remove obsolete automake option `--output-directory'.
655 This option has been deprecated since version 1.7 (2002/2003).
656 * automake.in ($output_directory): Define to `.' unconditionally.
657 (parse_arguments): Remove handling of equivalent options `-o' and
658 `--output-directory'.
659 * tests/outdir.test: Removed.
660 * tests/no-outdir-option.test: New test.
661 * tests/Makefile.am (TESTS): Updated.
664 2010-11-19 Stefano Lattarini <stefano.lattarini@gmail.com>
666 Automake::Config: remove extra trailing semicolon.
667 * lib/Automake/Config.in: Remove extra trailing semicolon.
669 help4.test: fix botched heading comment.
670 * tests/help4.test: Fixed the heading comment, since it
671 didn't correctly describe what checks the testcase was
674 help2.test: add checks on aclocal too.
675 * tests/help2.test: Check that also `aclocal --version' and
676 `aclocal --help' work with configure.in and acinclude.m4 both
679 2010-11-19 Stefano Lattarini <stefano.lattarini@gmail.com>
681 New test on repeated automake options.
682 * tests/repeated-options.test: New test, check that automake
683 does not complain on repeated options, nor generate broken or
685 * tests/Makefile.am (TESTS): Updated.
687 2010-11-17 Stefano Lattarini <stefano.lattarini@gmail.com>
689 Fix spurious failures of silent-rules tests with Sun Fortran.
690 * tests/silentf77.test: Strip from the make output some verbose
691 messages possibly printed by the SunStudio fortran compilers, to
692 avoid spurious failures. Add a trailing `:' command.
693 * tests/silentf90.test: Likewise.
695 2010-11-17 Stefano Lattarini <stefano.lattarini@gmail.com>
697 Fix spurious failures of silent5.test with Sun Fortran.
698 * tests/silent5.test: Strip from the make output some verbose
699 messages possibly printed by the SunStudio fortran compilers,
700 to avoid spurious failures. This bug has been there from the
701 very first version of this test script.
703 2010-11-16 Stefano Lattarini <stefano.lattarini@gmail.com>
705 Fix regression in colon{5,6}.test (failures on AIX 5.3).
706 * tests/colon5.test: Also substitute `@SHELL@' with `$SHELL' when
707 post-processing the generated Makefile.in, to work around a bug
708 of AIX 5.3 make which doesn't allow setting the `$(SHELL)' macro
709 on the commend line. Calls to `$MAKE' adjusted accordingly.
710 * tests/colon6.test: Likewise.
711 Regression introduced in commit v1.11-175-gf9fe878 "Modernize,
712 improve and/or extend tests `colon*.test", and reported by Ralf
715 2010-11-16 Stefano Lattarini <stefano.lattarini@gmail.com>
717 Fix regression in ansi.test (failure on AIX 5.3).
718 * tests/ansi.test: Remove redundant hackish check done using a
719 hand-postprocessed Makefile.in. This check worked by setting
720 the `$(SHELL)' macro on the command line of make, but this is
721 not supported by the AIX 5.3 make implementation.
722 This bug has been lurking for a long time, and was activated by
723 commit v1.11-125-gc1f6cdb "Enable `errexit' shell flag in various
724 tests". Report by Ralf Wildenhues.
726 2010-11-16 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
728 backcompat5.test: avoid '##'-style comments inside recipe commands.
729 * tests/backcompat5.test: Remove double-hash comments
730 from makefile rule commands, they are not part of the
731 Automake API. Fixes testsuite failure with Tru64 make.
733 tests: avoid '##'-style comments inside recipe commands.
734 * tests/confh.test, tests/confh8.test: Remove
735 double-hash comments from makefile rule commands, they
736 are not part of the Automake API.
738 2010-11-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
740 tests: work around dash quoting issue in case statements.
741 * tests/color.test, tests/color2.test: Quote variable in case
742 pattern, to avoid skipping tests with dash 0.5.5.1.
744 2010-11-16 Peter Rosin <peda@lysator.liu.se>
746 Skip MSVC oriented tests if the shell is not capable.
747 * tests/defs: New required entry 'xsi-shell'.
748 * tests/ar-lib.test, tests/compile3.test, tests/compile6.test:
749 Require a XSI capable shell.
750 Reported by Ralf Wildenhues.
752 2010-11-15 Peter Rosin <peda@lysator.liu.se>
754 compile: clear the `eat' variable earlier.
755 * lib/compile: Clear the `eat' variable earlier.
756 ($scriptversion): Update.
757 * tests/compile3.test: Prevent regressions.
759 2010-11-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
761 More stable configure output from sanity check.
762 * m4/sanity.m4 (AM_SANITY_CHECK): Always print check line
763 about ensuring newer files, even if we don't actually need
766 2010-11-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
768 Rebuild menus in the manual.
769 * doc/automake.texi: Rebuild menus (using ^C ^U ^A in emacs).
770 Thanks to Ian Lance Taylor for the suggestion.
772 Fix install-strip when $(STRIP) contains several words.
773 * lib/am/install.am (install-strip): Update comment. Use
774 separate sub-make invocations for empty and nonempty $(STRIP),
775 to fix quoting issues.
776 * tests/strip2.test, tests/strip3.test: New tests.
777 * tests/Makefile.am (TESTS): Adjust.
779 2010-11-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
781 Fix yaccdry.test failure: require bison.
782 * tests/yaccdry.test: Require bison.
783 Found by NixOS Hydra.
785 2010-11-12 Stefano Lattarini <stefano.lattarini@gmail.com>
787 Fix bug in test `backcompat6.test' (MSYS portability).
788 * tests/backcompat6.test (Makefile.am): Grep the output from the
789 test program, rather than diffing it, to avoid spurious failures
790 on MinGW/MSYS due to LF vs. CRLF line endings.
791 Reported by Ralf Wildenhues.
793 2010-11-13 Stefano Lattarini <stefano.lattarini@gmail.com>
795 Deprecate obsolete macro AM_WITH_REGEX.
796 * m4/regex.m4: Document the `AM_WITH_REGEX' macro as obsolete,
797 and state that it should be removed two years from now.
798 (AM_WITH_REGEX): Raise an m4-time warning of the "obsolete"
799 category when this macro is used.
800 * doc/automake.texi (Public Macros): Move description of
801 `AM_WITH_REGEX' from here ...
802 (Obsolete Macros): ... to here, and declare it as obsolete
803 and "to be removed in a future version".
804 * tests/regex-obsolete.test: New test.
805 * tests/Makefile.am (TESTS): Update.
807 2010-11-08 Stefano Lattarini <stefano.lattarini@gmail.com>
809 Improve and extend tests on man pages support.
810 * tests/man.test: Enable `errexit' shell flag, and related changes.
811 Make grepping of generated Makefile.in slightly stricter.
812 * tests/man3.test: Add trailing `:' command.
813 * tests/man5.test: Prefer cat + here-doc over echo to append to
815 * tests/man2.test: Likewise, and add trailing `:' command.
816 * tests/man4.test: More thorough and consistent checking of make
817 error messages. Place fake `help2man' program in a new `bin'
818 directory rather than in `.'. Move the checks using the real
819 `help2man' program to ...
820 * tests/man6.test: ... this new test, and extend them. This test
821 passes with GNU make and Solaris make, still fails with BSD make.
822 * tests/man7.test: New test, extracted from old man4.test, which
823 checks for a bug in maintainer-clean w.r.t. generated manpages.
824 * tests/man8.test: New test, extracted from old man4.test, which
825 checks for a bug in distcheck w.r.t. generated manpages. Passes
826 with GNU make and Solaris make, still fails with BSD make.
828 2010-11-08 Stefano Lattarini <stefano.lattarini@gmail.com>
830 Minor improvements and extensions to various tests.
831 * tests/defun.test: Also run autoconf and grep the generated
832 configure to make sure that aclocal truly picks up all the
834 * tests/compile_f_c_cxx.test: Prefer trailing `:' over trailing
835 `Exit 0'. Do not create useless dummy source files. Do not set
836 useless `$(foo_LDADD)' variable in `Makefile.am'. Do not call
837 useless macro `AC_F77_LIBRARY_LDFLAGS' in `configure.in'.
838 * tests/compile_f90_c_cxx.test: Likewise.
839 * tests/suffix10.test: Slightly stricter grepping of make output.
840 * tests/compile.test: Add trailing `:' command.
841 * tests/defun2.test: Likewise.
842 * tests/vars3.test: Likewise.
843 * tests/vartar.test: Likewise.
844 * tests/vars.test: Likewise. Also, extend test by checking
845 that the definition of `MY_FLAGS*' variables is preserved in
846 the generated `Makefile.in'.
847 * tests/stamph2.test: Prefer trailing `:' over trailing `Exit 0'.
848 Use proper m4 quoting in `configure.in'.
850 2010-11-11 Stefano Lattarini <stefano.lattarini@gmail.com>
852 Tests defs: improve messages for skipped tests.
853 * tests/defs: Give meaningful messages about the reasons of a
854 test skip; this is especially useful as this file is run without
855 verbose xtraces on. Related reorderings in the code and new
858 2010-11-10 Stefano Lattarini <stefano.lattarini@gmail.com>
860 Tests defs: move static definitions in a new file `defs-static'.
861 The new file is meant to be idempotent w.r.t. multiple inclusions.
862 * tests/defs.in: Removed, its contents split among ...
863 * tests/defs-static.in: ... this new file ...
864 * tests/defs: ... and this new file, including the former.
865 * configure.ac (AC_CONFIG_FILES): Remove `tests/defs', add
867 (AC_CONFIG_LINKS): Add `tests/defs'.
868 * tests/Makefile.am ($(parallel_tests)): Update.
869 ($(instspc_tests)): Likewise.
870 * tests/.gitignore: Update.
872 Tests defs: $testsbuilddir is now AC_SUBST'ed.
873 * tests/defs.in ($testsbuilddir): Substitute from @abs_builddir@.
874 Add sanity check on $testsbuilddir, similar to those on
875 $testsrcdir and $top_testsrcdir.
877 Tests defs: do not print message "Running test $0" anymore.
878 * tests/defs.in: Printing the message "=== Running test $0" at
879 the beginning of each tests made sense when Automake used the old
880 test-driver, which sent all the output directly to stdout/stderr.
881 Now that the parallel test-driver is used, which saves output of
882 each test in its corresponding log file, that old message is just
885 Tests defs: rename $curdir -> $testbuilddir
886 * tests/defs.in: Rename $curdir to $testbuildir, for clarity and
887 consistency with $testsrcdir and $top_testsrcdir.
889 Tests defs: prefer "$curdir" over "`pwd`".
890 * tests/defs.in: We already save the value of `pwd` in $curdir
891 early in the file, so there no need to recalculate it later, when
892 the current working directory is not changed.
894 Tests defs: use `$me' in more error messages.
895 * tests/defs.in: Also use `$me' in error messages referring to
896 missing `defs' or `defs.in', since that variable is now defined
899 Tests defs: do not use `Exit' where plain `exit' suffices.
900 * tests/defs.in: Use "exit 77" rather than "Exit 77" to skip the
901 test when required libtool/gettext macros are not found, since
902 such skips would take place before the exit trap is installed.
904 Tests defs: improve and extends comments.
905 * tests/defs.in: Improve and extends some comments, especially in
906 relation with the changes introduced by the previous reordering.
908 Tests defs: various reorderings.
909 * tests/defs.in: Reordered various snippets of code in a
912 2010-11-09 Stefano Lattarini <stefano.lattarini@gmail.com>
914 Fix bug in test `backcompat4.test' (stale autom4te cache).
915 * tests/backcompat4.test: Remove stale autom4te cache directory
916 before re-running aclocal and automake. Also, since we are at
917 it, be more verbose in displaying contents of generated files,
918 to ease debuggability.
919 Reported by Ralf Wildenhues.
921 2010-11-07 Stefano Lattarini <stefano.lattarini@gmail.com>
923 Fix a bug in variable concatenation with `+='.
924 * lib/Automake/VarDef.pm (append): Since the content of the
925 "appended-to" variable is going to be unconditionally normalized
926 later, simply separate the appended value with a single whitespace
927 character, instead of trying to be uselessly smarter by using
928 escaped newlines. This fixes a bug in which extra backslashes
929 where erroneously inserted in the variable's final value.
930 * tests/pluseq11.test: New test, exposing the bug.
931 * tests/Makefile.am (TESTS): Update.
932 Reported by Andy Wingo.
934 2010-11-07 Stefano Lattarini <stefano.lattarini@gmail.com>
936 Modernize, improve and/or tweak various test scripts.
937 * tests/stamph2.test: Improve m4 quoting in `configure.in', and
938 prefer trailing `:' over trailing `Exit 0'.
939 * tests/syntax.test: Escape literal dots in grep regexps.
940 * tests/copy.test: Enable `errexit' shell flag. Extend test by
941 checking with `test' utility that the script `install-sh' is
942 copied, but not symlinked.
943 * tests/depdist.test: Move setting of `errexit' shell flag earlier
944 in the script (just after inclusion of ./defs). Avoid obsoleted
945 constructs in generated `configure.in'. Prefer to do our checks
946 by running configure and make over grepping Makefile.in.
947 * tests/target-cflags: Move setting of `errexit' shell flag
948 earlier in the script (just after inclusion of ./defs). Use the
949 `configure.in' stub created by `./defs', rather than writing it
951 * tests/target-clash: Do not uselessly run autoconf.
952 * tests/ctarget1.test: Renamed ...
953 * tests/cond-basic.test: ... to this. Use the `configure.in' stub
954 created by `./defs', rather than writing it from scratch.
955 Move setting of `errexit' shell flag earlier in the script (just
956 after inclusion of ./defs). Other minor cosmetic changes.
957 * tests/Makefile.am (TESTS): Updated.
959 2010-11-06 Stefano Lattarini <stefano.lattarini@gmail.com>
961 New tests on obsoleted usages of automake/autoconf macros (such
962 as AC_INIT, AM_INIT_AUTOMAKE and AC_OUTPUT).
963 * tests/backcompat.test: New test script.
964 * tests/backcompat2.test: Likewise.
965 * tests/backcompat3.test: Likewise.
966 * tests/backcompat4.test: Likewise.
967 * tests/backcompat5.test: Likewise.
968 * tests/backcompat6.test: Likewise.
969 * tests/init.test: Extended and improved, esp. by trying more
970 combinations of calls to AC_INIT and AM_INIT_AUTOMAKE with few
972 * tests/Makefile.am (TESTS): Updated.
974 2010-11-06 Stefano Lattarini <stefano.lattarini@gmail.com>
976 Fix bug in rules for creating vala vapi/header files.
977 * automake.in (lang_vala_finish_target): Add forgotten "fi" in an
978 if control structure in a generated make rules. Bug introduced
979 by previous commit `v1.11-221-gd7c1679', and revealed by failure
980 of test `vala2.test'.
982 2010-11-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
984 Fix and document rules to not touch the tree with `make -n'.
985 * doc/automake.texi (Multiple Outputs): Document the problem of
986 modifications during dry-run execution, propose solution.
988 * automake.in (lang_vala_finish_target): Split recipe so the
989 stamp file is not removed with GNU `make -n'.
990 (lang_yacc_target_hook): Separate removal of parser output file
992 * lib/am/lisp.am ($(am__ELCFILES)): Determine whether -n was
993 passed to make, take care not to remove any files in that case.
994 * lib/am/remake-hdr.am (%CONFIG_H%): Separate removal of
995 %STAMP% file from induced remaking of config header.
996 * tests/autohdrdry.test, tests/lispdry.test, tests/yaccdry.test:
998 * tests/Makefile.am (TESTS): Update.
1000 2010-11-05 Stefano Lattarini <stefano.lattarini@gmail.com>
1002 Fix potential bug in generated tests `instpc-*.test'.
1003 This bug is due to the changes introduced by the recently-merged
1004 "tests-init" branch. In that branch, `tests/defs' didn't define
1005 anymore `$srcdir', instead defining directly `$testsrcdir'; but
1006 the generated tests were using `$srcdir', hence the bug.
1007 Luckily, since the Automake parallel test driver automatically
1008 exports `srcdir' to a proper value, that prevented the bug from
1010 * tests/Makefile.am ($(instspc_tests)): In the generated test
1011 scripts, use `$testsrcdir', not `$srcdir'.
1013 2010-11-03 Stefano Lattarini <stefano.lattarini@gmail.com>
1015 Overhauled and modularized tests in `instspc.test'.
1016 The test `instspc.test' was way too big and fragile. Its running
1017 time was very long. It also produced a log that was nearly
1018 unreadable due to its length, making it very difficult to find
1019 out the reason for failures.
1020 Also, it was too much monolithic, with a single (maybe spurious)
1021 failure in a corner case causing the whole test to fail (even if
1022 everything worked as expected in the other 99% of cases).
1023 The present change should solve these problems, by separating
1024 `instspc.test' into many smaller, self-contained, auto-generated
1026 * tests/instspc.test: Removed.
1027 * tests/instspc-tests.sh: New script, fulfilling a double role:
1028 1. it generates a Makefile.am snippet `tests/instspc-tests.am',
1029 containing the definition of a list of new tests which will take
1030 over the older `instspc.test', and
1031 2. it is sourced by said generated tests with proper parameters
1032 pre-set, to run the "meat" of the checks.
1033 This apparent abuse is indeed required because the test generation
1034 code and test execution code are inevitably intertwined.
1035 * tests/Makefile.am ($(srcdir)/instspc-tests.am): Include this
1036 snippet, which (among the other things) defines ...
1037 (instspc_tests): ... this new macro, containing the list of the
1038 newly generated `instspc*.test' tests, and ...
1039 (instspc_xfail_tests): ... this new macro, containing the list
1040 of the `instspc*.test' tests expected to fail.
1041 ($(instspc_tests)): New rule, generates the `instspc*.test' tests.
1042 ($(instspc_tests:.test=.log)): New rule, registers the dependency
1043 of all `instspc*.test' tests on the `instspc-tests.sh' script.
1044 (TESTS): Add `$(instspc_tests)', remove `instspc.test'.
1045 (XFAIL_TESTS): Add `$(xfail_instspc_tests)'.
1046 (EXTRA_DIST): Distribute instspc-tests.sh.
1047 (MAINTAINERCLEANFILES): Added $(instspc_tests).
1048 Other minor cosmetic changes.
1049 * bootstrap: Generate instspc-tests.am.
1050 * tests/.gitignore: Updated.
1052 2010-11-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1054 Add FAQ entry for bug reporting instructions.
1055 * doc/automake.texi (Reporting Bugs): New section.
1056 (Introduction): Refer to it.
1058 2010-10-07 Peter Rosin <peda@lysator.liu.se>
1060 depcomp: add new one-pass depmode for MSVC 7 and later.
1061 * lib/depcomp: Add new depmodes 'msvc7' and 'msvc7msys' which
1062 make use of the -showIncludes option added in MSVC 7.
1063 * m4/depend.m4 (_AM_DEPENDENCIES): Handle the new depmodes
1064 similarly to 'msvisualcpp' and 'msvcmsys' as MSVC does not
1065 support the -o option.
1067 2010-10-05 Jim Meyering <meyering@redhat.com>
1069 dist-xz, dist-bzip2: don't hard-code -9: honor envvar settings
1070 * lib/am/distdir.am (dist-xz): Do not hard-code xz's -9: that
1071 made it impossible to override. Instead, use its XZ_OPT envvar,
1072 defaulting to -9 if not defined. Thus no change in behavior
1073 when XZ_OPT is not set, and now, this rule honors the setting
1074 of that envvar when it is set. Suggested by Lasse Collin.
1075 (dist-bzip2): Likewise for it's corresponding envvar: BZIP2.
1076 * NEWS (Miscellaneous changes): Mention it.
1077 * doc/automake.texi (The Types of Distributions): Describe the
1078 newly enabled environment variables.
1080 2010-10-04 Stefano Lattarini <stefano.lattarini@gmail.com>
1082 Add support for newer python versions.
1083 * m4/python.m4 (AM_PATH_PYTHON): Add python2.7 and python3.2 to
1084 _AM_PYTHON_INTERPRETER_LIST. Since we are at it, break a long
1085 line and fix indentation.
1087 From a report by Thomas Klausner.
1089 Add test for `AM_WITH_DMALLOC' macro.
1090 * tests/dmalloc.test: New test.
1091 * tests/Makefile.am (TESTS): Update.
1093 Fix nits and bugs in tests `help*.test'.
1094 * tests/help4.test: Fix broken sed commands used to strip `-W...'
1095 flags away from "$AUTOMAKE" and "$ACLOCAL".
1096 * tests/help3.test: Likewise, and fix a botched comment.
1097 * tests/help.test: Likewise. Also, use "AUTOMAKE_fails ..."
1098 instead of "$AUTOMAKE ... && Exit 1", for consistency and to
1099 please maintainer-check.
1100 * tests/help2.test: Likewise.
1102 2010-10-03 Stefano Lattarini <stefano.lattarini@gmail.com>
1103 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1105 Improve tests `help*.test' (also fixes maintcheck failures).
1106 * tests/help.test: To run automake, use `$AUTOMAKE' with all `-W'
1107 flags stripped away rather than hard-coded `automake-$APIVERSION',
1108 to better honour user-overrides. Similarly for aclocal.
1109 * tests/help2.test: Likewise.
1110 * tests/help3.test: Likewise.
1111 * tests/help4.test: Likewise.
1113 2010-10-03 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1115 tests: fix ar-lib.test for echo that interprets backslashes.
1116 * tests/ar-lib.test: Use printf instead of echo. Avoid test -a.
1117 More robust quoting.
1119 2010-10-03 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1121 maintainer-check coverage for variables before rules.
1122 * Makefile.am (sc_ensure_testsuite_has_run): Suggest keeping
1123 around the test directories.
1124 (sc_tests_makefile_variable_order): New rule with a heuristic to
1125 catch ordering violations.
1127 Document and fix expansion of variables before rules.
1128 * doc/automake.texi (General Operation): Document that variables
1129 are expanded before rules.
1130 * lib/am/check.am (am__check_post): Reword a bit so it does not
1131 get matched as a rule.
1132 Suggestion by Ben Pfaff.
1134 2010-10-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1136 Coverage and minor fixes for variable typo detection.
1137 * automake.in (check_typos): Remove `EXTRA_' prefix when
1138 computing canonical name.
1139 * tests/vartypo2.test, tests/vartypos.test: New tests.
1140 * tests/Makefile.am (TESTS): Update.
1142 Implement EXTRA_maude_DEPENDENCIES for programs and libraries.
1143 * automake.in (handle_programs, handle_libraries)
1144 (handle_ltlibraries): Mark EXTRA_*_DEPENDENCIES as recognized.
1145 * doc/automake.texi (Linking, Program and Library Variables)
1146 (LIBOBJS): Document EXTRA_*_DEPENDENCIES.
1147 * lib/am/library.am (%LIBRARY%): Also depend on
1148 $(EXTRA_%XLIBRARY%_DEPENDENCIES).
1149 * lib/am/ltlibrary.am (%LTLIBRARY%): Also depend on
1150 (%XLTLIBRARY%_DEPENDENCIES).
1151 * lib/am/program.am (%PROGRAM%%EXEEXT%): Also depend on
1152 $(EXTRA_%XPROGRAM%_DEPENDENCIES).
1153 * tests/extradep.test, tests/extradep2.test: New tests.
1154 * tests/Makefile.am (TESTS): Update.
1156 Suggested by Eric Blake.
1158 tests: avoid running into timing issues due to sanity change.
1159 * tests/acloca10.test, tests/acloca18.test, tests/aclocal9.test:
1160 Insert strategic sleep before aclocal reruns, to ensure files
1162 * tests/python11.test: Use --force for repeated autotools runs.
1163 Reports from the NixOS Hydra build daemon via Ludovic Courtès.
1165 Fix timestamp issues by ensuring configure takes at least a second.
1166 * m4/sanity.m4 (AM_SANITY_CHECK): If we didn't sleep here,
1167 start a sleep in the background and wait for it to finish
1168 before creating config.status, hopefully fixing all spurious
1169 testsuite failures involving botched time stamps.
1171 Reports by Ludovic Courtès, Peter Breitenlohner, and others.
1173 2010-10-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1175 Revert "parallel-tests: avoid command-line length limit issue."
1176 This reverts commit 24e3b4ee2f8cb9f72dd94a05a893f3d4e88b7835,
1177 because it re-opened the bug fixed by v1.11-10-g218e678.
1179 2010-09-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1181 parallel-tests: avoid command-line length limit issue.
1182 * automake.in (handle_tests): New argument $makefile, new
1183 substitution %MAKEFILE%.
1184 (generate_makefile): Adjust.
1185 * lib/am/check.am [%?PARALLEL_TESTS%] (check-TESTS): Pass
1186 sanitized TEST_LOGS value as makefile snippet on standard
1187 input to $(MAKE), to avoid exceeding the command line limit on
1190 Report by Bob Friesenhahn.
1192 2010-09-26 Stefano Lattarini <stefano.lattarini@gmail.com>
1194 Extend tests on `--help' and `--version' options.
1195 * tests/help.test: Create a new empty directory and chdir into
1196 it, rather than removing already present files. Run the aclocal
1197 and automake wrapper scripts directly, instead of relying on
1198 $AUTOMAKE and $ACLOCAL. Be sure to correctly match literal dots
1199 in aclocal's and automake's stderr. Add a trailing `:' command.
1200 * tests/help2.test: New test, checking that options `--help' and
1201 `--version' works in directories with broken `configure.in'.
1202 * tests/help3.test: New test, checking that options `--help' and
1203 `--version' take precedence on the other options.
1204 * tests/help4.test: New test, checking that the first among the
1205 `--help' and `--version' options to be specified on the command
1207 * tests/Makefile.am (TESTS): Updated.
1209 2010-09-25 Stefano Lattarini <stefano.lattarini@gmail.com>
1211 Testsuite: Use `$PATH_SEPARATOR', not `:', when extending PATH.
1212 * tests/compile2.test: Do no uselessly (implicitly) repeat the
1213 computation of PATH_SEPARATOR again.
1214 * tests/instmany-mans.test: Use `$PATH_SEPARATOR', not `:', when
1215 extending/redefining PATH.
1216 * tests/instmany-python.test: Likewise.
1217 * tests/instmany.test: Likewise.
1218 * tests/man4.test: Likewise.
1219 * tests/mkinst3.test: Likewise.
1220 * tests/mmodely.test: Likewise.
1221 * tests/multlib.test: Likewise.
1222 * tests/txinfo30.test: Likewise.
1223 * tests/README (Section "Writing test cases" subsection "Do"):
1225 * Makefile.am (sc_tests_PATH_SEPARATOR): New maintainer check.
1226 (syntax_check_rules): Updated.
1228 Testsuite: new variables `$PATH_SEPARATOR' and `$APIVERSION'.
1229 * tests/defs.in ($APIVERSION): New AC_SUBST'd variable.
1230 ($ACLOCAL, $AUTOMAKE): Use it.
1231 ($PATH_SEPARATOR): New AC_SUBST'd variables.
1234 2010-09-22 Stefano Lattarini <stefano.lattarini@gmail.com>
1236 Manual: be more agnostic w.r.t. version control system used.
1237 * doc/automake.texi (Basics of Distribution): Also refer to `.svn'
1238 directories as a type of probably-unwanted files that are copied
1239 regardless when adding directories to EXTRA_DIST.
1240 (The dist Hook): Show a dist-hook example which removes Subversion
1241 `.svn' private directories from distdir, rather than CVS private
1243 (missing and AM_MAINTAINER_MODE): Try to be more agnostic w.r.t.
1244 the version control system used.
1246 Manual: index refer to target "git-dist", not "cvs-dist".
1247 * doc/automake.texi (General Operation): Index the non-standard
1248 example about "git-dist" under the "git-dist" label, not under
1251 Perl modules: remove references to "Automake CVS repository".
1252 * lib/Automake/Channels.pm: Update comments to refer to "Automke's
1253 git repository" rather than to "Automake's CVS repository".
1254 * lib/Automake/Configure_ac.pm: Likewise.
1255 * lib/Automake/FileUtils.pm: Likewise.
1256 * lib/Automake/Struct.pm: Likewise.
1257 * lib/Automake/XFile.pm: Likewise.
1258 * lib/Automake/Version.pm (=head1 DESCRIPTION): Refer to "git
1259 branches" rather than "CVS branches".
1261 Remove obsolete .cvsignore files.
1262 * .cvsignore, doc/.cvsignore, lib/.cvsignore, lib/am/.cvsignore,
1263 lib/Automake/.cvsignore, lib/Automake/tests/.cvsignore,
1264 m4/.cvsignore, tests/.cvsignore: Files deleted. Even when using
1265 savannah's CVS readonly mirror there's no way to commit back to
1266 the real repository, so this files are not worth maintaining or
1269 2010-09-21 Stefano Lattarini <stefano.lattarini@gmail.com>
1271 * m4/dmalloc.m4: Bump serial number and copyright years.
1273 2010-09-20 Stefano Lattarini <stefano.lattarini@gmail.com>
1275 Fix broken link in `AM_WITH_DMALLOC' help screen.
1276 * m4/dmalloc.m4 (AM_WITH_DMALLOC): Refer only to the dmalloc site
1277 `http://www.dmalloc.com', not to the dmalloc tarball there (which
1278 seems to have been removed, substituted by multiple release
1281 2010-09-21 Peter Rosin <peda@lysator.liu.se>
1283 compile: implement library search to support MSVC static linking
1284 * lib/compile (func_cl_wrapper): Implement library search and
1285 -static option so that the user can select whether to prefer
1286 dll import libraries or static libraries. This enables MSVC to
1287 link against dlls generated by libtool without requiring libtool
1288 or workarounds such as -lfoo.dll etc. Makes the tests/static.at
1289 test case in libtool pass.
1290 * tests/compile3.test: Don't trip up if there happens to exist
1291 a "foo" library in the library search path.
1292 * tests/compile6.test: New test, verifying the library search.
1293 * tests/Makefile.am (TESTS): Update.
1295 2010-09-17 Eric Blake <eblake@redhat.com>
1297 Avoid triple-space after period.
1298 * automake.in (handle_single_transform): Avoid 3 spaces at
1300 * ChangeLog.03: Likewise.
1301 * lib/Automake/ChannelDefs.pm: Likewise.
1302 * lib/Automake/Channels.pm (_print_message): Likewise.
1303 * lib/Automake/Rule.pm (rule): Likewise.
1304 * lib/Automake/Variable.pm (var): Likewise.
1305 * lib/am/distdir.am: Likewise.
1306 * tests/insthook.test: Likewise.
1308 2010-09-15 Stefano Lattarini <stefano.lattarini@gmail.com>
1310 Test automake-generated portions of configure help screen.
1311 * tests/help-depend.test: New test.
1312 * tests/help-depend2.test: Likewise.
1313 * tests/help-dmalloc.test: Likewise.
1314 * tests/help-init.test: Likewise.
1315 * tests/help-lispdir.test: Likewise.
1316 * tests/help-maintainer.test: Likewise.
1317 * tests/help-multilib.test: Likewise.
1318 * tests/help-regex.test: Likewise.
1319 * tests/help-silent.test: Likewise.
1320 * tests/help-upc.test: Likewise.
1321 * tests/mmode.test: Remove tests on `configure --help' output,
1322 they are superseded by tests in `help-maintainer.test'.
1323 * tests/Makefile.am (TESTS): Update.
1325 2010-09-14 Stefano Lattarini <stefano.lattarini@gmail.com>
1327 * tests/README: Don't put GCS mandated tools in $required.
1329 2010-09-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1331 * HACKING: Hint at old commits with `git describe' output.
1333 2010-09-14 Stefano Lattarini <stefano.lattarini@gmail.com>
1335 Prefer `$(am__cd)' to plain `cd' in our Makefiles.
1336 * Makefile.am (recheck, dist-hook, git-dist, path-check, fetch)
1337 (release-stats): Use `$(am__cd)' rather than plain `cd'.
1338 * tests/Makefile.am ($(srcdir)/parallel-tests.am): Likewise.
1340 2010-09-12 Stefano Lattarini <stefano.lattarini@gmail.com>
1342 Fix regression in test `colon4.test'.
1343 * tests/colon4.test: Fix botched editing to `configure.in'
1344 that made the test useless. Since we are at it, improve
1345 comments and make grepping of generated Makefile.in slightly
1347 Regression introduced by change "Modernize, improve and/or
1348 extend tests `colon*.test" (Stefano Lattarini, 2010-08-08).
1350 2010-09-08 Stefano Lattarini <stefano.lattarini@gmail.com>
1352 Do not require "gzip" explicitly in tests.
1353 The gzip utility is simply expected to be present on any decent
1354 target system for Automake. So it's pointless to put it in
1356 * tests/install2.test ($required): Do not require "gzip".
1357 * tests/lex3.test: Likewise.
1358 * tests/pr9.test: Likewise.
1359 From a suggestion by Ralf Wildenhues.
1361 2010-09-09 Stefano Lattarini <stefano.lattarini@gmail.com>
1363 Use AS_HELP_STRING in AM_SILENT_RULES.
1364 * m4/silent.m4 (AM_SILENT_RULES): Use `AS_HELP_STRING' to format
1365 help message regarding configure options `--enable-silent-rules'
1366 and `--disable-silent-rules'. Also throw in a couple of cosmetic
1367 changes in the related `case' statement (indentation, balancing
1370 From a report by Jeff A. Daily.
1372 2010-09-08 Stefano Lattarini <stefano.lattarini@gmail.com>
1374 Make some `confh*.test' tests more "semantic" (plus tweakings).
1375 * tests/confh.test: Run "autoconf", "configure" and "make check",
1376 instead of munging/grepping the generated `Makefile.in'.
1377 * tests/confh4.test: Relax the grepping of Makefile.in w.r.t.
1378 white spaces. Do not create useless dummy source file `foo.c'
1379 and useless dummy header file `acconfig.h'.
1380 (configure.in): Remove superfluous call to `AC_OUTPUT'.
1381 * tests/confh6.test: Add trailing `:' command.
1382 * tests/confh7.test: In comments, add reference to ...
1383 * tests/confh8.test: ... this new test, "semantic" sister
1385 * tests/Makefile.am (TESTS): Updated.
1386 Prompted by a report from Ralf Wildenhues.
1388 2010-09-08 Stefano Lattarini <stefano.lattarini@gmail.com>
1390 Remove useless whitespace padding in XFAIL_TESTS definition.
1391 * tests/Makefile.am (XFAIL_TESTS): Remove whitespace padding.
1393 2010-09-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1395 parallel-tests: avoid command-line length limit issue.
1396 * automake.in (handle_tests): New argument $makefile, new
1397 substitution %MAKEFILE%.
1398 (generate_makefile): Adjust.
1399 * lib/am/check.am [%?PARALLEL_TESTS%] (check-TESTS): Pass
1400 sanitized TEST_LOGS value as makefile snippet on standard
1401 input to $(MAKE), to avoid exceeding the command line limit on
1404 Report by Bob Friesenhahn.
1406 Posix 2008 requires make to set errexit.
1407 * lib/am/check.am: Update comment.
1409 2010-09-06 Stefano Lattarini <stefano.lattarini@gmail.com>
1411 Tests defs: remove variable $testaclocaldir.
1412 * tests/defs.in ($testaclocaldir): Removed.
1413 * tests/aclocal.test: Use `$top_testsrcdir/m4' directly, not
1416 Tests defs: $srcdir and $top_srcdir renaming.
1417 * tests/defs.in ($srcdir): Remove, define $testsrcdir directly.
1418 * tests/Makefile.am ($(parallel_tests)): Generation of derived
1421 Tests defs: new variable $top_testsrcdir.
1422 * tests/defs.in ($top_testsrcdir): Define unconditionally
1423 to @abs_top_srcdir@. Use it throughout.
1424 * tests/ar-lib.test: Use `$top_testsrcdir' instead of
1426 * tests/auxdir.test: Likewise.
1427 * tests/compile.test: Likewise.
1428 * tests/compile2.test: Likewise.
1429 * tests/compile3.test: Likewise.
1430 * tests/compile5.test: Likewise.
1431 * tests/mdate6.test: Likewise.
1432 * tests/mkinst3.test: Likewise.
1433 * tests/multlib.test: Likewise.
1434 * tests/txinfo22.test: Likewise.
1436 Tests defs: $srcdir is unconditionally substituted.
1437 * tests/defs.in ($srcdir): Define unconditionally to @abs_srcdir@.
1438 Remove code for $srcdir normalization, which is now useless.
1440 2010-09-02 Stefano Lattarini <stefano.lattarini@gmail.com>
1442 Tests defs: make spacing more consistent.
1443 * tests/defs.in: Make spacing more consistent in indentation.
1444 Especially, indent using only spaces, not tabs. Also, move
1445 a comment to a better position.
1447 Improve code for requiring libtool and gettext in tests.
1448 * tests/defs.in: Stricter (and more correct) detection of wheter
1449 libtool, libtoolize and/or gettext are in $required.
1452 2010-08-27 Stefano Lattarini <stefano.lattarini@gmail.com>
1454 Fix bug in test missing6.test.
1455 * tests/missing6.test: Fix the hack used to edit `configure.in',
1456 to avoid producing a configure script that breaks with shells
1457 that do not support $LINENO. Also throw in a couple of cosmetic
1460 2010-09-02 Peter Rosin <peda@lysator.liu.se>
1462 Make ar-lib support backslashed files in archives.
1463 * lib/ar-lib: If an archive member contains a backslash, make sure
1464 it is escaped when the archive member is extracted.
1465 * tests/ar-lib.test: Test the above.
1467 2010-08-31 Peter Rosin <peda@lysator.liu.se>
1469 Do file name conversion for object files in the compile wrapper.
1470 * lib/compile (func_cl_wrapper): Do file name conversion for object
1471 files (i.e. extensions .obj, .OBJ, .o and .O) if needed.
1472 * tests/compile4.test: Test the above.
1474 2010-08-21 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1476 Speed up removal of auxiliary linker output files for ltlibraries.
1477 * lib/am/ltlib.am (clean-%DIR%LTLIBRARIES): Rewrite using just
1478 one `rm' invocation.
1479 Report by Bob Friesenhahn.
1481 Improve robustness of mdate-sh script.
1482 * lib/mdate-sh: Sanitize zsh behavior on startup, to ensure
1483 $ls_command is word-split properly upon invocation.
1484 (error): New function.
1485 (main): Use it. Improve error checking to avoid endless loop
1486 in case $ls_command gave bogus output. Fix eval quotation.
1487 * tests/mdate6.test: New test, to expose eval quotation error.
1488 * tests/Makefile.am: Update.
1490 2010-08-18 Stefano Lattarini <stefano.lattarini@gmail.com>
1492 Fix potential regressions in depcomp{3,5}.test.
1493 * tests/depcomp3.test: Do not uselessly escape the character `$'
1494 in makefile rules, when it's used to expand a make macro.
1495 * tests/depcomp5.test: Likewise.
1497 2010-08-17 Stefano Lattarini <stefano.lattarini@gmail.com>
1498 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1500 Docs: clarify how to avoid automatic dependencies tracking.
1501 * doc/automake.texi (Automatic dependency tracking): Mention that
1502 automatic dependencies tracking is enabled by default, but that
1503 the package developer can disable it altogether. Add a reference
1504 to the proper section for a more in-depth explanation.
1506 Fix typo in manual (`Makefile.in' instead of `Makefile.am').
1507 * doc/automake.texi (Automatic dependency tracking): Fix typo.
1509 2010-08-16 Bruno Haible <bruno@clisp.org>
1511 Don't hide the table of contents.
1512 * doc/automake.texi: Move the table of contents to the beginning.
1514 2010-08-16 Peter Rosin <peda@lysator.liu.se>
1516 Optimize compile script on MSYS.
1517 * lib/compile (func_file_conv): Add new argument 'lazy' which
1518 takes an optional list of conversion types where the requested
1519 conversion isn't needed.
1520 (func_cl_wrapper): Take advantage of the above for cases where
1521 MSYS is doing the conversion for us.
1522 Suggested by Ralf Wildenhues.
1524 2010-08-16 Peter Rosin <peda@lysator.liu.se>
1526 Support more C++ file extensions for MSVC in the compile script.
1527 * lib/compile (func_cl_wrapper): MSVC only recognizes the .cpp
1528 file extension as C++, unless it's given a hint. So hint about
1529 .cc, .CC, .cxx, .CXX, c++ and C++. Also do path conversion on
1530 .c, .cpp, .CPP, .lib, .LIB and .Lib files.
1531 * tests/compile3.test: Test the C++ hinting.
1533 2010-08-12 Peter Rosin <peda@lysator.liu.se>
1535 Enable the use of "link -lib" as the wrapped archiver.
1536 * lib/ar-lib: Enable the use of "link -lib" as the wrapped
1537 archiver, as well as allowing some other options to be passed
1538 through to the wrapped archiver.
1539 * tests/ar-lib.test: Test the above.
1541 2010-08-10 Stefano Lattarini <stefano.lattarini@gmail.com>
1543 Tweak and/or extend some `acloca*.test' tests.
1544 * tests/aclocal8.test: Ensure verbose printing of captured
1546 * tests/aclocal.test: Likewise. Also, add trailing `:'
1548 * tests/acloca19.test: Likewise.
1549 * tests/aclocal5.test: Add trailing `:' command, and prefer
1550 `$me' over hard-coded test name.
1551 * tests/aclocal6.test: Likewise.
1552 * tests/aclocal18.test: Add trailing `:' command, and make
1553 some grepping slightly stricter.
1554 * tests/acloca14.test: Likewise. Also, prefer `diff' over
1555 `cmp', and add some "cosmetic" blank lines.
1557 2010-08-09 Stefano Lattarini <stefano.lattarini@gmail.com>
1559 Tweak and extend tests `pr[!0-9]*.test'.
1560 * tests/primary3.test: Add trailing `:' command.
1561 * tests/primary.test: Make grepping of Automake's stderr stricter.
1562 Also, add trailing `:' command, and cosmetic changes in spacing.
1563 * tests/primary2.test: Likewise.
1564 * tests/prefix.test: Enable `errexit' shell flags, and related
1565 changes. Add a trailing `:' command.
1566 * tests/proginst.test: Likewise.
1568 Modernize, improve and extend tests for PR (`pr[0-9]*.test').
1569 * tests/pr2.test: Add trailing `:' command.
1570 * tests/pr229.test: Likewise.
1571 * tests/pr401.test: Likewise.
1572 * tests/pr401b.test: Likewise.
1573 * tests/pr401c.test: Likewise.
1574 * tests/pr300-prog.test: Likewise, plus cosmetic changes in
1576 * tests/pr300-lib.test: Likewise.
1577 * tests/pr300-ltlib.test: Likewise, and ensure verbose printing
1578 of captured make stdout.
1579 * tests/pr211.test: Add trailing `:' command. Also, use the
1580 `configure.in' stub created by ./defs, rather than writing it
1582 * tests/pr204.test: Likewise, plus cosmetic spacing changes.
1583 * tests/pr287.test: Likewise, and move setting of `errexit' shell
1584 flag earlier in the script (just after inclusion of ./defs).
1585 * tests/pr220.test: Make grepping of Automake's stderr stricter.
1586 Also, add trailing `:' command, and cosmetic changes in spacing.
1587 * tests/pr224.test: Move setting of `errexit' shell flag earlier
1588 in the script (just after inclusion of ./defs). Do not export
1589 `CC=gcc' to configure explicitly (it's already exported globally
1590 in ./defs, since we have "gcc" in $required). Use the stub for
1591 `configure.in' created by ./defs, rather than writing it from
1592 scratch. Do not create dummy files required by "gnu" mode (e.g.
1593 README, NEWS), since we run automake in foreign mode anyway.
1594 * tests/pr72.test: Enable `errexit' shell flags, and related
1595 changes. Extend existing checks a bit.
1596 * tests/pr9.test: Likewise. Also, avoid obsolescent constructs in
1597 the generated `configure.in', and extend existing checks over the
1598 generated tarball a bit.
1599 * tests/pr87.test: Enable `errexit' shell flags, and related
1600 changes. Add a trailing `:' command. Also, do not create dummy
1601 files required by "gnu" mode (e.g. README, NEWS), since we run
1602 automake in foreign mode anyway.
1603 * tests/pr243.test: Avoid obsolescent constructs in the generated
1604 `configure.in'. Enable the `errexit' shell flag, and related
1605 changes. Cosmetic changes to spacing, add trailing `:' command,
1606 and add a "FIXME" comment.
1607 * tests/pr266.test: Likewise, and add explicit command line switch
1608 `--enable-dependecy-tracking' to the ./configure call.
1609 * tests/pr279.test: Avoid obsolescent constructs in the generated
1610 `configure.in'; also, use the `configure.in' stub created by
1611 ./defs, rather than writing it from scratch. Enable `errexit'
1612 shell flag, and related changes. Add trailing `:' command.
1613 * tests/pr279-2.test: Likewise, and make grepping of Makefile.in
1615 * tests/pr307.test: Move setting of `errexit' shell flag earlier
1616 in the script (just after inclusion of ./defs). Escape literal
1617 dots in grep regular expressions. Also, add a trailing `:'
1618 command, and cosmetic changes to spacing.
1620 Tests for PR: add excerpts from original bug report, for clarity.
1621 * tests/pr2.test: Ditto.
1622 * tests/pr9.test: Likewise.
1623 * tests/pr72.test: Likewise.
1624 * tests/pr87.test: Likewise.
1625 * tests/pr211.test: Likewise.
1626 * tests/pr220.test: Likewise.
1627 * tests/pr224.test: Likewise.
1628 * tests/pr229.test: Likewise.
1629 * tests/pr243.test: Likewise.
1630 * tests/pr266.test: Likewise.
1631 * tests/pr279.test: Likewise, and tell to keep it in sync
1632 with its sister test.
1633 * tests/pr279-2.test: Likewise.
1635 2010-08-08 Stefano Lattarini <stefano.lattarini@gmail.com>
1637 Tweak, extend and improve tests `cond[a-z]*.test'.
1638 * tests/condd.test: Add trailing `:' command. Typofix in
1640 * tests/condhook.test: Make sure target `install-data-hook' is
1641 not called by `make install', but that data files are installed.
1642 Use proper m4 quoting in configure.in. Add trailing `:' command.
1643 * tests/condhook2.test: New test, sister test of condhook, with
1645 * tests/condinc2.test: Use proper m4 quoting in configure.in.
1646 Prefer trailing `:' command over trailing `Exit 0'.
1647 * tests/condman2.test: Enable errexit shell flag, and related
1648 changes. Add trailing `:' command.
1649 * tests/condman.test: Likewise. Also, do not create useless
1650 dummy manpages, and use proper m4 quoting in configure.in.
1651 * tests/condman3.test: New test, similar to condman.test, but
1652 it also runs ./configure and "make install", and check the
1654 * tests/Makefile.am (TESTS): Updated.
1656 Modernize, improve and/or extend tests `colon*.test.
1657 * tests/colon.test: Rely on the `configure.in' stub created by
1658 `./defs', rather than writing one from scratch. Do not create
1659 a useless dummy file. Add trailing `:' command.
1660 * tests/colon4.test: Enable the `errexit' shell flag, and
1661 related changes. Rely on the `configure.in' stub created by
1662 `./defs', rather than writing one from scratch.
1663 * tests/colon7.test: Enable `errexit' shell flag, and related
1664 changes. Improve the generated `configure.in' file. Add
1665 trailing `:' command.
1666 * tests/colon2.test: Likewise. Also, add some new checks.
1667 * tests/colon5.test: Improve the generated `configure.in' file.
1668 Add new, much deeper checks. Add trailing `:' command.
1669 * tests/colon6.test: Likewise.
1670 * tests/colon3.test: Add trailing `:' command. Remove useless
1671 comments and echos. Improve the generated `configure.in' file.
1672 make some grepping tests stricter. Add a "FIXME" comments about
1673 planned improvements.
1675 Improve and extend tests `asm*.test'.
1676 * tests/asm.test: Use configure.in stub generated by ./defs,
1677 and avoid obsoleted autoconf constructs. Make grepping of
1678 Automake stderr stricter. Do not create useless source file.
1679 Improve verbose messages. Minor cosmetic changes. Tell to
1680 keep it in sync with other sister tests asm*.test.
1681 * tests/asm2.test: Likewise.
1682 * tests/asm3.test: Likewise.
1684 Modernize, improve and/or extend test scripts `conf*.test'.
1685 * tests/confh5.test: Cosmetic changes.
1686 * tests/conff.test: Likewise.
1687 * tests/confdeps.test: Likewise.
1688 * tests/conflnk.test: Likewise.
1689 * tests/conflnk2.test: Likewise.
1690 * tests/confsub.test: Likewise.
1691 * tests/confvar.test: Likewise, and make grepping of Makefile.in
1693 * tests/confvar2.test: Likewise.
1694 * tests/conflnk3.test: Cosmetic changes. Re-enable a temporarily
1695 disabled test (which didn't work with autoconf <= 2.59, but now we
1696 are requiring autoconf 2.62, so...)
1697 * tests/conflnk4.test: Cosmetic changes, and extend existing tests
1698 accordingly to "TODO" comments.
1699 * tests/conff2.test: Make grepping of Automake's stderr stricter.
1700 Add some comments explaining why we don't use the `configure.in'
1701 stub preset be ./defs.
1702 * tests/confh.test: Use the `configure.in' stub created by ./defs,
1703 rather than writing one from scratch, and do not call AC_OUTPUT.
1704 Enable `errexit' shell flag, and related changes. Prefer diff over
1705 cmp to compare text files. Prefer perl over sed to fetch the value
1706 of $(DIST_COMMON) from Makefile.in. Make grepping of the contents
1707 of $(DIST_COMMON) stricter.
1708 * tests/confh4.test: Use the `configure.in' stub created by ./defs,
1709 rather than writing one from scratch. Make grepping of Makefile.in
1711 * tests/confh5.test: Make grepping of `config.h' stricter. Add a
1713 * tests/configure.test: Avoid obsolescent constructs in generated
1714 `configure.ac'. Do not write `configure.in' two times. Escape
1715 literal dots in grep regular expressions.
1716 * tests/confincl.test: Enable `errexit' shell flag, and related
1717 changes. Prefer fgrep over grep. Other cosmetic changes.
1718 * tests/config.test: Renamed to ...
1719 * tests/confh6.test: ... this. Fix m4 quoting in `configure.in',
1720 and make grepping of `config.h' and `config.h.in' stricter.
1721 * tests/conf2.test: Renamed ...
1722 * tests/confh7.test: ... to this. Use the `configure.in' stub
1723 created by ./defs, rather than writing one from scratch. Try to
1724 run the checks both with and without AC_PROG_CC and AC_OUTPUT in
1726 * tests/Makefile.am (TESTS): Updated.
1728 Minor improvements and fixes in tests `depcomp*.test'.
1729 * tests/depcomp.test: Do not create useless dummy source files.
1730 Add a trailing `:' command.
1731 * tests/depcomp2.test: Use `unset' on the CFLAG variable to ensure
1732 it's not in in the environment, rather than exporting it with an
1733 empty value. Do not pass CC=gcc to configure, as that's already
1734 done in ./defs since we have gcc in $required. Ensure verbose
1735 printing of captured stderr, and normalize its checking. Add a
1736 trailing `:' command.
1737 * tests/depcomp3.test: Quote literal dots and dollar characters in
1738 grep regexps. Always use `: >' rather than `touch' to create empty
1739 files. Explicitly declare phony targets as such in the created
1740 Makefile.am. Add a trailing `:' command.
1741 * tests/depcomp4.test: Quote literal dots and dollar characters in
1742 grep regexp. Explicitly declare phony targets as such in the
1743 created Makefile.am. Ensure verbose printing of captured makes'
1744 stoud/stderr. Add a trailing `:' command.
1745 * tests/depcomp5.test: Move setting of `errexit' shell flag earlier
1746 in the script (just after inclusion of ./defs). Quote literal dots
1747 and dollar characters in grep regexps. Explicitly declare phony
1748 targets as such in the created Makefile.am. Add a trailing `:'
1750 * tests/depcomp6.test: Consistently use m4 quoting in the generated
1751 configure.in. Cosmetic fixes to spacing. Make the "dummy" `if'
1752 statement required by OpenBSD's sh `set -e' more robust, and add
1753 explanatory comments to it.
1754 * tests/depcomp7.test: Likewise, and add a trailing `:' command.
1756 Separate failing part of test `all.test'.
1757 * tests/all.test: Keep only (x)failing part of the test. Working
1758 checks moved out to ...
1759 * tests/all2.test: ... this new test.
1760 * tests/Makefile.am (TESTS): Updated.
1762 Modernize, improve and extend tests `subobj*.test'.
1763 * tests/subobjname.test: Add trailing `:' command.
1764 * tests/subobj.test: Make grepping of `Makefile.in' stricter.
1765 Escape literal dots in grep regexps.
1766 * tests/subobj2.test: Add trailing `:' command. Do not use the
1767 unportable fgrep option `-e'.
1768 * tests/subobj3.test: Add trailing `:' command.
1769 (configure.in): Use proper m4 quoting, and avoid obsolescent
1771 * tests/subobj8.test: Likewise. Also, enable `errexit' shell
1772 flag, with related changes
1773 * tests/subobj4.test: Likewise. Also, make grepping of
1774 `Makefile.in' stricter.
1775 * tests/subobj5.test: Add trailing `:' command. Move setting of
1776 `errexit' shell flag earlier in the script (just after inclusion
1778 (configure.in): Use the stub created by `./defs', rather than
1779 writing it from scratch, and avoid obsolescent constructs.
1780 * tests/subobj6.test: Add trailing `:' command. Move setting of
1781 `errexit' shell flag earlier in the script (just after inclusion
1782 of ./defs). Do not create useless dummy ac-init file `f'.
1783 * tests/subobj7.test: Do not create useless dummy ac-init file
1785 (configure.in): Use the stub created by `./defs', rather than
1786 writing it from scratch, and avoid obsolescent constructs.
1787 * tests/subobj9.test: Move setting of `errexit' shell flag earlier
1788 in the script (just after inclusion of ./defs). Fail the test if
1789 `make distcheck' fails. Ensure verbose printing of captured make
1790 stdout. Avoid useless fork by doing simple grep instead of using
1791 test -n "`COMMAND | grep ...`".
1792 (configure.in): Normalize the call to AC_INIT w.r.t. other tests.
1793 (Makefile.am): Explicitly mark target "print" as phony.
1794 * tests/subobj10.test: Removed duplicated call to `set -e'. Add
1795 trailing `:' command.
1796 (configure.in): Normalize the call to AC_INIT w.r.t. other tests.
1798 Remove a couple of obsoleted tests.
1799 * tests/fpinstall.test: Removed.
1800 * tests/fpinst2.test: Likewise.
1801 * tests/Makefile.am (TESTS): Updated.
1803 Bootstrap: updated HACKING entry.
1804 * HACKING ("Working with git"): Explain how to override the
1805 autoconf and autom4te programs used by the bootstrap process.
1808 * bootstrap: Do not remove `lib/Automake/Config.pm' anymore,
1809 since we don't generate it. Correctly quote arguments of
1810 `eval' builtin. Fixed a botched error message. Removed an
1813 Bootstrap: don't search perl in $PATH.
1814 * bootstrap: Do not explicitly search perl in $PATH anymore.
1815 ($PATH_SEPARATOR): Removed, it's no more needed.
1817 Bootstrap: let the user choose which autoconf to use.
1818 * bootstrap ($AUTOCONF): New variable, from the environment.
1819 ($AUTOM4TE): Likewise, for clarity.
1820 Use "$AUTOCONF" instead of calling "autoconf" directly.
1822 Minor improvements to tests ar*.test.
1823 * tests/ar.test: Add trailing `:' command.
1824 * tests/ar2.test: Likewise, and make grepping of generated
1825 Makefile.in stricter.
1827 2010-08-06 Peter Rosin <peda@lysator.liu.se>
1829 Add new auxiliary 'ar-lib' script, wrapping Microsoft lib.
1830 * lib/ar-lib: New auxiliary script.
1831 * lib/Makefile.am: Add above.
1832 * tests/ar-lib.test: New test.
1833 * tests/Makefile.am: Add above.
1834 * automake.in (@common_files): Distribute the 'ar-lib' script.
1835 * doc/automake.texi (Auxiliary Programs): Mention the new
1837 (Optional): Mention 'ar-lib' in AC_CONFIG_AUX_DIR.
1840 2010-08-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1842 Fix shell pattern negation in compile script.
1843 * lib/compile (func_file_conv): Use `!' not `^' for pattern
1846 2010-08-08 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1848 Fix maintainer-check failure.
1849 * tests/cond5.test: Quote sleep argument, this isn't about
1850 time stamp differences.
1852 Sync auxiliary files from upstream.
1853 * lib/config.guess, lib/config.sub, lib/texinfo.tex:
1856 2010-08-06 Stefano Lattarini <stefano.lattarini@gmail.com>
1858 Work around a nasty bug (segfault) of Solaris make.
1859 * lib/am/check.am (recheck, recheck-html): Trim trailing spaces
1860 from $list, to avoid triggering a nasty bug (potential segfault)
1863 2010-08-06 Peter Rosin <peda@lysator.liu.se>
1865 Make cond5.test more robust on MSYS.
1866 * tests/cond5.test: Add delay before the first kill attempt to
1867 cater for problems with MSYS bash.
1869 2010-08-01 Peter Rosin <peda@lysator.liu.se>
1871 Wrap some MSVC options in the compile script.
1872 * lib/compile: MSVC supports naming the output file, the option
1873 is just not called -o, so transform -o into the appropriate form
1874 for MSVC. Also wrap some other options while at it (-L, -l, -Wl,
1875 -Xlinker and -I) and convert file names to windows form where
1876 needed for those options to make MSVC more usable in an
1877 autotooled environment.
1878 * doc/automake.texi (Auxiliary Programs): Document the above
1879 extension of the compile script.
1881 * tests/defs.in: New required entry 'cl'.
1882 * tests/compile3.test: New test.
1883 * tests/compile4.test: New test.
1884 * tests/compile5.test: New test.
1885 * tests/Makefile.am: Update.
1887 2010-07-31 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1889 Add example git work flow; discuss merge --log in HACKING.
1891 Suggestion by Stefano Lattarini.
1893 Add more hints for debugging make rules.
1894 * doc/automake.texi (Debugging Make Rules): Show command to find
1895 out expanded values of variables; point to makefile debugger.
1897 Prompted by suggestion from Ludovic Courtès and Andy Wingo.
1899 2010-07-27 Patrick Welche <prlw1@cam.ac.uk> (tiny change)
1901 Fix typo in the manual.
1902 * doc/automake.texi (Scripts): Fix typo.
1904 2010-07-27 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1906 Document current policy for development with git.
1907 * HACKING (Working with git): Overhaul.
1908 Prompted by suggestion from Stefano Lattarini.
1910 Fix AM_COND_IF for gone-invalid condition shell expression.
1911 * m4/cond-if.m4 (AM_COND_IF): test contents of $COND_TRUE
1912 variable, rather than re-evaluating the shell expression for
1914 * tests/cond40.test: Extend test.
1917 Avoid syntax error if IF-TRUE part of AM_COND_IF expands empty.
1918 * m4/cond-if.m4 (AM_COND_IF): Ensure IF-TRUE part is never empty
1919 to avoid shell syntax error if the m4 expansion is empty.
1920 * tests/cond40.test: Enhance test.
1922 Coverage: bogus option to AM_INIT_AUTOMAKE.
1923 * tests/init2.test: New test.
1924 * tests/Makefile.am: Update.
1926 2010-07-21 Stefano Lattarini <stefano.lattarini@gmail.com>
1928 Modernize and improve test scripts `subdir*.test'.
1929 * tests/subdir.test: Enable `errexit' shell flag, and related
1930 changes. Use the `configure.in' stub created by `./defs',
1931 rather than writing one from scratch.
1932 * tests/subdir2.test: Likewise.
1933 * tests/subdir4.test: Likewise.
1934 * tests/subdir3.test: Enable `errexit' shell flag, and related
1935 changes. Do not create useless dummy source files.
1936 * tests/subdir5.test: Make grepping of Makefile.in (in topdir
1937 and in subdirs) stricter. Some minor changes to keep it more
1938 in sync with the related test `subdir8.test'.
1939 * tests/subdir8.test: Likewise (but with the related test being
1940 `subdir5.test' here).
1941 * tests/subdir6.test: Cosmetic change in spacing.
1942 * tests/subdir9.test: Define and use new variable `$distdir'. Add
1943 trailing `:' command.
1944 * tests/subdir10.test: Cosmetic consistency-related change.
1945 * tests/subdirbuiltsources.test: Cosmetic changes in spacings.
1946 (configure.in): Use stub created by `./defs', rather than writing
1947 it from scratch. Do not use obsoleted and/or deprecated forms of
1948 autoconf/automake macros.
1950 Modernize and improve test scripts `dist*.test'.
1951 * tests/distcleancheck.test: Do not add useless `-e' option to
1952 a $MAKE call. Extend test by grepping stderr of make.
1953 * tests/distcom2.test: Do not run the same test script on the
1954 Makefile.in twice, but save its output in an intermediate file
1955 instead. Make grepping of DIST_COMMON definition stricter.
1956 Display the content of more files, to ease debugging. Add a
1957 trailing `:' command. Improved heading comments w.r.t. sister
1959 * tests/distcom6.test: Likewise, and avoid to uselessly run
1961 * tests/distcom3.test: Ensure verbose printing of captured stdout
1962 and stderr. Make grepping of captured stderr stricter. Also,
1963 add trailing `:' command.
1964 * tests/distcom4.test: Declare the target `test' in the generated
1965 Makefile.am as `.PHONY'. Display content of more files, to ease
1966 debugging. Add trailing `:' command.
1967 * tests/distcom5.test: Likewise. Also, factor out common sed
1968 script in subroutine `extract_distcommon'.
1969 * tests/distcom7.test: Prefer cat + here-doc over echo to write
1970 test Makefile.am files. Add a trailing `:' command.
1971 * tests/distname.test: Prefer `gzip -d' over `gunzip'. Move the
1972 call to `set -e' earlier. Be stricter and more verbose in the
1973 checking of the generated tarball.
1974 (configure.in): Use the stub provided by ./defs, instead of
1975 writing it from scratch. Avoid obsoleted constructs. Remove
1976 useless call to `AM_PROG_CC_C_O'.
1977 * tests/distdir.test: Various minor improvements/normalizations.
1978 * tests/distlinks.test: Likewise.
1980 2010-07-18 Stefano Lattarini <stefano.lattarini@gmail.com>
1982 Improve and extend test cond5.test.
1983 * tests/cond5.test: Do not blindly sleep 60 seconds before polling
1984 the background automake process, but poll it every 10 seconds for
1985 at most 30 times (this makes the test both faster on good machines,
1986 and more resilient to spurious timeout-due failures when in low
1987 priority or on heavily-loaded systems).
1988 Check also that automake writes the expected error messages on the
1990 Enable `errexit' flag, and related changes.
1991 Rely on the `configure.in' stub created by `./defs', rather than
1992 writing one from scratch.
1994 2010-06-26 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1996 Update program --help output to match current GCS.
1997 * configure.ac: Set and substitute PACKAGE_URL if AC_PACKAGE_URL
1998 is not defined, for compatibility to Autoconf < 2.64.
1999 * Makefile.am (do_subst): Substitute PACKAGE_BUGREPORT and
2001 (sc_diff_automake_in_automake): Update number of diff lines for
2002 additional substitutions.
2003 * aclocal.in (usage): Use PACKAGE_BUGREPORT. Point to Automake
2004 home page and GNU general help page.
2005 * automake.in (usage): Likewise.
2006 * doc/automake.texi: New flag PACKAGE_BUGREPORT, to factor email
2008 (Introduction, Creating amhello, amhello Explained, Options):
2010 * lib/Automake/Makefile.am (do_subst): Substitute
2012 * lib/Automake/Config.in ($PACKAGE_BUGREPORT): New global.
2013 * lib/Automake/ChannelDefs.pm: Use it for footer of fatal
2016 Clean up @var handling in the manual.
2017 * doc/automake.texi: Throughout the manual, lower-case @var
2018 names, replace a few one-character names.
2020 2010-06-26 Stefano Lattarini <stefano.lattarini@gmail.com>
2022 Fix typo-related bug in test script silent5.test.
2023 * tests/silent5.test: Use $EGREP, not $GREP (which is not even
2026 Tests: remove useless repetitions of `foreign' automake option.
2027 * tests/multlib.test (configure.in): Remove useless use of
2028 `foreign' option in AM_INIT_AUTOMAKE (the `--foreign' option is
2029 already in $AUTOMAKE by default, so no point in repeating it).
2030 * tests/subobj10.test: Likewise.
2031 * tests/subobj9.test: Likewise.
2032 * tests/lex3.test (Makefile.am): Similarly, remove useless use
2033 of `foreign' option in AUTOMAKE_OPTIONS.
2034 * tests/lex5.test: Likewise.
2035 * tests/pr279.test: Likewise.
2036 * tests/pr279-2.test: Likewise.
2037 * tests/specflg3.test: Likewise.
2038 * tests/target-cflags.test: Likewise.
2040 Drop useless requirement "gzip" in lex5.test.
2041 * tests/lex5.test ($required): Do not list "gzip", as it's
2044 2010-06-24 Stefano Lattarini <stefano.lattarini@gmail.com>
2046 Fix bugs in test script silent5.test.
2047 * tests/silent5.test: Fixed a nasty bug (due to the use of grep
2048 instead of egrep) that could have led to false negatives.
2050 2010-06-21 Stefano Lattarini <stefano.lattarini@gmail.com>
2052 Add a test checking that distributed broken symlinks cause
2053 `make dist' to fail.
2054 * tests/distlinksbrk.test: New test.
2055 * tests/Makefile.am (TESTS): Updated.
2057 2010-06-21 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2059 Fix minor testsuite issues, update docs, for Yacc/Lex changes.
2060 * doc/automake.texi (Yacc and Lex): Mention AM_YFLAGS, YFLAGS
2061 and AM_LFLAGS, LFLAGS in the order in which they now appear in
2064 * tests/lflags.test, tests/lflags2.test, tests/yflags.test,
2065 tests/yflags2.test: Prefer `make -e' over `make VAR=VAL', to
2066 please maintainer-check. Ensure generated C files contain a
2067 declaration, to please compilers.
2069 2010-06-21 Stefano Lattarini <stefano.lattarini@gmail.com>
2071 Fix bugs in Automake Yacc/Lex support w.r.t. $(AM_FLAGS) and
2072 $(FLAGS) precedence.
2073 * automake.in: Fix registration of languages "Lex", "Lex (C++)",
2074 "Yacc" and "Yacc (C++)", so that $(LFLAGS) has precedence over
2075 $(AM_LFLAGS) and $(YFLAGS) has precedence over $(AM_YFLAGS).
2076 * tests/Makefile.am (XFAIL_TESTS): Updated accordingly.
2079 New tests, exposing bugs in Automake Yacc/Lex support w.r.t.
2080 $(AM_FLAGS) and $(FLAGS) precedence.
2081 * tests/lflags.test: New test, check that user $(LFLAGS) takes
2082 precedence over automake (AM_LFLAGS) and (foo_LFLAGS). Still
2084 * tests/lflags2.test: Likewise.
2085 * tests/yflags.test: New test, check that user $(YFLAGS) takes
2086 precedence over automake (AM_YFLAGS) and (foo_YFLAGS). Still
2088 * tests/yflags2.test: Likewise.
2089 * tests/Makefile.am (TESTS, XFAIL_TESTS): Extended accordingly.
2091 2010-06-20 Stefano Lattarini <stefano.lattarini@gmail.com>
2093 Modernize, improve and extend tests `suffix*.test'.
2094 * tests/suffix3.test: Enable `errexit' shell flag, and related
2096 * tests/suffix4.test: Likewise.
2097 * tests/suffix6.test: Likewise, and do not create a useless dummy
2099 * tests/suffix7.test: Likewise.
2100 * tests/suffix5.test: Enable `errexit' shell flag, and related
2101 changes. Make grepping of Makefile.in slightly stricter.
2102 * tests/suffix.test: Enable `errexit' shell flag, and related
2103 changes. Also, do not redirect grep output to /dev/null, as this
2104 might unmotivatedly hide useful information.
2105 * tests/suffix2.test: Move setting of `errexit' shell flag earlier
2106 in the script (just after inclusion of ./defs). Use a more
2107 idiomatic way to count text occurrences in Makefile.in with
2108 grep. Do not create useless dummy source files.
2109 * tests/suffix10.test: Ensure verbose printing of captured make
2110 stdout. Minor cosmetic changes.
2111 * tests/suffix8.test: Likewise. Also, drop useless call to the
2112 env(1) utility, and make grepping of make output stricter by using
2113 $FGREP rather than plain grep.
2114 * tests/suffix11.test: Likewise.
2115 * tests/suffix12.test: Likewise.
2116 * tests/suffix9.test: Prefer cat + here-doc over echo to append to
2117 the `configure.in' stub. Cosmetic changes.
2118 * tests/suffix13.test: Cosmetic spacing change.
2120 2010-06-13 Stefano Lattarini <stefano.lattarini@gmail.com>
2122 Add useful comment in test script ext.test.
2123 * tests/ext.test: Add a comment explaining why an apparently
2124 useless `if' statement is indeed required.
2126 2010-06-13 Stefano Lattarini <stefano.lattarini@gmail.com>
2128 Add useful comment in test script obsolete.test.
2129 * tests/obsolete.test: Add a comment explaining why we need
2130 an indirection in adding $AUTOUPDATE to $required.
2132 Normalize whitespaces in 'tests/Makefile.am'.
2133 * tests/Makefile.am (TESTS): Use only spaces, not tabs, in the
2134 definition of this variable.
2136 Parallel tests generation: improve comments (tiny change).
2137 * tests/Makefile.am ($(parallel_tests)): Added useful comment to
2140 Tests defs: truly get rid of `$am_defs_included' (unused variable)
2141 * tests/defs.in ($am_defs_included): Remove, its now unused. It
2142 should have been removed in a previous changeset, but the removal
2143 was done only partially (oversight).
2145 2010-06-12 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2147 Remove a couple of unneeded conditionals from tests.
2148 * tests/pr243.test, tests/pr266.test, tests/strip.test: No need
2149 for the FOOTEST conditional.
2151 2010-06-12 Stefano Lattarini <stefano.lattarini@gmail.com>
2153 Modernize, improve and/or fix various test scripts.
2154 * tests/symlink3.test: Deleted, separated into two new, more
2156 * tests/forcemiss.test: ... this one ...
2157 * tests/forcemiss2.test: ... and this one.
2158 * tests/symlink2.test: Enable `errexit' shell flag, make test
2159 stricter, and skip it if symlink creation is not supported.
2160 * tests/postproc.test: Enable `errexit' shell flag, related
2161 changes, and a couple of unrelated cosmetic changes.
2162 * tests/recurs.test: Use the `configure.in' stub created by
2163 `./defs', rather than writing one from scratch. Make grepping
2164 of Automake stderr slightly stricter.
2165 * tests/substtarg.test: Likewise.
2166 * tests/strip.test: Likewise, and move the call to `set -e'
2167 earlier (just after the inclusion of `./defs'). Also, make sure
2168 that the script installed by `make install-script' is equal to
2170 * tests/substref.test: Use the `configure.in' stub created by
2171 `./defs', rather than writing one from scratch. Move the call
2172 to `set -e' earlier (just after the inclusion of `./defs').
2173 Avoid to explicitly export CC for configure (that's already done
2174 in ./defs). Avoid potential problems with unpredictable make
2175 output. Finally, make grepping of Makefile.in stricter.
2176 * tests/substre2.test: Ensure verbose printing of the captured
2177 make's output, and make its grepping slightly stricter.
2178 * tests/cygwin32.test: Enable `errexit' shell flag, and related
2179 changes. Also, do not create useless dummy source/data files.
2180 * tests/scripts.test: Likewise.
2181 * tests/recurs2.test: Likewise. Also, use the `configure.in'
2182 stub created by `./defs'.
2183 * tests/Makefile.am (TESTS): Updated.
2185 Modernize, improve and/or fix tests `pluseq*.test.
2186 * tests/pluseq5.test: Append to configure.in using cat with an
2187 here-doc, not using echo.
2188 * tests/pluseq10.test: Make sure that the captured output of
2189 `make' command is always displayed. Where possible, use $FGREP
2190 instead of grep (this change makes some checks slightly stricter).
2191 * tests/pluseq8.test: Enable `errexit' shell flag, with related
2193 * tests/pluseq.test: Likewise. Also, do not create useless dummy
2194 data files, and use better m4 quoting in generated configure.in.
2195 * tests/pluseq2.test: Likewise. Also, append to configure.in
2196 using cat with an here-doc, not using echo.
2197 * tests/pluseq3.test: Likewise.
2198 * tests/pluseq4.test: Likewise.
2199 * tests/pluseq6.test: Likewise.
2200 * tests/pluseq7.test: Do not create useless dummy source file.
2201 * tests/pluseq9.test: Slightly extended w.r.t. the grepping of
2202 Automake stderr. Some unrelated cosmetic changes.
2204 2010-06-12 Stefano Lattarini <stefano.lattarini@gmail.com>
2206 cscope.test: ensure verbose printing of captured stderr.
2207 * tests/cscope.test: Print captured stderr before failing.
2209 2010-06-12 Stefano Lattarini <stefano.lattarini@gmail.com>
2211 Testsuite: ensure verbose printing of captured stderr.
2212 * tests/acloca18.test: Print captured stderr before either failing
2213 or grepping it. Be sure to send captured stderr to stderr, not to
2215 * tests/ansi3b.test: Likewise.
2216 * tests/cond39.test: Likewise.
2217 * tests/configure.test: Likewise.
2218 * tests/missing3.test: Likewise.
2219 * tests/missing6.test: Likewise.
2220 * tests/output-order.test: Likewise.
2221 * tests/pr300-ltlib.test: Likewise.
2222 * tests/python6.test: Likewise.
2223 * tests/python7.test: Likewise.
2224 * tests/python8.test: Likewise.
2225 * tests/python9.test: Likewise.
2226 * tests/subobj.test: Likewise.
2227 * tests/vars3.test: Likewise.
2228 * tests/missing4.test: Likewise, and fix a call to grep not to use
2230 * tests/ansi3.test: Likewise, and rely on the `configure.in' stub
2231 created by `./defs', rather than writing one from scratch.
2233 Enable `errexit' shell flag in various tests.
2234 * tests/backsl.test: Enable the `errexit' shell flag, and
2236 * tests/backsl2.test: Likewise.
2237 * tests/block.test: Likewise.
2238 * tests/canon2.test: Likewise.
2239 * tests/canon4.test: Likewise.
2240 * tests/comment2.test: Likewise.
2241 * tests/condlib.test: Likewise.
2242 * tests/cond15.test: Likewise, and prefer $FGREP over grep.
2243 * tests/canon3.test: Likewise. Also, avoid to create an useless
2245 * tests/acoutpt2.test: Enable the `errexit' shell flag, and some
2246 related changes. Do some cosmetic improvements in the generated
2247 `configure.in' file.
2248 * tests/cond4.test: Likewise.
2249 * tests/cond14.test: Likewise.
2250 * tests/condinc.test: Likewise.
2251 * tests/cond7.test: Likewise. Also, remove useless setting of
2252 AUTOMAKE_OPTIONS to `foreign' in the generated Makefile.am.
2253 * tests/ansi.test: Enable the `errexit' shell flag, and related
2254 changes. Extended, esp. by running autoconf, ./configure and
2255 make, and by looking into the distdir.
2257 2010-06-12 Stefano Lattarini <stefano.lattarini@gmail.com>
2258 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2260 Extend tests/README w.r.t. trailing `:' in test scripts.
2261 * tests/README (section "Writing test cases" subsection "Do"):
2262 Explain why apparently redundant trailing `:' and `Exit 0' in
2263 test scripts can indeed be useful.
2265 2010-06-11 Stefano Lattarini <stefano.lattarini@gmail.com>
2267 Improve determination of PATH separator in bootstrap script.
2268 * bootstrap: Determine what the PATH separator is the same way
2271 Minor improvements in bootstrap script.
2272 * bootstrap: Consistently use two-spaces indentation. Cosmetic
2273 improvement to comments.
2274 ($me): New variable, containing program basename.
2275 Prepend it to all error messages.
2277 Testsuite now works with BSD make in parallel mode.
2278 * tests/defs.in: Unset variables __MKLVL__ and MAKE_JOBS_FIFO,
2279 which are exported by BSD make when run in parallel mode, and
2280 which can confuse make processes spawned by our testsuite.
2281 This change fixes a lot of spurious failure when the testsuite
2282 is run with BSD make in parallel mode.
2284 2010-06-09 Stefano Lattarini <stefano.lattarini@gmail.com>
2286 Modernize, improve and/or fix various test scripts.
2287 * tests/sanity.test: Rely on the `configure.in' stub created by
2288 `./defs', rather than writing one from scratch.
2289 * tests/depend2.test: Likewise. Also, call `set -e' just after
2290 the inclusion of `./defs', instead that later in the script.
2291 * tests/canon5.test: Avoid a useless `|| Exit 1' after a call to
2292 $AUTOMAKE, and improve the positioning of an $ACLOCAL call.
2293 * tests/exeext4.test: Use $FGREP instead of grep, where possible.
2294 Make auxiliary rules in the generated Makefile more silent.
2295 These changes make some checks slightly stricter.
2296 * tests/ext2.test: Call `Exit 1' if inclusion of `./defs' fails.
2297 * tests/gettext2.test: Place final `:' at the end of the script,
2298 rather than in the middle.
2299 * tests/exeext.test: Call `set -e' just after the inclusion of
2300 `./defs', instead that later in the script.
2301 * tests/extra5.test: Likewise.
2302 * tests/confdeps.test: Likewise. Also, prefer `mv -f' over
2303 plain `mv', just to be sure.
2304 * tests/depcomp.test: Enable `errexit' shell flag, with related
2305 changes. Also, modernize the generated configure.in.
2306 * tests/cond9.test: Likewise. Also, rely on the `configure.in'
2307 stub created by `./defs', rather than writing one from scratch.
2308 * tests/cond10.test: Likewise.
2309 * tests/depcomp2.test: Likewise.
2310 * tests/depend3.test: Likewise.
2311 * tests/distcom7.test: Likewise.
2312 * tests/fortdep.test: Likewise. Also, remove definition of
2313 AUTOMAKE_OPTIONS to `foreign' in the generated Makefile.am,
2314 since that flag is already provided by $AUTOMAKE.
2315 * tests/mdate.test: Made stricter, by checking that Automake
2316 actually failed, and by making a stricter grep on the error
2317 message. Also, set shell `errexit flag'.
2318 * tests/python2.test: Improved verbose messages.
2320 Make test `ammissing.test' stricter.
2321 * tests/ammissing.test: Fail if $ACLOCAL succeeds unexpectedly.
2322 Enable `errexit' shell flag.
2324 2010-06-08 Stefano Lattarini <stefano.lattarini@gmail.com>
2325 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2327 Fix error in generation of parallel tests.
2328 * tests/defs.in ($am_skip_defs): New variable, to be used when
2329 ./defs must be sourced multiple times. If set, unset it and
2330 only define $srcdir; otherwise, also go through the rest of
2332 ($am_defs_included): Remove, no more needed.
2333 * tests/Makefile.am ($(parallel_tests)): Update accordingly,
2334 using only $srcdir from defs.
2335 Fixes potential test failures of tests that use $required.
2337 2010-06-08 Stefano Lattarini <stefano.lattarini@gmail.com>
2339 Enable `errexit' shell flag in some test scripts.
2340 * tests/subcond.test: Enabled `errexit' shell flag, and related
2342 * tests/subst.test: Likewise.
2343 * tests/vars.test: Likewise.
2344 * tests/version4.test: Likewise.
2345 * tests/vpath.test: Likewise.
2346 * tests/vtexi2.test: Likewise.
2347 * tests/werror.test: Likewise.
2348 * tests/whoami.test: Likewise.
2349 * tests/tags.test: Likewise, and avoid to crate an useless dummy
2351 * tests/acsilent.test: Likewise, and don't use an easily-avoided
2352 command substitution.
2353 * tests/unused.test: Likewise, and don't use an easily-avoided
2354 command substitution.
2355 * tests/version.test: Likewise, and avoid deprecated constructs
2356 in the generated `configure.in'.
2357 * tests/version2.test: Likewise, and avoid deprecated constructs
2358 in the generated `configure.in'.
2360 2010-06-07 Stefano Lattarini <stefano.lattarini@gmail.com>
2361 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2363 Improve declaration of dependencies in the testsuite.
2364 * tests/Makefile.am (check_SCRIPTS): Remove. Instead, let ...
2365 ($(TEST_LOGS)): ... all test logs depend on the scripts.
2366 * test/gen-parallel-tests: For each parallel test foo-p.test,
2367 let `foo-p.log' also depend on `foo.test', since it is sourced.
2369 2010-06-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2371 Coverage for TAGS_DEPENDENCIES warning.
2372 * tests/tags2.test: New test.
2373 * tests/Makefile.am: Update.
2375 Coverage for use of anachronistic variables.
2376 * tests/oldvars.test: New test.
2377 * tests/Makefile.am: Update.
2379 Testsuite coverage for bogus macro file serial numbers.
2380 * tests/acloca18.test: Also test ill-formed serial numbers
2381 and serial numbers after macro definitions.
2383 Coverage for aclocal diagnosing underquoted macros.
2384 * tests/acloca23.test: New test.
2385 * tests/Makefile.am: Update.
2387 2010-06-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2389 Prefer AUTOMAKE_fails over `$AUTOMAKE | grep' in tests.
2390 * tests/ldadd.test: Enable errexit. Use AUTOMAKE_fails so
2391 the verbose log contains all output.
2392 * tests/mdate.test: Likewise.
2393 Prompted by Stefano Lattarini's change to discover.test.
2395 2010-06-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2397 More minor message fixes.
2398 * aclocal.in (scan_file): Fix recommended info command line.
2399 * automake.in (handle_lib_objects): No need to prepend function
2400 name to prog_error message.
2401 (handle_tags): Add missing word and missing space in error
2403 (handle_dist): Add missing closing single quote in message.
2404 Line-wrap one long message for readability.
2406 2010-06-06 Stefano Lattarini <stefano.lattarini@gmail.com>
2407 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2409 Fix distcheck failure with distributed generated parallel tests.
2410 * tests/Makefile.am ($(parallel_tests)): Cope with $(srcdir)
2411 being different from the value at developer `make dist' time.
2412 * tests/defs.in: Protect against mutiple inclusion, by using ...
2413 ($am_defs_included): ... this new variable.
2414 ($srcdir): Do not compute, but simply define to `@abs_srcdir@'
2415 as substituted by configure.
2416 Report, suggestions and first fix by Ralf Wildenhues, final
2417 patch by Stefano Lattarini.
2419 2010-06-06 Stefano Lattarini <stefano.lattarini@gmail.com>
2421 Improve tests link*.test (enable `errexit' shell flag).
2422 * tests/link_c_cxx.test: Enable `errexit shell flag, and related
2423 changes. Also, do not create useless source files.
2424 * tests/link_dist.test: Likewise.
2425 * tests/link_f90_only.test: Likewise.
2426 * tests/link_f_only.test: Likewise.
2427 * tests/link_fc.test: Likewise.
2428 * tests/link_fccxx.test: Likewise.
2429 * tests/link_fcxx.test: Likewise.
2431 2010-06-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2433 Improve ext.test semantics, avoid OpenBSD sh errexit issue.
2434 * tests/ext.test: Inside shell compound command, use
2435 `if $cmd; then Exit 1; fi' rather than `$cmd && Exit 1', to
2436 fix failure with OpenBSD sh introduced with last patch.
2437 Actually ensure that a rule for .EXT.o is created for each
2438 known extension EXT.
2440 2010-06-06 Stefano Lattarini <stefano.lattarini@gmail.com>
2442 Enable `errexit' shell flag in some test scripts.
2443 * tests/dash.test: Enable `errexit' shell flag, and related
2445 * tests/defun.test: Likewise.
2446 * tests/defun2.test: Likewise.
2447 * tests/dejagnu.test: Likewise.
2448 * tests/double.test: Likewise.
2449 * tests/distcom2.test: Likewise.
2450 * tests/empty2.test: Likewise.
2451 * tests/empty3.test: Likewise.
2452 * tests/empty4.test: Likewise.
2453 * tests/exdir.test: Likewise.
2454 * tests/ext.test: Likewise.
2455 * tests/extra.test: Likewise.
2456 * tests/extra2.test: Likewise.
2457 * tests/extra3.test: Likewise.
2458 * tests/extra4.test: Likewise.
2459 * tests/flibs.test: Likewise.
2460 * tests/fnoc.test: Likewise.
2461 * tests/fo.test: Likewise.
2462 * tests/instexec.test: Likewise.
2463 * tests/ltdeps.test: Likewise.
2464 * tests/nodep.test: Likewise.
2465 * tests/nodepcomp.test: Likewise.
2466 * tests/f90only.test: Likewise, and remove botched/obsoleted
2467 comments and unnecessary commands.
2468 * tests/fonly.test: Likewise, and remove botched/obsoleted
2469 comments and unnecessary commands.
2470 * tests/discover.test: Likewise, and made stricter.
2472 Enable `errexit' shell flag in all tests cxx*.test.
2473 * tests/cxx.test: Enabled `errexit' shell flag, and related
2475 * tests/cxxansi.test: Likewise.
2476 * tests/cxxcpp.test: Likewise.
2477 * tests/cxxlibobj.test: Likewise.
2478 * tests/cxxlink.test: Likewise.
2479 * tests/cxxo.test: Likewise.
2481 Enable `errexit' shell flag in various tests.
2482 * tests/acoutnoq.test: Enabled `errexit' shell flag, and related
2484 * tests/acoutpt.test: Likewise.
2485 * tests/acoutqnl.test: Likewise.
2486 * tests/amassign.test: Likewise.
2487 * tests/ansi2.test: Likewise.
2488 * tests/ansi4.test: Likewise.
2489 * tests/badprog.test: Likewise.
2490 * tests/checkall.test: Likewise.
2491 * tests/clean.test: Likewise.
2492 * tests/colneq2.test: Likewise.
2493 * tests/colon.test: Likewise.
2494 * tests/colon5.test: Likewise.
2495 * tests/colon6.test: Likewise.
2496 * tests/comment.test: Likewise.
2497 * tests/compile_f90_c_cxx.test: Likewise.
2498 * tests/compile_f_c_cxx.test: Likewise.
2499 * tests/cond3.test: Likewise.
2500 * tests/cond6.test: Likewise.
2501 * tests/cond13.test: Likewise.
2502 * tests/conf2.test: Likewise.
2503 * tests/confvar.test: Likewise.
2504 * tests/confvar2.test: Likewise.
2505 * tests/cond8.test: Likewise, plus a cosmetic change.
2506 * tests/confh4.test: Likewise. Also, add in the heading comments
2507 an excerpt from the original bug report which motivated the
2508 creation of this test, to make its purpose clearer.
2510 2010-06-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2512 Rewrite manual to be gender-neutral.
2513 * doc/automake.texi (GNU Build System)
2514 (Standard Directory Variables, General Operation, CVS)
2515 (Hard-Coded Install Paths, Dependencies As Side Effects):
2516 Rewrite text to not contain gender-specific pronouns when
2517 speaking about developers or users, either by avoiding pronouns
2518 or by addressing them as `you' instead.
2520 Report by Christina Gratorp.
2524 2010-06-06 Stefano Lattarini <stefano.lattarini@gmail.com>
2526 Tiny fix in silent8.test (display output of `make' command).
2527 * tests/silent8.test: Make sure that the captured output of `make'
2528 command is always displayed.
2530 Make tests on user extensibility of silent-rules mode stricter.
2531 * tests/silent6.test: Made stricter w.r.t. the grepping of the
2532 output produced by `make'.
2533 * tests/silent7.test: Likewise.
2535 Tests on silent-mode for C/Libtool made stricter.
2536 * tests/silent.test: Made stricter w.r.t. the grepping of the
2537 output produced by `make'.
2538 * tests/silent2.test: Likewise.
2539 * tests/silent4.test: Likewise.
2540 * tests/silent9.test: Likewise.
2541 * tests/silent3.test: Likewise, and add a final `make distclean'
2542 command to keep it better in sync with tests/silent{4,9}.test.
2544 Improved test silent5.test.
2545 * tests/silent5.test: Remove by hand all generated C files after
2546 non-verbose builds, to ensure the following builds are clean.
2547 Try to clean and rebuild with the same verbosity and without
2548 removing generated sources in between, to check that this does
2549 not trigger a different set of rules. Make grepping of make's
2550 output stricter. Improved/added some comments.
2552 New tests for Automake silent-mode with Fortran.
2553 * tests/silentf77.test: New test.
2554 * tests/silentf90.test: Likewise.
2555 * tests/Makefile.am (TESTS): Updated accordingly.
2557 New test `silentcxx.test' (Automake silent-mode with C++).
2558 * tests/silentcxx.test: New test.
2559 * tests/Makefile.am (TESTS): Updated accordingly.
2561 New test `silentyacc.test' (Automake silent-mode with Yacc).
2562 * tests/silentyacc.test: New test.
2563 * tests/Makefile.am (TESTS): Updated accordingly.
2565 New test `silentlex.test' (Automake silent-mode with Lex).
2566 * tests/silentlex.test: New test.
2567 * tests/Makefile.am (TESTS): Updated accordingly.
2569 Relax tests on silent-rules to cater to overly verbose makes.
2570 * tests/silent.test: When testing silent builds, don't fail if
2571 make's output simply contains the `mv' substring, but only if
2572 it contains the `mv ' substring (note the trailing space).
2573 * tests/silent2.test: Likewise.
2574 * tests/silent3.test: Likewise.
2575 * tests/silent4.test: Likewise.
2576 * tests/silent5.test: Likewise.
2577 * tests/silent9.test: Likewise.
2579 2010-05-23 Stefano Lattarini <stefano.lattarini@gmail.com>
2581 Extend test on `nostdinc' automake option.
2582 * tests/nostdinc.test: Enable `errexit' shell flag. Related and
2583 unrelated minor changes. Make the grepping of the generated
2584 Makefile.in slightly stricter. Generate and run configure, so that
2585 the generated Makefile can be grepped too.
2587 2010-05-23 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2589 Make gnupload portable to EBCDIC hosts.
2590 * lib/gnupload: Use literal newline as argument for 'tr' rather
2591 than \015, for EBCDIC hosts. Also, avoid unportable nested
2592 double-quotes and backquotes.
2594 Report from Eric Blake and Steve Goetze via gnulib.
2596 2010-05-23 Stefano Lattarini <stefano.lattarini@gmail.com>
2598 Fix Autoconf version required by Automake's configure.
2599 Automake configure script used to tell that automake required
2600 autoconf 2.60 or later, but then it checked for autoconf >= 2.62,
2601 and if that was not found, it gave an error saying that Automake
2602 required configure 2.61a-341 or later. This change should
2603 eliminate such inconsistencies.
2604 * configure.ac ($required_autoconf_version): New variable.
2607 2010-05-23 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2609 Fix truncated comment in Makefile.am.
2610 * Makefile.am (sc_tests_logs_duplicate_prefixes): Fix unfinished
2611 sentence in comment.
2612 Report by Stefano Lattarini.
2614 Relax silent8.test for NetBSD make.
2615 * tests/silent8.test: Accept ./foo.info in output as well.
2617 Fix unportable sed script in maintainer-check test.
2618 * Makefile.am (sc_tests_Exit_not_exit): Rewrite sed script to
2619 not contain semicolon after 'b' or brace commands, for NetBSD.
2621 Wildcards are not portable to NetBSD make.
2622 * doc/automake.texi (Wildcards): Document portability issue.
2623 * tests/extra10.test, tests/extra11.test, tests/extra12.test:
2626 2010-05-23 Stefano Lattarini <stefano.lattarini@gmail.com>
2628 Make test for configure.in vs. configure.ac stricter.
2629 * tests/configure.test: Use a configure.in file that provokes
2630 an automake error, to ensure configure.ac is preferred.
2632 Avoid possible false negatives in dejagnu7.test.
2633 * tests/dejagnu7.test: Enable shell `errexit' flag. Also, avoid
2634 unportable use of fgrep option `-e'.
2636 Fix conflnk3.test to work with Solaris/Heirloom Sh.
2637 * tests/conflnk3.test: Use `test -r FILE' and `test ! -r FILE'
2638 instead of respectively `test -e FILE' and `test ! -e FILE',
2639 since Solaris Sh doesn't grok the latter. Do not SKIP the test
2640 if the shell doesn't support `test -e'.
2642 2010-04-25 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2644 Warning and error message formatting cleanups.
2645 * aclocal.in (parse_arguments, main): Remove trailing period or
2646 newline in error or warning messages, avoid capitalization of
2647 the first word of a message.
2648 * automake.in (check_user_variables, handle_languages)
2649 (handle_ltlibraries, scan_aclocal_m4, scan_autoconf_config_files)
2650 (scan_autoconf_files, cond_stack_if, require_file_internal)
2651 (usage, generate_makefile, parse_arguments): Likewise.
2652 * lib/Automake/ChannelDefs.pm (set_strictness): Likewise.
2653 * lib/Automake/Configure_ac.pm (find_configure_ac): Likewise.
2654 * lib/Automake/Options.pm (set_strictness): Likewise.
2655 * lib/Automake/Rule.pm (define): Likewise.
2656 * lib/Automake/Variable.pm (define, variables_dump): Likewise.
2657 * tests/ltinstloc.test, tests/suffix11.test: Adjust expected
2659 * lib/Automake/Channels.pm (setup_channel): Reword error message
2660 to be the same as in msg.
2662 Fix placing of ellipses in English text and synopses.
2663 * Makefile.am: Be sure to add a space before `...' in natural
2665 * automake.in (scan_autoconf_traces): Likewise.
2666 * lib/Automake/Rule.pm (define): Likewise.
2667 * lib/Automake/Variable.pm (define): Likewise.
2668 * lib/am/dejagnu.am: Likewise.
2669 * lib/am/progs.am: Likewise.
2670 * lib/gnupload (dprint, upload): Likewise.
2671 * tests/confdeps.test: Likewise.
2672 * tests/location.test: Adjust expected output.
2673 * automake.in (usage): In synopsis, use singular for OPTION,
2674 * remove space before ellipsis.
2675 * aclocal.in (usage): Likewise. Also, fix indentation.
2677 Fix more duplicate message prefixes.
2678 * lib/Automake/XFile.pm (seek): Do not prepend $me.
2679 ($me): Remove now-unused package-global.
2680 * aclocal.in (check_acinclude): Remove duplicate 'warning: '
2684 * doc/automake.texi (Simple Tests using parallel-tests): Add
2685 missing closing parenthesis.
2687 Fix leftover call to removed function macros_dump.
2688 * automake.in (read_main_am_file): Call variables_dump, not
2689 macros_dump. Print actual error before list of variables.
2691 2010-04-22 Stefano Lattarini <stefano.lattarini@gmail.com>
2693 Minor improvements in comments of test `silent3.test'.
2694 * tests/silent3.test: Tell to keep it in sync with `silent9.test'
2697 2010-04-25 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2699 testsuite: ensure verbose printing of captured output.
2700 * tests/acloca14.test, tests/acloca18.test, tests/aclocal.test,
2701 tests/fort2.test, tests/help.test, tests/missing3.test,
2702 tests/missing6.test: Print captured stdout or stderr before
2705 2010-04-20 Stefano Lattarini <stefano.lattarini@gmail.com>
2707 Make test badopt.test stricter (by enabling `set -e').
2708 * tests/badopt.test: Add call to `set -e'. Due to this change,
2709 an unexpected failure in the call to `$ACLOCAL' (whose outcome
2710 was previously unchecked) would cause the whole test to fail.
2711 Also, bumped the copyright years.
2713 Make test for configure.in vs. configure.ac stricter.
2714 * tests/configure.test: Use a configure.in file that provokes
2715 an automake error, to ensure configure.ac is preferred.
2717 Use `set -e' in confsub.test (avoids possible false negatives).
2718 * tests/confsub.test: Enable shell `errexit' flag, and related
2719 changes (this helps avoiding some possible minor false negatives).
2720 Also, bumped copyright years.
2722 2010-04-20 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2724 Fix -Werror handling for presence of configure.in and configure.ac.
2725 * lib/Automake/Variable.pm (Automake::Variable): Do not initialize
2726 $configure_ac at the global level, before command-line arguments
2728 (require_variables): Initialize it here.
2729 * tests/configure.test: New test.
2730 * tests/Makefile.am: Update.
2731 Report by Stefano Lattarini.
2733 2010-04-20 Stefano Lattarini <stefano.lattarini@gmail.com>
2735 Avoid possible false negatives in confh5.test.
2736 * tests/confh5.test: Enable shell `errexit' flag, and bumped
2737 copyright years. Due to this change, any unexpected failure
2738 in calls to $ACLOCAL, $AUTOMAKE, $AUTOCONF or $AUTOHEADER, or
2739 a failure in grepping expected text in output files should now
2740 cause the whole test to fail.
2742 2010-04-17 Stefano Lattarini <stefano.lattarini@gmail.com>
2744 Fixed typo in POD documentation of Automake::Channels.
2745 * lib/Automake/Channels.pm: Fixed typo in POD documentation:
2746 @<...> was used instead of C<...>.
2748 2010-04-14 Stefano Lattarini <stefano.lattarini@gmail.com>
2750 Refactor tests on Automake TESTS color output.
2751 * tests/color.test: Tests using the expect program moved out to...
2752 * tests/color2.test: ... this new file.
2753 * tests/Makefile.am (TESTS): Extended accordingly.
2755 2010-04-12 Stefano Lattarini <stefano.lattarini@gmail.com>
2757 Fix typos in comments in test confh5.test
2758 * tests/confh5.test: Fix a couple of typos in comments.
2760 Avoid possible false negatives in canon-name.test.
2761 * tests/canon-name.test: Enable shell `errexit' flag. Improve
2764 2010-04-11 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2766 Print 'warnings are treated as errors' note if needed.
2767 * lib/Automake/Channels.pm: Fix typo in comment.
2768 (_print_message): If -Werror is enabled, print a 'warnings are
2769 treated as errors' note before the first such warning.
2770 * tests/warnopts.test: Adjust comment to mention expected warning.
2771 Adjust code to ignore 'warnings are treated as errors' note.
2772 * tests/location.test: Adjust expected output with -Werror.
2773 * tests/werror4.test: New test.
2774 * tests/Makefile.am: Update.
2777 Ensure we don't print 'warning:' or 'error:' twice.
2778 * Makefile.am (sc_ensure_testsuite_has_run): New helper rule.
2779 (sc_tests_logs_duplicate_prefixes): New rule, to check for
2780 wrong-looking warning and error messages in the test suite logs.
2781 * aclocal.in (scan_configure_dep, scan_file): Remove duplicate
2783 * tests/vars3.test: Rename variable to avoid false positive.
2785 Prepend type to warning, error, and fatal messages.
2786 For the first part of messages of types `error' or `fatal',
2787 prepend `error: ' to the message. Prepend `warning: ' to
2788 warning messages, whatever the setting of -Werror.
2789 * lib/Automake/Channels.pm (partial): Move up definition.
2790 (_format_message): Emit `header' and `footer' strings only with
2791 the first resp. last part of a set of partial messages.
2792 * lib/Automake/ChannelDefs.pm: Add missing '1;' statement at the
2794 (Automake::ChannelDefs): Setup warning channels with header
2795 `warning: ', error and fatal messages with header `error: '.
2796 * tests/condinc2.test, tests/ltinstloc.test: Adjust expected
2798 * tests/comment5.test: Likewise. Also, include stack notes
2799 should not start with `error:'.
2800 * tests/location.test: Likewise. Also, try both -Werror and
2803 Report by Bruno Haible.
2805 Fix capitalization of error messages, reword one message.
2806 * lib/Automake/Variable.pm (define): Do not capitalize the first
2807 word in the error message.
2808 * automake.in (require_file_internal): Likewise. Also, reword
2809 and line-wrap for better readability.
2810 * tests/distcom7.test, tests/pluseq5.test, tests/pluseq9.test:
2813 Fix connected warnings about obsolete exeext override.
2814 * lib/Automake/Rule.pm (define): Merge two warnings that belong
2815 together, by setting the 'partial' flag for the first one.
2817 Fix per-Makefile.am setting of -Werror.
2818 Before this patch, 'AUTOMAKE_OPTIONS = -Werror' in one
2819 Makefile.am would carry over to other Makefile.am files
2820 treated afterwards by the same thread, causing inconsistent
2821 and unstable exit status values.
2822 * lib/Automake/Channels.pm (dup_channel_setup)
2823 (drop_channel_setup): Save and restore the setting of
2824 $warnings_are_errors.
2825 * tests/werror3.test: New test.
2826 * tests/Makefile.am: Adjust.
2829 2010-04-11 Stefano Lattarini <stefano.lattarini@gmail.com>
2831 Bugfix in confh5.test w.r.t. Solaris/Heirloom Sh.
2832 * tests/confh5.test: In the generated Makefile.am: do not use
2833 `test ! -e FILE' to check for the non-existence of a file, since
2834 that is not supported by Solaris/Heirloom Sh.
2836 Make test `aclocal3.test' stricter.
2837 * tests/aclocal3.test: Add call to `set -e'. Fail if $ACLOCAL
2838 succeds unexpectedly.
2840 Add tests checking that symlinks are resolved by `make dist'.
2841 * tests/distlinks.test: New test.
2842 * tests/Makefile.am (TESTS): Updated accordingly.
2843 Suggested by observations from Ralf Wildenhues.
2845 2010-04-11 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2847 Use -9 for maximum xz compression with dist-xz.
2848 * lib/am/distdir.am (dist-xz, dist, dist-all): Pass -9 to xz.
2849 * NEWS, THANKS: Update.
2850 Report by Pavel Sanda.
2852 2010-04-11 Stefano Lattarini <stefano.lattarini@gmail.com>
2854 Avoid possible false negatives in cond46.test.
2855 * tests/cond46.test: Enable shell `errexit' flag (and bumped
2856 copyright years). Due to this change, the testcase should now
2857 fail on unexpected failures in calls to $ACLOCAL/$AUTOMAKE (whose
2858 outcomes were previously unchecked), and on failures in grepping
2859 the expected diagnostic in Automake stderr.
2861 2010-04-04 Stefano Lattarini <stefano.lattarini@gmail.com>
2863 Generated tests are now just a thin layer around other tests.
2864 * tests/Makefile.am: Rewrite the rule to generate the `*-p.test'
2865 test scripts so that any of them simply includes the corresponding
2866 `*.test' script (after setting `$parallel_tests' to `yes').
2867 * tests/.gitignore: Add wildcard for temporary files used in the
2868 generation of `*-p.test' tests.
2870 2010-03-30 Stefano Lattarini <stefano.lattarini@gmail.com>
2872 Avoid an unportable use of `$status' shell variable.
2873 * Makefile.am (path-check): Don't use the `$status' shell variable
2874 in the target's rules, as it's special in Zsh (equivalent to `$?',
2877 Avoid another use of `chmod -R'.
2878 * Makefile.am (path-check): To be safe, do not use `chmod -R' on
2879 $(distdir) before removing it (as Solaris `chmod -R' touches
2880 symlink targets). Instead, use the cleanup strategy used in
2883 2010-03-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2885 Remove uses of @acronym and @sc.
2886 * doc/automake.texi (Public Macros, Limitations on File Names):
2887 Remove all usage of @acronym and @sc in the manual.
2888 Suggested by Karl Berry.
2890 2010-03-13 Karl Berry <karl@freefriends.org>
2892 GNU hello uses fdl.texi, not gpl.texi.
2893 * doc/automake.texi (Texinfo): Adjust example to upstream
2896 2010-03-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2898 Formatting cleanups in macro comments.
2899 * automake.in, lib/Automake/Channels.pm,
2900 lib/Automake/FileUtils.pm, lib/Automake/Options.pm,
2901 lib/Automake/Variable.pm, lib/Automake/XFile.pm,
2902 m4/options.m4, m4/substnot.m4: Fix macro comment format.
2904 2010-03-04 Stefano Lattarini <stefano.lattarini@gmail.com>
2905 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2907 Avoid generation of `tests/defs-p' file.
2908 * tests/defs.in: In the generated `configure.in' snippet: call
2909 `AM_INIT_AUTOMAKE' with the `parallel-tests' option if the shell
2910 variable `parallel_tests' is set to `yes'.
2911 * tests/Makefile.am (defs-p): Target removed.
2912 (check_SCRIPTS): Removed `defs-p'.
2913 (clean-local-check): Do not unlink `defs-p' anymore.
2914 ($(parallel_tests)): Transformation rules for the test scripts
2916 * tests/gen-parallel-tests: Selection rules for the test
2918 * tests/parallel-tests.test: Set `$parallel_tests' to `yes'
2919 then include `./defs' (rather than simply including `./defs-p').
2920 * tests/parallel-tests2.test: Likewise.
2921 * tests/parallel-tests3.test: Likewise.
2922 * tests/parallel-tests4.test: Likewise.
2923 * tests/parallel-tests5.test: Likewise.
2924 * tests/parallel-tests6.test: Likewise.
2925 * tests/parallel-tests7.test: Likewise.
2926 * tests/parallel-tests8.test: Likewise.
2927 * tests/parallel-tests9.test: Likewise.
2928 * tests/parallel-tests10.test: Likewise.
2929 * tests/README (Section "Writing Test Cases" subsection "Do"):
2930 Adjusted the parts referring to tests checking `parallel-tests'
2931 behaviour. Some other minor related improvements.
2932 * tests/.gitignore (defs-p): Removed.
2934 2010-03-04 Stefano Lattarini <stefano.lattarini@gmail.com>
2936 Remove redundant unset of variable TESTS from some test scripts.
2937 * tests/color.test: Do not unset the `TESTS' variable, as it's
2938 already unset in the `defs' file.
2939 * tests/check5.test: Likewise.
2940 * tests/check8.test: Likewise.
2941 * tests/check9.test: Likewise.
2942 * tests/check10.test: Likewise.
2943 * tests/check11.test: Likewise.
2944 * tests/parallel-tests.test: Likewise.
2945 * tests/parallel-tests3.test: Likewise.
2946 * tests/parallel-tests4.test: Likewise.
2947 * tests/parallel-tests5.test: Likewise.
2948 * tests/parallel-tests6.test: Likewise.
2949 * tests/parallel-tests7.test: Likewise.
2951 2010-03-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2953 Fix cscope test on systems without working Fortran compiler.
2954 * tests/cscope.test: Skip remainder of test if `$MAKE all' fails.
2956 Report by Peter Johansson.
2958 2010-02-24 Antonio Diaz Diaz <ant_diaz@teleline.es> (tiny change)
2959 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2961 Add lzip compression support.
2962 * automake.in (handle_dist): Recognize dist-lzip.
2963 (make_paragraphs): Map LZIP to dist-lzip.
2964 * doc/automake.texi (Dist): Add dist-lzip.
2965 (Options): Likewise.
2966 * lib/Automake/Options.pm (_process_option_list): Add dist-lzip.
2968 (dist dist-all): Add command to create an lzip-compressed tarball.
2969 (distcheck): Handle lzip-compressed tarballs just like the others.
2970 * tests/defs.in: Test for lzip, too.
2971 * tests/lzip.test: New file, based on nogzip.test.
2972 * tests/Makefile.am (TESTS): Add lzip.test.
2975 2010-02-22 Karl Berry <karl@gnu.org>
2977 Improve help message of mdate-sh.
2978 * mdate-sh: mention actual output format in help message.
2980 2010-02-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2982 Deprecate dist-lzma in favor of dist-xz.
2983 * doc/automake.texi (The Types of Distributions, Options):
2984 Adjust text to reflect renaming of lzma to xz.
2986 Missing deprecation noted by Antonio Diaz Diaz.
2988 2010-02-20 Stefano Lattarini <stefano.lattarini@gmail.com>
2990 Add tests about support of wildcards in EXTRA_DIST.
2991 * tests/extra10.test: New test, check basic support of wildcards
2993 * tests/extra11.test: New test, check more complex usage of
2994 wildcards in EXTRA_DIST.
2995 * tests/extra12.test: New test, check usage of wildcards in
2996 EXTRA_DIST when $builddir != $srcdir.
2997 * tests/Makefile.am (TESTS): Updated accordingly.
2998 Necessity of these new tests suggested by Braden McDaniel
2999 and Ralf Wildenhues.
3001 2010-02-08 Simon Josefsson <simon@josefsson.org>
3003 Fix copyright statement in gnupload script.
3004 * lib/gnupload: Fix copyright statement.
3006 2010-02-06 Dmitry V. Levin <ldv@altlinux.org> (tiny change)
3007 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3009 Fix exit status of signal handlers in shell scripts.
3010 The value of `$?' on entrance to signal handlers in shell scripts
3011 cannot be relied upon, so set the exit code explicitly to
3013 * lib/am/check.am (am__check_pre): Use `exit 143' in signal handler.
3014 * lib/elisp-comp: Likewise.
3015 * lib/install-sh: Likewise.
3016 * lib/ylwrap: Likewise. Also, fix script to trap signal 13, not 3.
3017 * NEWS, THANKS: Update.
3018 Bug report, analysis, and initial patch by Dmitry V. Levin.
3020 2010-02-06 Karl Berry <karl@gnu.org>
3022 Improve gnupload usage text.
3023 * gnupload (usage): Shorten to make more likely to fit on a tty
3024 line. Mention CMD in the synopsis. With ..., plural is implied.
3026 2010-01-28 Christos Kontas <xakon@yahoo.com> (tiny change)
3028 Fix some typos in the manual
3029 * doc/automake.texi (Nested Packages, Rebuilding): Fix typos.
3031 2010-01-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3033 Fix silent-rules output for disabled dependency tracking.
3034 * lib/am/depend2.am [!%FASTDEP%]: Rework silent-rules variable
3035 expansion code to also work in the case where %AMDEP% expands
3036 to FALSE at config.status time, using new substitution string
3038 * automake.in (verbose_nodep_flag): New function, appending
3039 `@am__nodep@' to the verbose-variable name.
3040 (handle_languages): If dependencies are not disabled, use it to
3041 set %VERBOSE-NODEP%.
3042 * m4/depend.m4: Substitute am__nodep as '_no', so the second
3043 verbose-variable will always expand to an empty string, if
3044 dependencies are enabled.
3045 * tests/silent5.test: Also test --disable-dependency-tracking;
3046 also test per-target flags for non-C language files.
3047 * tests/silent9.test: New test, like silent4.test but disable
3048 dependency tracking.
3049 * tests/Makefile.am: Adjust.
3050 * NEWS, THANKS: Update.
3051 Report by Dmitry V. Levin <ldv@altlinux.org>.
3053 2010-01-17 Stefano Lattarini <stefano.lattarini@gmail.com>
3055 Slighty improve tests acoutbs.test and acoutbs2.test.
3056 * tests/acoutbs2.test: Enable `errexit' shell flag. Check that
3057 autoconf and configure work, that the file `zot' is created by
3058 configure, and that no file containing a backslash in its name is
3060 * tests/acoutbs.test: Likewise, plus updated copyright years.
3062 Fix test acoutbs2.test.
3063 * tests/acoutbs2: In the generated configure.in: add proper calls
3064 to AC_INIT and AM_INIT_AUTOMAKE, and remove explicit definition of
3065 PACKAGE and VERSION. Add a call to aclocal before calling automake.
3066 Updated copyright years.
3067 * tests/Makefile.am (XFAIL_TESTS): Removed acoutbs2.test.
3069 Add forgotten test scripts to $(TESTS).
3070 * tests/Makefile.am (TESTS): Added test scripts present on the
3071 filesystem, which were erroneously left out from $(TESTS):
3072 acoutbs2.test, badopt.test, extra2.test.
3073 (XFAIL_TESTS): Added acoutbs2.test.
3075 2010-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3077 Sync auxiliary files from upstream.
3078 * INSTALL, lib/INSTALL, lib/config.guess, lib/config.sub:
3081 Bump copyright years.
3082 * aclocal.in (write_aclocal, version): Bump copyright years.
3083 * automake.in (gen_copyright, version): Likewise.
3084 * doc/automake.texi: Likewise.
3087 * ChangeLog.09: New file, rotated from ...
3088 * ChangeLog: ... here.
3089 * Makefile.am (EXTRA_DIST): Distribute ChangeLog.09.
3093 Copyright (C) 2010 Free Software Foundation, Inc.
3095 Copying and distribution of this file, with or without modification, are
3096 permitted provided the copyright notice and this notice are preserved.