Log

Author Commit Date CI Message
Stefano Lattarini 082028c1 2011-02-21T14:57:24 tests: add testcases sanity-checking the testsuite Helper subroutines, variables and other pieces of code defined in the `tests/defs' and used by many testcases are non-obvious, and tricky to get to work portably; but until now, they weren't tested at all in a clear and self-contained way. This change should remedy to the situation. * tests/self-check-cleanup.test: New test, check removal of temporary test working directory by `./defs'. * tests/self-check-dir.test: New test, check that tests using `./defs' create a proper temporary directory, and run in it. * tests/self-check-exit.test: New test, check that, in case of failing commands, the correct exit status is passed to the exit trap installed by the `./defs' script. * tests/self-check-is_newest.test: New test, checking the `is_newest' subroutine. * tests/self-check-me.test: New test, checking that $me gets defined automatically by `tests/defs' if not set, and that it can be overridden from either the shell or the environment. * tests/self-check-sanity.test: New test, check that the sanity checks performed by the `tests/defs' script works correctly. * tests/self-check-unindent.test: New test, checking the `unindent' subroutine. * tests/Makefile.am (TESTS): Update.
Stefano Lattarini fd22dca1 2011-02-23T21:38:04 Merge branch 'maint'
Stefano Lattarini e6ca61c1 2011-02-16T20:43:22 tests: tempdirs with restrictive permissions are cleaned correctly Before this change, the removal of a temporary test directory containing subdirectories with restrictive permissions (such as 'r--r--r--') could fail. * tests/defs: Ensure that all the subdirectories of a temporary test directory have the 'read', 'write' and 'execute' bits set, before trying to remove it with `rm -rf'. * tests/Makefile.am (clean-local-check): Likewise.
Stefano Lattarini 95ce684f 2011-02-16T13:00:59 Merge branch 'maint'
Stefano Lattarini a118732d 2011-02-15T12:45:28 test defs: add subroutine for input unindenting * tests/defs.in (unindent): New subroutine.
Stefano Lattarini 95b717e8 2011-02-15T10:17:53 Merge branch 'maint'
Stefano Lattarini 5bf7af6e 2011-01-31T21:24:02 python: report the 'PYTHON' influential environment variable * m4/python.m4 (AM_PATH_PYTHON): Call AC_ARG_VAR on PYTHON. * doc/automake.texi (Python): Update and extend. * tests/help-python.test: New test. * tests/Makefile.am (TESTS): Update. * THANKS (Jack Kelly): Update e-mail address. Suggestion by Jack Kelly.
Stefano Lattarini c0db5be2 2010-11-14T18:10:37 tests: `instspc-*.test': do not create useless source file * tests/instspc-tests.sh (create_input_data): Do not create unused source file `source2.c'.
Stefano Lattarini 1d77ab5e 2010-11-05T15:51:56 tests: optimize `instspc-*.test' for speed After the split of `instspc.test' into various generated tests, the running time of the testsuite has noticeably increased, since all these new generated tests must run aclocal, autoconf and automake, whereas previously they were run only once (at the beginning of `instspc.test'). But luckily, since the new tests share the same input files for the autotools, this situation can be easily worked around (at the expenses of a slight increase of complexity for the testsuite scaffolding). * tests/instspc-data.test: New helper test, properly calling the `instspc-tests.sh' script to generate input data for the others `instspc-*.test' tests. * tests/Makefile.am (TESTS): Add `instspc-data.test'. ($(instspc_tests:.test=.log)): Depend on its log file. (instspc-data.log): Depend on `instspc-tests.sh'. * tests/instspc-tests.sh: Recognize new action `generate-data', and use it to create hand-written and autotools-generated static files shared by all the `instspc-*.test' tests. When sourced by the `instspc-*.test' tests, use those previously created files instead of recreating them from scratch. (unindent, create_input_data): New subroutines. Some other related changes and refactorings. From a suggestion by Ralf Wildenhues.
Stefano Lattarini feac65b7 2011-02-15T00:47:52 Merge branch 'python-tests-extend'
Stefano Lattarini 50427eb4 2011-02-13T11:40:16 python: fix spurious failure in tests * tests/python-vars.test: Ignore cached values from config.site by exporting CONFIG_SITE=/dev/null. Be laxer in matching the expected values of output variables `pythondir' and `pyexecdir', since they can change quite unpredictably among different python installations. Also, avoid "hyping" debugging output, thus offering smaller trace output and more informative diff. * tests/python-virtualenv.test: Require python, since we call it even after the virtualenv has been deactivated. Ignore cached values from config.site by exporting CONFIG_SITE=/dev/null. Report and suggestions by Ralf Wildenhues.
Stefano Lattarini 5cc6a5a3 2011-02-10T10:46:21 tests defs: clear TESTS_ENVIRONMENT variable * tests/defs.in (TESTS_ENVIRONMENT): Unset it, so that values from environment won't interfere with the testcases. Suggestion by Ralf Wildenhues.
Stefano Lattarini 0fc7e23f 2011-02-10T10:32:51 Merge branch 'maint'
Stefano Lattarini 6d0cfa31 2011-02-10T10:13:59 Merge branch 'python-tests-extend' Conflicts: tests/Makefile.am tests/Makefile.in tests/python11.test tests/python2.test tests/python8.test tests/python9.test
Stefano Lattarini 5ed043ad 2011-02-06T19:43:22 tests: tweak few tests on simple and parallel test drivers * tests/check-exported-srcdir.test: Improve heading comments. * tests/check-tests-in-builddir.test: Likewise. Also, unset the `FOO_EXIT_STATUS' variable, so that any pre-existing value in the environment won't risk to interfere with the test. Suggestions by Ralf Wildenhues.
Stefano Lattarini 6366a170 2011-02-01T23:22:08 python: extend and improve tests, fix minor glitches * m4/python.m4 (AM_PATH_PYTHON): Ensure the "checking ..." messages from configure are always complete, even in case of failure. Tiny cosmetic improvement in info/error messages. * tests/python.test: Also check that automake complains if the PYTHON primary is used but the `py-compile' script is not present. Make grepping of generated Makefile.in laxer w.r.t. whitespace. Add trailing `:' command. * tests/python2.test: Remove repeated calls aclocal: they are useless because configure.in is never modified. Make grepping of automake stderr more comprehensive. Remove the pre-existing `py-compile' file before trying to install it with `--add-missing'. Add trailing `:' command. * tests/python3.test: Add trailing `:' command. * tests/python11.test: Likewise. * tests/python4.test: Likewise. Also, try to pass PYTHON config variable to configure from the environment, rather than only from the command line. * tests/python5.test: Ensure that the "checking ..." messages from configure are always complete. Use proper m4 quoting. Add a trailing `:' command. * tests/python6.test: Simplify test logic, by checking for files created by configure rather then grepping its output. * tests/python7.test: Likewise. * tests/python8.test: Also check that `$PYTHON' is meaningfully set in the ACTION-IF-TRUE argument of AM_PATH_PYTHON. * tests/python9.test: Likewise. * tests/python10.test: Add trailing `:' command. (Makefile.am): Declare `disttest' target as `.PHONY', and add an `ls -l' to its recipe, for debugging. * tests/nobase-python.test: In testing "make uninstall" and "make install" results, prefer idioms that make verbose logs more helpful. Remove a couple of lines of dead code. Add a trailing `:' command. * tests/python5b.test: New test, checking that configure performs the check on the python version even when the choice of the python interpreter is forced by the user. * tests/python-dist.test: New test, checking the distribution of *_PYTHON files. * tests/python-vars.test: New test, checking that AM_PATH_PYTHON correctly set all the output variables advertised in the manual. * tests/python-virtualenv.test: New test, checking that python support offered by automake works well with "virtual python environments" created by the `virtualenv' program. * tests/instdir-prog.test: Also check `$(pyexecdir)'. Existing checks made slightly stricter. * tests/instdir-prog.test: Also check `$(pyexecdir)'. Existing * tests/instdir-ltlib.test: Likewise. * tests/Makefile.am (TESTS): Update.
Stefano Lattarini e12be945 2011-01-24T15:56:52 coverage: more tests on simple and parallel test drivers * tests/parallel-tests-subdir.test: New test. * tests/check-exported-srcdir.test: Likewise. * tests/check-tests-in-builddir.test: Likewise. * tests/check-tests_environment.test: Likewise. * tests/Makefile.am (TESTS): Update.
Stefano Lattarini 9095d6b9 2011-01-29T18:47:39 Merge branch 'lflags-test-fixes' into maint
Stefano Lattarini 57198dec 2011-01-29T18:35:45 tests: fix spurious failures in lflags*.test * tests/lflags.test: Remove 'LEX' from the environment, so that it won't be erroneously picked up by `make -e'. * tests/lflags2.test: Likewise.
Stefano Lattarini 06b46e1f 2011-01-24T22:26:55 docs: color-tests issues with parallel make * doc/automake.texi (Simple Tests): Document that automatic recognition of a capable terminal attached to stdout can fail with some make implementation when running in parallel mode, thus causing colored test output not to be automatically activated when it should.
Ralf Wildenhues c383211a 2011-01-24T21:43:41 Merge branch 'maint'
Ralf Wildenhues fcb15300 2011-01-23T11:26:50 tests: avoid instspc.test failures due to make's whitespace trimming * tests/instspc.test: Prepend './' when passing the test characters, to avoid leading whitespace characters to be trimmed from macros set from environment variables. Fixes testsuite failures with HP-UX, IRIX, and Tru64/OSF make. Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
Stefano Lattarini e1a4d87a 2011-01-22T18:09:51 coverage: test semantics of "dummy" per-target flags * tests/specflg-dummy.test: New test, ensuring that even "dummy" per-target flags triggers the use of renamed objects. * tests/Makefile.am (TESTS): Update. Suggestion by Ralf Wildenhues.
Stefano Lattarini ead12d3f 2011-01-23T12:54:35 tests defs: sanitize IFS * tests/defs.in ($IFS): Define to <space>, <tab>, <newline>. ($sp): New variable, holding a single whitespace character. ($tab): New variable, holding a tabulation character. ($nl): New variable, holding a newline character.
Ralf Wildenhues 6050166b 2011-01-23T10:57:21 tests: avoid instspc* failures due to make's whitespace trimming * tests/instspc-tests.sh: Prepend './' when passing the test characters, to avoid leading whitespace characters to be trimmed from macros set from environment variables. Fixes testsuite failures with HP-UX and Tru64/OSF make. Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
Ralf Wildenhues e9d5de54 2011-01-22T18:31:12 Merge branch 'maint'
Ralf Wildenhues c23bfd88 2011-01-22T18:27:30 Merge branch 'tests-suffix-extend' * tests-suffix-extend: tests: fix VPATH auto-expansion workarounds. tests: fix VPATH auto-expansion workarounds.
Ralf Wildenhues e09e0b91 2011-01-22T13:11:39 tests: fix VPATH auto-expansion workarounds. * tests/suffix10.test, tests/suffix11.test, tests/suffix12.test, tests/suffix3.test, tests/suffix5.test, tests/suffix8.test: Ensure $< is not surrounded by white space, to prevent Solaris make from applying automatic VPATH text expansion. Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
Ralf Wildenhues 1d646306 2011-01-22T18:22:18 Merge branch 'vpath-autoexp-fix-maint' into tests-suffix-extend * vpath-autoexp-fix-maint: tests: fix VPATH auto-expansion workarounds.
Ralf Wildenhues e9cb6db1 2011-01-22T18:21:45 Merge branch 'vpath-autoexp-fix-maint' into maint * vpath-autoexp-fix-maint: tests: fix VPATH auto-expansion workarounds.
Ralf Wildenhues 92c4c0c0 2011-01-22T18:20:41 tests: fix VPATH auto-expansion workarounds. * tests/parallel-tests8.test, tests/suffix13.test: Ensure $< is not surrounded by white space, to prevent Solaris make from applying automatic VPATH text expansion. Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
Stefano Lattarini 4a492566 2011-01-22T14:50:20 Merge branch 'yflags-test-fixes' into maint
Stefano Lattarini c876b0e0 2011-01-22T13:32:14 tests: fix spurious failures in yflags*.test * tests/yflags.test: Remove 'YACC' from the environment, so that it won't be erroneously picked up by `make -e'. * tests/yflags2.test: Likewise.
Ralf Wildenhues 7e2e93d8 2011-01-22T13:46:27 tests: avoid fn99*.test failures due to buggy AIX 5.3 cp -R. * tests/fn99.test, tests/fn99subdir.test: Skip if an initial `cp -R' of the subdir tree already fails; AIX 5.3 cp messes up its internal memory when copying this tree. Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
Ralf Wildenhues e9b44d82 2011-01-22T11:16:06 Add comment to check-TESTS rule working around make 3.80 bug. * lib/am/check.am (check-TESTS): Update comment. Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
Ralf Wildenhues 5640d721 2011-01-21T21:07:00 tests: check for presence of cscope with redirected input. * tests/defs: Add required test for cscope. Fixes cscope3.test hang with Sun C 5.9 cscope. Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
Ralf Wildenhues 9dffb4d6 2011-01-21T19:56:50 Merge branch 'cygnus-test-fixes' * cygnus-test-fixes: tests: avoid false failure in cygnus-dependency-tracking.test.
Ralf Wildenhues 06b839e4 2011-01-21T19:54:35 tests: avoid false failure in cygnus-dependency-tracking.test. * tests/cygnus-dependency-tracking.test: Be less restrictive when grepping the compiler error message, GCC 3.4.6 on FreeBSD does not mention an undefined symbol. Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
Ralf Wildenhues a5e77cac 2011-01-20T21:47:06 Merge branch 'tests-init' * tests-init: tests: revert not turning off errexit in instspc-test.sh
Ralf Wildenhues 0536a861 2011-01-20T21:46:22 tests: revert not turning off errexit in instspc-test.sh * tests/instspc-tests.sh: Turn off errexit while sourcing defs, the scripts might still not be clean. Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
Ralf Wildenhues 4e1ab202 2011-01-20T21:29:42 tests: less strict double-colon spy.test again. * tests/spy.test: We know BSD make doesn't invoke more than one double-colon rule, so no need to expose that failure. Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
Ralf Wildenhues 15a6e56f 2011-01-19T21:50:02 install-sh: avoid Tru64 sh `test' operator precedence issues. * lib/install-sh: Protect file names and directory components that consist of `=', `(', `)', or `!'. Move protection as early as possible, to avoid errors such as with Tru64 sh `test -z ='. * tests/instsh2.test: Extend test to cover more possibilities. Fixes 1.12 instspc-equal-install.test failure on Tru64/OSF 5.1. Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
Stefano Lattarini 10315b6d 2011-01-19T20:20:37 docs: automake testsuite doesn't use TESTS_ENVIRONMENT anymore * doc/automake.texi (Simple Tests): Do not claim Automake uses TESTS_ENVIRONMENT for the perl driver. Instead, point to the parallel-tests driver. Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
Ralf Wildenhues d905a94e 2011-01-19T19:54:41 Merge branch 'tests-init' * tests-init: tests: work around Tru64 sh -e issues for instspc*.test.
Ralf Wildenhues 7069a8b3 2011-01-18T22:58:18 tests: work around Tru64 sh -e issues for instspc*.test. Apparently, Tru64 sh does not like turning off errexit mode, and gets confused. * tests/defs: Document 'errexit' cleanliness requirement. * tests/defs-static.in: Likewise. Avoid error from command substitution to abort instspc*.test with Tru64/OSF 5.1 sh. * tests/instspc-tests.sh: Drop now-unneeded temporary errexit dropping. Add strategic '|| Exit' to let tests work on Tru64. Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
Ralf Wildenhues 3474cdc9 2011-01-19T19:49:12 Merge branch 'maint'
Ralf Wildenhues d652a1c0 2011-01-19T19:46:27 Allow _AM_DEPENDENCIES to be used later in configure. * m4/depend.m4 (_AM_DEPENDENCIES): Remove a previously existing conftest.dir before recreating it. Fixes bug#7864. Report by Eric Blake, from report by Scott McCreary against M4. Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
Ralf Wildenhues e8e533e2 2011-01-18T23:11:54 tests: avoid failure on w32 file systems. * tests/parallel-tests-unreadable-log.test: SKIP if file cannot be turned unreadable. Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
Stefano Lattarini 50fc82ed 2011-01-18T14:02:57 Merge branch 'warns-win-over-strictness'
Stefano Lattarini f20b389a 2011-01-18T14:00:44 Merge branch 'fix-perl-local-uscore' into warns-win-over-strictness * fix-perl-local-uscore: Avoid local $_ perl variable, for Perl before 5.9.1.
Ralf Wildenhues 599a8f5e 2011-01-16T22:27:37 tests: allow double-colon spy.test to work with HP-UX make. * tests/spy.test: Fix comment typos. Ensure prerequisites we do not want to depend on are strictly older than the target. Also test with a target out of date wrt. more than one rule. Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
Ralf Wildenhues 80d2f4a1 2011-01-17T07:43:59 Merge branch 'fix-perl-local-uscore' * fix-perl-local-uscore: Avoid local $_ perl variable, for Perl before 5.9.1.
Ralf Wildenhues c4c1aa2d 2011-01-16T23:00:35 Avoid local $_ perl variable, for Perl before 5.9.1. * lib/Automake/Options.pm (_process_option_list): Do not lexically localize $_. Fixes bootstrap on AIX 5.1. Bug introduced in commit `v1.11-622-gf90a06c'. Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
Stefano Lattarini 5fa4dafb 2011-01-16T20:42:31 Merge branch 'maint'
Stefano Lattarini 80fdae8e 2011-01-16T19:23:12 tests: remove useless requirements from cond36.test * tests/cond36.test ($required): Remove. Since we are at it, add a trailing `:' command.
Ralf Wildenhues 882972f8 2011-01-16T18:03:08 Merge branch 'tests-vartypo-fixes' * tests-vartypo-fixes: tests: avoid failing command substitution in errexit mode.
Ralf Wildenhues a2052908 2011-01-16T18:02:51 Merge branch 'maint'
Ralf Wildenhues 080efc94 2011-01-16T13:48:17 parallel-tests: work around Tru64/OSF 5.1 sh read bugs. * lib/am/check.am ($(TEST_SUITE_LOG), recheck, recheck-html): Test file readability before redirecting input from it, to avoid exiting Tru64/OSF 5.1 sh which treats read as special builtin. * tests/parallel-tests-unreadable-log.test: New test. * tests/Makefile.am (TESTS): Update. * NEWS: Update. Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
Ralf Wildenhues 87073880 2011-01-16T13:54:57 * NEWS, README: Update copyright years.
Stefano Lattarini 5e706943 2011-01-16T15:57:23 Merge branch 'tests-init'
Ralf Wildenhues ef46fa2f 2011-01-16T14:17:38 tests: avoid failing command substitution in errexit mode. * tests/vartypo2.test, tests/vartypos.test: Rewrite to not use a command substitution with a nonzero exit status, that causes IRIX and Tru64/OSF sh to fail the whole test. Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
Ralf Wildenhues 1456186d 2011-01-16T12:15:19 Merge branch 'maint'
Ralf Wildenhues e5fb6dce 2011-01-16T12:12:51 Fix parallel-tests.test failure with HP-UX make. * tests/parallel-tests.test: Sleep inside inner tests, so logs are newer than logs of tests they depend on, for HP-UX make. Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
Ralf Wildenhues 09c55b72 2011-01-16T12:14:03 Revert "tests: avoid new failures due to nonexistent makeinfo." This reverts commit 7a42b52f626f3b713196b5946b9bfbb3e173226b.
Ralf Wildenhues 719d1078 2011-01-16T10:11:25 Merge branch 'tests-texinfo' into maint * tests-texinfo: tests: avoid new failures due to nonexistent makeinfo.
Ralf Wildenhues 7a42b52f 2011-01-16T10:09:57 tests: avoid new failures due to nonexistent makeinfo. * tests/txinfo.test, tests/txinfo8.test: Create stub info files so 'missing --run makeinfo' won't fail even if makeinfo is not present. Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
Stefano Lattarini a9a34430 2010-11-12T15:45:22 tests: hard errors in case of internal failure or signal caught * tests/defs: Exit with status 99 (hard error) rather than 1 (failure) on unexpected/internal errors, or when a signal is caught by the client script.
Stefano Lattarini f4f5bbe6 2011-01-15T15:49:52 Merge branch 'warns-win-over-strictness' * warns-win-over-strictness: Update docs w.r.t. warning and strictness options. More tests on warnings/strictness precedence. Update NEWS about the warnings-over-strictness precedence. Warnings win over strictness in AUTOMAKE_OPTIONS. Change signature of 'Automake::Options::_process_option_list()'. Add more tests about AUTOMAKE_OPTIONS. Warnings win over strictness in AM_INIT_AUTOMAKE. Warnings win over strictness on command line. More tests on warnings and strictness. New test on silent-rules mode and portability warnings. Add new tests on strictness and warnings precedence and overriding.
Stefano Lattarini cc2bb3af 2010-11-12T14:52:51 Tests defs: don't let useless variables leak in test scripts. * tests/defs ($priv_check_temp, $overwrite_status, $ro_dir_temp, $create_status, $r2h, $libtool_found, $gettext_found, $aclocaldir, $extra_includes): Unset once they've served their purpose.
Stefano Lattarini 19a272ee 2011-01-14T15:18:36 Update docs w.r.t. warning and strictness options. * doc/automake.texi (Strictness): Document that some warnings are turned off by default in `foreign' strictness. (Options): Divide into new sections "Options generalities" and "List of Automake options". Fix typo (colon instead of full stop). Document option precedence (AUTOMAKE_OPTIONS wins over AM_INIT_AUTOMAKE which wins over command line). Also document interactions between options specifying strictness and those specifying warnings.
Stefano Lattarini 228b8269 2010-12-24T21:10:26 More tests on warnings/strictness precedence. * tests/warning-groups-win-over-strictness.test: New test, similar to `warnings-win-over-strictness.test', but checking the explicit catch-all warning flags (like `-Wall' and `-Wnone'). * tests/Makefile.am (TESTS): Update.
Stefano Lattarini 1c760b1c 2010-12-24T18:52:05 Update NEWS about the warnings-over-strictness precedence. * NEWS: Automake explicit warning levels always take precedence over the implicit warning levels implied by Automake strictness.
Stefano Lattarini 1609491e 2010-12-20T18:29:50 Warnings win over strictness in AUTOMAKE_OPTIONS. Ensure that, for what concerns the options specified in AUTOMAKE_OPTIONS, explicitly-defined warnings always take precedence over implicit strictness-implied warnings. This finally fixes Automake bug#7669 a.k.a. PR/547. * automake.in (handle_options): Call 'process_option_list' only once per set of options. * lib/Automake/Options.pm (process_global_option_list, process_option_list): Add sanity checks. ($_options_processed, $_global_options_processed): New internal variables, used by the sanity checks above. * tests/warnings-win-over-strictness.test: Extend.
Stefano Lattarini f90a06c1 2010-12-20T16:59:08 Change signature of 'Automake::Options::_process_option_list()'. This only modifies internal details in the automake implementation, bearing no externally visible effect, but preparing the way for the final fix of Automake bug#7669 a.k.a. PR/547. * lib/Automake/Options.pm (_process_option_list): Now accepts as arguments a list of hash references with keys 'option' and 'where', where 'option' is an option as might occur in AUTOMAKE_OPTIONS or M_INIT_AUTOMAKE, and 'where' is the location where that occurred. (process_option_list, process_global_option_list): Update. * automake.in (handle_options, scan_autoconf_traces): Update.
Stefano Lattarini 2bc047b1 2010-12-20T16:30:10 Add more tests about AUTOMAKE_OPTIONS. In view of soon-to-follow refactorings (still in the pursuit of a fix for Automake bug#7669 a.k.a. PR/547), add some more tests on AUTOMAKE_OPTIONS support, to prevent obvious regressions. * tests/amopts-variable-expansion.test: New test. * tests/amopts-location.test: Likewise. * tests/Makefile.am (TESTS): Update.
Stefano Lattarini 9a88bf66 2010-12-20T14:57:27 Warnings win over strictness in AM_INIT_AUTOMAKE. This change ensures that, for what concerns the options specified in AM_INIT_AUTOMAKE, explicitly-defined warnings always take precedence over implicit strictness-implied warnings. Related to Automake bug#7669 a.k.a. PR/547. * lib/Automake/Options.pm (_process_option_list): Parse explicit warnings only after the strictness level has been set. Fix POD documentation. * tests/warnings-win-over-strictness.test: Extend.
Stefano Lattarini b67240eb 2010-12-20T12:10:56 Warnings win over strictness on command line. This change ensures that, on the command line at least, explicitly defined warnings always take precedence over implicit strictness implied warnings. Related to Automake bug#7669 a.k.a. PR/547. * automake.in (parse_arguments): Parse warnings only after the strictness level has been processed. * tests/gnuwarn.test: Update, plus miscellaneous improvements. * tests/warnings-win-over-strictness.test: New test. * tests/Makefile.am (TESTS): Update.
Stefano Lattarini b638d135 2011-01-13T23:57:16 More tests on warnings and strictness. * tests/warnings-strictness-interactions.test: New test. * tests/warnings-unknown.test: Likewise. * tests/Makefile.am (TESTS): Update.
Stefano Lattarini 0bdcb49a 2010-12-20T19:28:35 New test on silent-rules mode and portability warnings. * tests/silent-nowarn.test: New test. * tests/Makefile.am (TESTS): Update.
Stefano Lattarini b9ddbaa0 2010-12-20T00:46:21 Add new tests on strictness and warnings precedence and overriding. * tests/strictness-overriding.test: New test. * tests/strictness-precedence.test: New test. * tests/warnings-overriding.test: New test. * tests/warnings-precedence.test: New test. * tests/Makefile.am (TESTS): Update.
Ralf Wildenhues 104926af 2011-01-15T14:54:51 docs: ensure example are separated with empty lines in the input * doc/automake.texi (Extending aclocal, Emacs Lisp, Rebuilding) (API Versioning, Renamed Objects, Multiple Outputs): Add empty lines before `@example' and after `@end example' lines, so info output is rendered correctly, and a following @noindent honored. Report by Stefano Lattarini. Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
Ralf Wildenhues 9217054b 2011-01-15T14:35:36 Merge branch 'tests-remake-extend' * tests-remake-extend: Fix remake rule induced test failures with HP-UX make.
Ralf Wildenhues 2f785807 2011-01-15T14:32:43 Fix remake rule induced test failures with HP-UX make. * tests/remake1a.test: Require GNU make. Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
Ralf Wildenhues 6fdad1a6 2011-01-15T14:30:24 Merge branch 'tests-colon-extend' * tests-colon-extend: Fix remake rule-induced test failures with HP-UX make. tests: fix typos in colon6.test
Ralf Wildenhues 51f1b0da 2011-01-15T14:29:55 Fix remake rule-induced test failures with HP-UX make. * tests/colon6.test: Update timestamp of subdir Makefile, so we do not spuriously invoke the nonexistent toplevel am--refresh rule. Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
Ralf Wildenhues c69843e7 2011-01-15T14:26:01 tests: fix typos in colon6.test * tests/colon6.test: Fix typos. Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
Ralf Wildenhues c62bac66 2011-01-15T12:40:02 tests: explain MSYS setup failure issue, improve test. * tests/defs: Add comment and failure message, improve fail logic. Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
Ralf Wildenhues 2525b56b 2011-01-15T13:06:21 Merge branch 'fix-libobj-tests' * fix-libobj-tests: Fix libobj2.test failure with non-GNU make: define $(AR).
Ralf Wildenhues 63c34882 2011-01-15T11:54:54 Fix libobj2.test failure with non-GNU make: define $(AR). * tests/libobj2.test: Ensure $(AR) is suitably defined. Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
Jim Meyering 44eb24d6 2010-10-14T16:39:22 tests: fix comment typo * tests/substref.test: Fix grammar in a comment. Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
Ralf Wildenhues 0e444f53 2011-01-15T09:19:59 Merge branch 'sanity-sleep-fix-master'
Ralf Wildenhues 3360a6b0 2011-01-15T09:19:05 Regenerate files.
Ralf Wildenhues cdf88178 2011-01-15T09:07:21 tests: avoid spurious failures due to fork failure in test setup * tests/defs: Ensure $me is always nonempty, to avoid spurious failures on MinGW/MSYS in case the preceding sed command could not be spawned.
Ralf Wildenhues e7f1b46e 2011-01-15T09:03:34 Merge branch 'sanity-sleep-fix-master' * sanity-sleep-fix-master: Avoid configure warnings from wait about reused PIDs.
Ralf Wildenhues 726ecfbc 2011-01-15T09:02:57 Avoid configure warnings from wait about reused PIDs. * m4/sanity.m4 (AM_SANITY_CHECK): Hide wait stderr output. Fixes spurious failure of depcomp2.test. Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
Stefano Lattarini 6615a9c3 2011-01-13T21:35:05 Merge branch 'tests-texinfo' into maint
Stefano Lattarini 21fec671 2011-01-13T20:56:04 tests: fix spurious failures in two texinfo tests * tests/txinfo.test ($required): Add 'makeinfo'. * tests/txinfo8.test: Create a dummy 'textutils.info' file, so that make won't try to run makeinfo (which could be unavailable) to build it. Found by NixOS Hydra, reported by Ralf Wildenhues.
Ralf Wildenhues b068a03c 2011-01-13T20:23:36 Merge branch 'maint'
Ralf Wildenhues cf65e60d 2011-01-13T20:21:39 Avoid testsuite failures due to Autoconf Fortran change. Autoconf v2.68-21-g727ce95 causes AC_F77_LIBRARY_LDFLAGS to require computing the canonical host name. Ensure config.guess and config.sub files are present for respective checks. * tests/compile_f_c_cxx.test: Add stub files. * tests/flibs.test: Likewise. * tests/fort4.test: Use $AUTOMAKE -a for installing files. Signed-off-by: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
Stefano Lattarini 2bf3a3f3 2011-01-12T23:44:40 Merge branch 'maint'