tests


Log

Author Commit Date CI Message
Stefano Lattarini 97cbf15b 2011-11-05T10:43:27 Merge branch 'msvc' into master Commits merged from msvc: - warnings: fix buglets for portability warnings - tests: extend tests on 'extra-portability' warning category Extra testsuite edits: * tests/extra-portability3.test: Use `$original_AUTOMAKE' instead of hackishly extracting the first component of `$AUTOMAKE'. * tests/extra-portability.test: Likewise. Also, since we are at it, throw in a couple of small extensions and tweakings (suggested by the minor merge conflicts).
Stefano Lattarini 8355b2b5 2011-11-04T20:15:12 test defs: new functions to analyze configure help screen * tests/defs (extract_configure_help, grep_configure_help): New functions. * tests/maintmode-configure-msg.test: Use them, reducing code duplication and test brittleness. * tests/help-depend.test: Likewise. * tests/help-depend2.test: Likewise. * tests/help-dmalloc.test: Likewise. * tests/help-lispdir.test: Likewise. * tests/help-multilib.test: Likewise. * tests/help-python.test: Likewise. * tests/help-regex.test: Likewise. * tests/help-silent.test: Likewise. * tests/help-upc.test: Likewise. * tests/help-init.test: Make grepping of configure help screen slightly stricter. * tests/self-check-configure-help.test: New self test. * tests/Makefile.am (TESTS): Add it. From a report by Jim Meyering.
Stefano Lattarini db93b31d 2011-11-04T12:50:49 warnings: fix buglets for portability warnings * lib/Automake/ChannelDefs.pm (switch_warning): Ensure the correct implications and inter-dependencies between warnings in the categories `portability', `extra-portability' and `recursive-portability' are respected. Also add detailed explicative comments, and references to the relevant tests. * tests/dollarvar2.test: Update and extend. Also, remove some unnecessary uses of `--force' option in automake calls. * tests/extra-portability3.test: New test. * tests/Makefile.am (TESTS): Add it.
Stefano Lattarini f23d5a15 2011-11-04T12:15:33 tests: extend tests on 'extra-portability' warning category * tests/extra-portability.test: Redefine `$AUTOMAKE' to ensure we have complete control over the automake options. Extend by using also a setup where no `portability' warning is present (only an `extra-portability' warning is). Other minor extensions. Remove some redundant, verbose comments about the expected diagnostic.
Stefano Lattarini e79b1bf3 2011-11-03T15:23:22 Merge branch 'msvc' * msvc: tests: various minor tweakings, mostly related to AM_PROG_AR
Stefano Lattarini 005000e7 2011-11-03T15:09:05 tests: various minor tweakings, mostly related to AM_PROG_AR * tests/alloca.test: Adjust to new portability requirements due to the new AM_PROG_AR macro. * tests/discover.test: Likewise. * tests/libobj3.test: Likewise. * tests/pluseq7.test: Likewise. Also, make grepping of automake expected error message stricter. * tests/stdlib.test: Likewise, and extend the test a bit. * tests/parse.test (configure.in): Remove redundant call to AC_PROG_RANLIB. * tests/library2.test: Adjust to new portability requirements due to the new AM_PROG_AR macro. Also ... (configure.in): ... add call to AC_PROG_CC, to ensure automake really fails for the expected reason.
Stefano Lattarini 38e1b39d 2011-11-03T13:50:06 Merge branch 'msvc' into master Commits merged from msvc: - tests: few improvements to some `ar-lib' related tests - warnings: new 'extra-portability' category, for AM_PROG_AR - ar-lib: new 'AM_PROG_AR' macro, triggering the 'ar-lib' script Extra changes required by the testsuite: * tests/instspc-tests.sh: Adjust to new portability requirements due to the new AM_PROG_AR macro. * tests/libobj-basic.test: Likewise. * tests/libobj2.test: Likewise. * tests/libobj15a.test: Likewise. * tests/libobj15b.test: Likewise. * tests/libobj15c.test: Likewise. * tests/libobj16a.test: Likewise. * tests/libobj16b.test: Likewise. * tests/libobj17.test: Likewise. * tests/libobj18.test: Likewise. * tests/libobj19.test: Likewise. * tests/libobj20a.test: Likewise. * tests/libobj20b.test: Likewise. * tests/libobj20c.test: Likewise. * tests/canon6.test: Likewise. * tests/canon6.test: Likewise. * tests/canon7.tests: Likewise. * tests/extra9.test: Likewise. * tests/extradep.test: Likewise. * tests/extradep2.test: Likewise. * tests/posixsubst-ldadd.test: Likewise. * tests/posixsubst-libraries.test: Likewise. * tests/posixsubst-ltlibraries.test: Likewise. * tests/python-virtualenv.test: Likewise. * tests/vartypos.test: Likewise. * tests/vartypo2.test: Likewise. * tests/suffix.test: Update to take into account previous master-only changes. * tests/suffix2.test: Likewise. * tests/libobj7.test: Call automake with the `--add-missing' option, instead of creating a dummy `ar-lib' file, since this test now also runs "./configure" and "make". * tests/suffix5.test: Copy the real `ar-lib' script file, instead of creating a dummy one, since this test now also runs "./configure" and "make". * tests/extra-portability2.test: Fix this test not to rely on the older, faulty semantics of "strictness specification always reset warning level", which has been fixed in commit v1.11-623-g1609491 (see also automake bug#7669 a.k.a. PR/547). Since we are at it, throw inf few other minor unrelated improvements. * tests/extra-portability.test: Explicitly pass `-Wall' to automake calls, for clarity.
Stefano Lattarini 2270535f 2011-11-03T11:39:40 Merge branch 'maint' into msvc * maint: maint-mode: fix botched configure messages fix: regenerate Makefiles info: allow user to inhibit creation/update of '${infodir}/dir' deps: partially revert commit `v1.11-512-geeee551'
Stefano Lattarini a778e9e1 2011-11-03T11:37:30 Merge branch 'maint' * maint: maint-mode: fix botched configure messages fix: regenerate Makefiles info: allow user to inhibit creation/update of '${infodir}/dir'
Stefano Lattarini 1ba50d12 2011-11-03T11:28:56 Merge branch 'fix-pr9890' into maint * fix-pr9890: maint-mode: fix botched configure messages
Stefano Lattarini a45c6364 2011-10-29T12:15:59 maint-mode: fix botched configure messages This change fixes automake bug#9890. * m4/maintainer.m4 (AM_MAINTAINER_MODE): Fix the "checking ..." configure message related to the enabling/disabling of maintainer mode. * tests/help-maintainer.test: Renamed ... * tests/maintmode-configure-msg.test: ... to this, and extended to cover the fixed bug. Also, since we are at it, make grepping of configure help screens stricter, and throw in some few other changes to reduce code duplication and enhance readability. * tests/Makefile.am (TESTS): Update. * THANKS: Update with Zack's new e-mail address. Report and initial patch by Zack Weinberg, test cases added by Stefano Lattarini.
Stefano Lattarini 182935ac 2011-10-29T12:22:50 Merge branch 'fix-pr9773' into maint * fix-pr9773: info: allow user to inhibit creation/update of '${infodir}/dir'
Stefano Lattarini 821f88c3 2011-10-25T13:43:00 tests: few improvements to some `ar-lib' related tests * tests/ar-lib5a.test (Makefile.am): Also check that the target library has truly been created. (ar-lib): Use the real `ar-lib' script (mildly patched) rather than a dummy one, to ensure better "real-life coverage". Fix botched shebang line. * tests/ar-lib5b.test: Extend the PATH variable to make the dummy `lib' script accessible, instead of explicitly calling it by its relative/absolute path. (ar-lib): Fix botched shebang line. (bin/lib): Likewise. Also, add explicative comments, and make slightly stricter.
Stefano Lattarini 8c695f69 2011-10-25T11:34:11 Merge branch 'maint' * maint: dejagnu: allow the package developer to extend site.exp * THANKS: Fix whitespace issue. deps: partially revert commit `v1.11-512-geeee551' dejagnu: ensure 'srcdir' is defined as a relative directory
Stefano Lattarini b5c39684 2011-10-24T23:18:34 tests: fix spurious failures due to missing 'yywrap()' function The AC_PROG_LEX Autoconf macro does not diagnose a failure to find the "lex library" expected to provide a `yywrap' function (function which is required to link most lex-generated programs). On the contrary, when all the link attempts (i.e., with `-ll' and `-lfl') fail, configure declares that no lex library is needed, and simply proceeds with the configuration process -- only for the build to possibly fail later, at make time. This behaviour is intended; the Autoconf manual reads: ``You are encouraged to use Flex in your sources, since it is both more pleasant to use than plain Lex and the C source it produces is portable. In order to ensure portability, however, you must either provide a function `yywrap' or, if you don't use it (e.g., your scanner has no `#include'-like feature), simply include a `%noyywrap' statement in the scanner's source.'' This AC_PROG_LEX behaviour is causing some spurious failures of the Automake testsuite in environments which lack a proper library providing `yywrap' (this happens for example on Fedora-based systems). The proper workaround is to simply provide a fall-back implementation of `yywrap' in our lexers. See also partially-overlapping commit `v1.11-871-geb147a1' (from the 'testsuite-work' branch), which was motivated by similar spurious failures experienced when cross-compiling. Reported by Jim Meyering: <http://lists.gnu.org/archive/html/automake-patches/2011-10/msg00092.html> * tests/cond35.test: Provide a dummy `yywrap' function. * tests/lex3.test: Likewise. * tests/lexvpath.test: Likewise. * tests/silent-lex-generic.test: Likewise. * tests/silent-lex-gcc.test: Likewise.
Stefano Lattarini cb9f2c28 2011-10-24T19:45:42 Merge branch 'fix-pr8485-and-pr8526' into maint * fix-pr8485-and-pr8526: deps: partially revert commit `v1.11-512-geeee551'
Peter Rosin 91ab753b 2011-10-24T09:04:24 Merge branch 'maint' into msvc * tests/subpkg-yacc.test: Adjust to new portability requirements due to the new AM_PROG_AR macro.
Stefano Lattarini 1ec16686 2011-10-23T13:19:21 info: allow user to inhibit creation/update of '${infodir}/dir' With this change, we allow the user to request the install-info rules not to update the `${infodir}/dir' file, by exporting the environment variable `AM_UPDATE_INFO_DIR' to the value "no". This is especially useful to distro packagers, and is a definite improvement over our previous hack of looking whether the `install-info' program was the Debian or GNU version -- hack which had been silently broken with recent versions of debian install-info BTW (probably since dpkg 1.15.4, 2009-09-06). This change fixes automake bug#9773. See also Debian Bug#543992. * lib/am/texinfos.am: Don't look anymore at the output of `install-info --version' to decide whether to use it to update the `${infodir}/dir' or not; instead, honour the environment variable `AM_UPDATE_INFO_DIR'. * tests/install-info-dir.test: New test. * tests/Makefile.am (TESTS): Add it. * tests/defs: Also unset `AM_UPDATE_INFO_DIR', to avoid unwanted interferences from the environment. * doc/automake.texi (Texinfo): Update. * NEWS: Likewise. * THANKS: Likewise. Report by Jonathan Nieder.
Stefano Lattarini 9b5ced02 2011-10-22T20:51:43 Merge branch 'dejagnu-siteexp-extend' into maint * dejagnu-siteexp-extend: dejagnu: allow the package developer to extend site.exp
Stefano Lattarini beef7a66 2011-02-01T09:52:43 dejagnu: allow the package developer to extend site.exp Fixes automake bug#7873. * lib/am/dejagnu.am (site.exp): Depend from the files listed in $(EXTRA_DEJAGNU_SITE_CONFIG), if any. Append their contents to the generated site.exp (still preserving user edits). * doc/automake.texi (Dejagnu Tests): Update. * tests/dejagnu-siteexp-append.test: New test. * tests/dejagnu-siteexp-extend.test: Likewise. * tests/dejagnu-siteexp-useredit.test: Likewise.ù * NEWS: Update. * tests/Makefile.am (TESTS): Update. Suggestion by Rainer Orth.
Stefano Lattarini 6a2fe818 2011-10-22T20:42:17 Merge branch 'dejagnu-srcdir-discrepancy' into maint * dejagnu-srcdir-discrepancy: dejagnu: ensure 'srcdir' is defined as a relative directory Fix testsuite failure of check12.test without DejaGNU. Extend and improve tests on DejaGnu support.
Peter Rosin cc2202a6 2011-10-21T00:24:38 warnings: new 'extra-portability' category, for AM_PROG_AR * lib/Automake/ChannelDefs.pm: Register new extra-portability warning channel. (switch_warning): Turn off extra-portability if portability is turned off, and turn on portability if extra-portability is turned on. (set_strictness): Silence extra-portability for --gnits, --gnu and --foreign. * tests/extra-portability2.test: New test, checking that the extra-portability channel is silenced by --gnits, --gnu and --foreign. * doc/automake.texi (Invoking Automake): Document the new warning category and its interaction with the portability category. * tests/extra-portability.test: New test, checking the interaction between the portability and extra-portability warning categories. * automake.in (handle_libraries, handle_ltlibraries): Move the AM_PROG_AR warnings to the new extra-portability channel. * tests/ar2.test: Adjust to the new warning channel. * tests/pr300-lib.test: Likewise. * tests/pr300-ltlib.test: Likewise. * tests/pr307.test: Likewise. * tests/pr401.test: Likewise. * tests/pr401b.test: Likewise. * tests/pr401c.test: Likewise. * tests/pr72.test: Likewise. * NEWS: Likewise. * tests/Makefile.am (TESTS): Update. Signed-off-by: Peter Rosin <peda@lysator.liu.se>
Peter Rosin c7a6a92e 2011-10-21T00:23:34 ar-lib: new 'AM_PROG_AR' macro, triggering the 'ar-lib' script * m4/ar-lib.m4: New macro AM_PROG_AR, which locates an archiver and triggers the auxiliary 'ar-lib' script if needed. * m4/Makefile.am (dist_m4data_DATA): Update. * automake.in ($seen_ar): New variable. (scan_autoconf_traces): Set it. (handle_libraries, handle_ltlibraries): Require AM_PROG_AR for portability. * doc/automake.texi (Public Macros): Mention the new 'AM_PROG_AR' macro. (Subpackages): Add AM_PROG_AR to the example. (A Library): Adjust recommendations for AR given the new AM_PROG_AR macro. * All relevant tests: Adjust to new portability requirements due to the new AM_PROG_AR macro. * tests/ar-lib2.test: New test, checking that AM_PROG_AR triggers install of ar-lib. * tests/ar-lib3.test: New test, checking that lib_LIBRARIES requires AM_PROG_AR. * tests/ar-lib4.test: New test, checking that lib_LTLIBRARIES requires AM_PROG_AR. * tests/ar-lib5a.test: New test, checking that AM_PROG_AR triggers use of ar-lib when the archiver is Microsoft lib. * tests/ar-lib5b.test: New test, checking that AM_PROG_AR triggers use of ar-lib when the archiver is a faked lib. * tests/ar-lib6a.test: New test, checking the ordering of AM_PROG_AR and LT_INIT. * tests/ar-lib6b.test: New test, checking the ordering of AM_PROG_AR and AC_PROG_LIBTOOL. * tests/ar-lib7.test: New test, checking that automake warns if ar-lib is missing. * tests/ar3.test: New test, checking that AR and ARFLAGS may be overridden by the user even if AM_PROG_AR is used. * tests/ar4.test: New test, checking that AM_PROG_AR bails out if it cannot determine the archiver interface. * tests/ar5.test: New test, checking that AM_PROG_AR runs its optional argument if it cannot determine the archiver interface. * tests/defs.in: New required entry 'lib'. * tests/Makefile.am (TESTS): Update. * NEWS: Update. Signed-off-by: Peter Rosin <peda@lysator.liu.se>
Stefano Lattarini 9579333e 2011-10-20T23:10:03 Merge branch 'maint' * maint: tests: fix spurious failures with "chatty" make implementations tests: fix spurious failure on fast machines tests: avoid spurious failure of 'uninstall-fail.test' on Solaris tests: avoid spurious failure in 'parallel-tests3.test' tests: fix spurious failure with FreeBSD make and Yacc in VPATH
Stefano Lattarini 40c34328 2011-10-20T22:25:45 deps: partially revert commit `v1.11-512-geeee551' This change partly reverts commit "Create subdirs for generated sources even when not dep tracking", of 2011-04-02. That commit had caused the bugs #8485 and #8526. Since we are nearing the bug-fixing automake release 1.11.2, the safest policy at the moment is to just revert the problematic hunks: an older, known bug is better than a regression. * automake.in (handle_single_transform): Don't add a dirstamp dependency, even when $object is derived and lands in a subdir. * tests/Makefile.am (XFAIL_TESTS): Add lex-subobj-nodep.test, remove yacc-dist-nobuild-subdir.test.
Stefano Lattarini d2b90968 2011-10-20T21:44:23 Merge branch 'test-subpkg-fix-spurious-freebsd-fail' into maint * test-subpkg-fix-spurious-freebsd-fail: tests: fix spurious failure with FreeBSD make and Yacc in VPATH
Stefano Lattarini 7cb64d4f 2011-10-20T21:38:52 Merge branch 'fix-pr8788' into maint * fix-pr8788: tests: avoid spurious failure in 'parallel-tests3.test'
Stefano Lattarini 65c01584 2011-10-20T21:31:09 tests: fix spurious failures with "chatty" make implementations * tests/distcheck-missing-m4.test: On failure, some make implementations (such as Solaris make) print the whole failed recipe on standard output. This was causing a spurious failure in the checks grepping the output from make. Work around this. * tests/distcheck-outdated-m4.test: Likewise.
Jim Meyering 367df29a 2011-10-20T17:57:55 tests: fix aclocal-print-acdir.test * tests/aclocal-print-acdir.test: Adjust to pass.
Stefano Lattarini 100e9740 2011-10-20T17:45:12 Merge branch 'aclocal-path' into maint * aclocal-path: tests: fix spurious failure on fast machines
Stefano Lattarini f8f8ec0e 2011-10-20T17:44:04 tests: fix spurious failure on fast machines * tests/aclocal-path-precedence.test: Also remove the `configure' script between different test runs, to ensure it is always remade by autoconf. Add proper explicative comments.
Stefano Lattarini d91f357d 2011-10-20T17:31:11 tests: avoid spurious failure of 'uninstall-fail.test' on Solaris * tests/uninstall-fail.test: All the Solaris 10 shells (/bin/sh, /bin/ksh, and /usr/xpg4/bin/sh), upon failing to chdir to a directory with the `cd' builtin, print a message like: "sh: /root: permission denied" which doesn't report the `cd' builtin anywhere. Relax the grepping of the error message accordingly.
Stefano Lattarini b8d6454c 2011-10-20T14:50:47 Merge branch 'maint' * maint: tests: avoid spurious failure of 'uninstall-fail.test' on Cygwin tests: fix spurious failure with autoconf 2.62 docs: avoid using colon character inside arguments of @pxref
Stefano Lattarini 7a770586 2011-10-19T13:43:46 Merge branch 'fix-pr9578' into maint * fix-pr9578: tests: avoid spurious failure of 'uninstall-fail.test' on Cygwin
Stefano Lattarini 8c021e00 2011-10-19T13:42:40 tests: avoid spurious failure of 'uninstall-fail.test' on Cygwin * tests/uninstall-fail.test: Be sure to really skip this test on systems that allows files to be removed from unwritable directories. Motivated by a spurious failure on Cygwin 1.5.
Stefano Lattarini ded01c88 2011-01-13T20:33:26 dejagnu: ensure 'srcdir' is defined as a relative directory This change fixes automake bug#7833. * lib/am/dejagnu.am (check-DEJAGNU): Prefer using plain $(srcdir) over calculating and using the absolute path of $(srcdir). * tests/dejagnu-relative-srcdir.test: New test. * tests/dejagnu-absolute-builddir.test: Likewise. * tests/Makefile.am (TESTS): Update. Report by Ian Lance Taylor. Suggestions by Ralf Wildenhues.
Stefano Lattarini f5b69b8a 2011-10-18T21:05:24 tests: avoid spurious failure in 'parallel-tests3.test' This fixes automake bug#8788. * tests/parallel-tests3.test: To ensure that the serial run of the dummy testsuite is still ongoing when the parallel run has terminated, use `kill -0', not a bare `kill'. This will prevent a testsuite crash on NetBSD 5.1, and a testsuite hang on FreeBSD 8.2. Also, since we are at it, try harder to avoid possible hangs of the script in other unusual situations.
Stefano Lattarini 7e5ae808 2011-10-18T17:53:21 tests: fix spurious failure with FreeBSD make and Yacc in VPATH * tests/subpkg.test: Some cosmetic adjustments. Move the tests checking that $(YLWRAP) is defined and installed properly when ylwrap is in a default auxdir found in a parent package ... * tests/subpkg-yacc.test: ... into this new test, which carefully avoids to trigger the known bug#7884 (combo FreeBSD make plus Yacc plus VPATH build). * tests/Makefile.am (TESTS): Update.
Stefano Lattarini 94ad7e48 2011-10-17T17:46:05 Merge branch 'aclocal-path' into maint
Stefano Lattarini 02ab80ce 2011-10-17T17:45:41 tests: fix spurious failure with autoconf 2.62 * tests/aclocal-path-precedence.test: Rewrite configure.in, rather than appending to it, to avoid spurious failures (at least with autoconf 2.62) due to repeated calls to AC_INIT. Also, add package name and version arguments to AC_INIT, to avoid spurious errors from automake.
Stefano Lattarini 64aebd61 2011-10-07T13:11:37 Merge branch 'maint' * maint: parallel-tests: warn on conditional TEST_EXTENSIONS definition
Stefano Lattarini ba0c477b 2011-10-07T11:08:15 parallel-tests: warn on conditional TEST_EXTENSIONS definition Before this change, automake would have still bailed out, but with a confusing error message (about an invalid redefinition of TEST_EXTENSIONS). * automake.in (handle_tests): Warn explicitly if TEST_EXTENSIONS has conditional contents. * tests/test-extensions-con.test: New test. * tests/Makefile.am (TESTS): Add it. * NEWS: Update.
Stefano Lattarini 30eb17ff 2011-10-06T21:42:06 Merge branch 'maint'
Stefano Lattarini d710255c 2011-10-06T21:40:17 Merge branch 'fix-pr9400' into maint * fix-pr9400: parallel-tests: don't allow @substitutions@ in TEST_EXTENSIONS
Stefano Lattarini b9b79d88 2011-10-06T21:30:04 parallel-tests: don't allow @substitutions@ in TEST_EXTENSIONS Even after the last commit `v1.11-476-g90bea64', the checks performed by automake on entries in $(TEST_EXTENSIONS) tried to allow for @substitited@ stuff. This however ends up allowing quite brittle setups, which, most importantly, are of no real practical usefulness anyway. So it's better to just disallow @substitutions@ in TEST_EXTENSIONS altogether, offering a clear error message, instead of risking weird bugs and unexpected behaviors in the generated Makefile.in. * automake.in ($TEST_EXTENSION_PATTERN): Turned from a regular expression ... (is_valid_test_extension): ... into this subroutine. Don't allow generic @substitutions@ anymore (possibly making an exception for `@EXEEXT@' under the proper circumstances). * tests/test-extensions.test: Adjust and extend.
Stefano Lattarini 7d40532a 2011-10-06T16:22:25 Merge branch 'fix-pr9579' into maint * fix-pr9579: tests: fix spurious failure in 'insthook.test'
Stefano Lattarini 39a9fd16 2011-10-06T16:21:16 tests: fix spurious failure in 'insthook.test' * tests/insthook.test (Makefile.am): Add a proper `uninstall-hook' target to remove the symlink created by the `install-exec-hook' target; this prevents "make distcheck" from failing spuriously. Since we are at it, delete an extra blank line, and add a trailing `:' command.
Stefano Lattarini 8b27c5b5 2011-10-06T13:56:49 Merge branch 'maint' * maint: fix: make a test script executable coverage: expose automake bug#9651 parallel-tests: automake error our on invalid TEST_EXTENSIONS fix: regenerate Makefile docs: don't suggest installing `.m4' files in hard-coded location distuninstallcheck: fail also when only one file is left installed
Stefano Lattarini 59919b1a 2011-10-06T13:42:11 fix: make a test script executable * tests/nobase-nodist.test: Make executable.
Stefano Lattarini e8082fb6 2011-10-06T13:26:58 coverage: expose automake bug#9651 * tests/dist-auxfile.test: New test, xfailing. * tests/dist-auxfile-2.test: Likewise. * tests/Makefile.am (TESTS, XFAIL_TESTS): Add them.
Stefano Lattarini bbfca16e 2011-10-06T10:45:25 Merge branch 'fix-pr9400' into maint * fix-pr9400: parallel-tests: automake error our on invalid TEST_EXTENSIONS
Stefano Lattarini 90bea64b 2011-10-01T21:31:07 parallel-tests: automake error our on invalid TEST_EXTENSIONS This change fixes automake bug#9400. * automake.in (handle_tests): Bail out if a suffix specified in TEST_EXTENSIONS would produce an invalid `xxx_LOG_COMPILER' variable or an invalid suffix rule. Before this change, automake would have issued a confusing error messages (about invalid or non-POSIX variables being defined), and in some situations would have even produced a broken `Makefile.in' file. ($TEST_EXTENSION_PATTERN): New helper variable. * doc/automake.texi (Simple Tests using parallel-tests): Document the limitations on TEST_EXTENSIONS explicitly. * NEWS: Update. * tests/test-extensions.test: New test. * tests/Makefile.am (TESTS): Update.
Stefano Lattarini 6816b316 2011-10-01T19:22:37 Merge branch 'fix-pr9579' into maint * fix-pr9579: distuninstallcheck: fail also when only one file is left installed
Stefano Lattarini 68b42720 2011-09-28T16:58:52 Merge branch 'maint' * maint: fix: regenerate Makefile.in files maintcheck: fix usage of `cd' instead of `$(am__cd)'
Stefano Lattarini 2126b691 2011-09-28T16:46:58 fix: regenerate Makefile.in files
Stefano Lattarini 58d91b7f 2011-09-28T11:11:51 Merge branch 'maint' * maint: uninstall: "make uninstall" before "make install" works
Stefano Lattarini a2498fe8 2011-09-23T16:06:59 distuninstallcheck: fail also when only one file is left installed This change fixes automake bug#9579. * lib/am/distdir.am (distuninstallcheck): Be stricter in ignoring a potential `dir' file created by install-info and left installed. Also, be more careful about "this can't happen" kind of errors. (am__distuninstallcheck_listfiles): New internal helper macro. * tests/distcheck-pr9579.test: New test. * tests/distcheck-override-infodir.test: Likewise. * tests/Makefile.am (TESTS): Add them. * NEWS, THANKS: Update. Report by Nick Bowler.
Stefano Lattarini eae5cfa9 2011-09-23T22:50:14 uninstall: "make uninstall" before "make install" works This change fixes automake bug#9578. * lib/am/inst-vars.am (am__uninstall_files_from_dir): New internal macro, that defines a shell code fragment to uninstall files from a given directory. * lib/am/data.am (uninstall-%DIR%%PRIMARY%): Use it, to reduce code duplication and improve consistency and correctness. * lib/am/libs.am (uninstall-%DIR%LIBRARIES): Likewise. * lib/am/lisp.am (uninstall-%DIR%LISP): Likewise. * lib/am/mans.am (uninstall-man%SECTION%): Likewise. * lib/am/python.am (uninstall-%DIR%LIBRARIES): Likewise. * lib/am/scripts.am (uninstall-%DIR%SCRIPTS): Likewise. * tests/uninstall-pr9578.test: New test. * tests/uninstall-fail.test: New test. * tests/Makefile.am (TESTS): Add them. * NEWS, THANKS: Update. Report by Nick Bowler.
Stefano Lattarini 22e59ff1 2011-09-22T16:40:40 Merge branch 'maint' * maint: tests: fix tests on aclocal search path precedences
Stefano Lattarini b9fa1fc1 2011-09-22T16:40:32 Merge branch 'aclocal-path' into maint * aclocal-path: tests: fix tests on aclocal search path precedences
Stefano Lattarini 33805241 2011-09-22T16:40:03 tests: fix tests on aclocal search path precedences * tests/aclocal-path-precedence.test: Call `$ACLOCAL' with the proper overridden system acdir.
Stefano Lattarini 8f803645 2011-09-20T20:16:43 Merge branch 'maint' * maint: docs: document planned precedence changes in aclocal search path aclocal: handle ACLOCAL_PATH environment variable tests: fix spurious failure in 'primary-prefix-valid-couples.test' docs: deprecate JAVA primary docs: clearer distinction between `.java' with javac and with gcj java: complain if java_JAVA is used but $(javadir) is undefined
Stefano Lattarini 122cb639 2011-09-20T20:15:55 Merge branch 'aclocal-path' into maint * aclocal-path: docs: document planned precedence changes in aclocal search path aclocal: handle ACLOCAL_PATH environment variable
Paolo Bonzini 73497948 2010-11-09T20:14:38 aclocal: handle ACLOCAL_PATH environment variable * aclocal.in (parse_ACLOCAL_PATH): New function, parse ACLOCAL_PATH as a colon-separated list of directories to be included in the search path. * doc/automake.texi (Macro Search Path): Document new behavior and the precedence rules for various elements of the search path. * tests/aclocal-path.test: New test. * tests/aclocal-path-install.test: Likewise. * tests/aclocal-path-install-serial.test: Likewise. * tests/aclocal-path-precedence.test: Likewise. * tests/aclocal-path-nonexistent.test: Likewise. * tests/Makefile.am (TESTS): Add them. * NEWS: Update. * tests/distcheck-missing-m4.test: Extend by also checking interactions with ACLOCAL_PATH. * tests/distcheck-outdated-m4.test: Likewise, and fix a couple of botched comments since we are at it.
Stefano Lattarini d5ebf21c 2011-09-19T18:21:25 tests: fix spurious failure in 'primary-prefix-valid-couples.test' * tests/primary-prefix-valid-couples.test: After commit v1.11-464-gc9dfc36, `java_JAVA' is not a valid prefix/primary combination by default anymore: one has to explicitly define $(javadir) to make it so. So just drop `java_JAVA' from our Makefile.am Also, since we are at it, ... (configure.in): ... remove AM_PROG_GCJ from here, as it's not really required.
Stefano Lattarini c9dfc368 2011-09-18T23:32:38 java: complain if java_JAVA is used but $(javadir) is undefined Fixes automake bug#8461. * automake.in (handle_java): Remove inappropriate "java" argument from the calls to `&am_install_var' and `&am_primary_prefixes'. * tests/instdir-java.test (Makefile.am): Define `$(javadir)'. * tests/javadir-undefined.test: New test. * tests/Makefile.am (TESTS): Add it. * NEWS: Update.
Stefano Lattarini cd2efb9f 2011-09-18T18:13:59 Merge branch 'maint' * maint: coverage: test interactions of `nobase_' and `nodist_' cosmetics: fix various typos and grammaros py-compile: '--' and non-option arguments terminate the option list py-compile: complain on unrecognized options py-compile: normalize error and help messages python tests: add "unit tests" on py-compile py-compile: the '--destdir' option now accepts a blank argument python: run the 'py-compile' script with $(SHELL)
Stefano Lattarini dd7e620b 2011-09-18T18:05:43 Merge branch 'python-work' into maint * python-work: cosmetics: fix various typos and grammaros py-compile: '--' and non-option arguments terminate the option list py-compile: complain on unrecognized options py-compile: normalize error and help messages python tests: add "unit tests" on py-compile py-compile: the '--destdir' option now accepts a blank argument python: run the 'py-compile' script with $(SHELL)
Stefano Lattarini 0b7d3cbc 2011-09-18T17:51:31 coverage: test interactions of `nobase_' and `nodist_' * tests/nobase-nodist.test: New test. * tests/Makefile.am (TESTS): Add it.
Stefano Lattarini c31004a8 2011-09-18T17:36:05 Merge branch 'maint' * maint: java: fix various blunders in test 'java-mix.test'
Stefano Lattarini 8d97cb95 2011-09-18T17:32:50 java: fix various blunders in test 'java-mix.test' * tests/java-mix.test: Add missing call to `set -e'. Fix inverted semantics (`.java' files are expected *not* to be distributed by default, not the other way round). Fix various typos in the name of the `.java' files. Correct other minor blunders. Improve some comments.
Stefano Lattarini 16912bdf 2011-09-18T16:32:46 Merge branch 'java-work' * java-work: fix: remove duplicated ChangeLog entries java: allow both JAVA and nobase_JAVA in the same Makefile.am java: allow both dist_JAVA and nodist_JAVA in the same Makefile.am fix: regenerate tests/Makefile.in tests defs: use `skip_' for skipping java-related tests java tests: use $PATH_SEPARATOR where appropriate java coverage: test JAVACFLAGS and AM_JAVACFLAGS java coverage: test rebuild rules for java java coverage: try to build and run a java program test defs: new requirement for the default java interpreter java tests: tweak and make stricter a couple of tests java coverage: add test on uninstall with JAVA primary java tests: require java compiler more properly java: allow both JAVA and nobase_JAVA in the same Makefile.am java: allow both dist_JAVA and nodist_JAVA in the same Makefile.am
Stefano Lattarini c9a6f7e2 2011-09-12T18:37:05 cosmetics: fix various typos and grammaros * NEWS: Fix typos. * tests/py-compile-basic.test: Likewise. * tests/py-compile-basedir.test: Fix botched wording in comments. * tests/py-compile-option-terminate.test: Fix typo and incomplete comment. Suggestions by Peter Rosin.
Stefano Lattarini 9a937d21 2011-09-12T11:03:32 java: allow both JAVA and nobase_JAVA in the same Makefile.am * automake.in (handle_java): Also strip `nobase_' from the given prefix, when needed. * tests/java-clean.test: Update and extend. * tests/java-compile-install.test: Likewise. * tests/java-no-duplicate.test: Likewise. * tests/java-sources.test: Likewise. * tests/java-noinst.test: Likewise. * tests/java-mix-dist-nodist.test: Renamed to ... * tests/java-mix.test: ... this, and extended. * tests/java-nobase.test: New test, still xfailing due to unrelated issues. * tests/Makefile.am (TESTS, XFAIL_TESTS): Update. Cherry-picked from v1.11-356-g01dede4
Stefano Lattarini 2990ef35 2011-09-12T10:54:49 java: allow both dist_JAVA and nodist_JAVA in the same Makefile.am Fixes automake bug#8434. * automake.in (handle_java): Strip `dist_' and `nodist_' from the given prefix. Define a new internal Makefile variable `am__java_sources'. Related adjustments. * lib/am/java.am (JAVAC, JAVAROOT, CLASSPATH_ENV): Define only the first time this am file is processed. (class%DIR%.stamp): Stamp file renamed ... (class%NDIR%.stamp): ... to this, so that the `dist_' and `nodist_' prefixes are stripped from the name of the stampfile. Adjust declaration of dependencies by using the new automake-generated internal variable `$(am__java_sources)'. In the rule, use `$@' as the name of the target, rather than hard-coding it. * tests/java.test: Update and extend. * tests/java-no-duplicate.test: New test. * tests/java-mix-dist-nodist.test: Likewise. * tests/java-compile-and-install.test: Likewise. * tests/java-clean.test: Likewise. * tests/java-sources.test: Likewise. * tests/Makefile.am (TESTS): Update. Cherry-picked from commit v1.11-337-gd76b503.
Stefano Lattarini df73c361 2011-09-11T00:47:24 Merge branch 'maint' into java-work * maint: tests: fix spurious failure on fast machines aclocal: better URL reference in error message coverage: distcheck-hook to catch missing/outdated *.m4 files aclocal: more granularity in acdir overriding
Stefano Lattarini 20787ab1 2011-09-11T00:47:09 Merge branch 'maint' into python-work * maint: tests: fix spurious failure on fast machines aclocal: better URL reference in error message coverage: distcheck-hook to catch missing/outdated *.m4 files aclocal: more granularity in acdir overriding * tests/amhello-binpkg.test: Add missing $EXEEXT usage. fix: list test 'vala-vpath.test' in XFAIL_TESTS tests: simplify wrapper for aclocal fix: minor typo in ChangeLog coverage: vala support failing for VPATH from-scratch builds docs: report few more automake parsing limitations tests: list "forgotten" test script in TESTS ylwrap: fix unusual indentation whitespace
Stefano Lattarini 074b1188 2011-09-11T00:44:12 Merge branch 'maint' * maint: tests: fix spurious failure on fast machines
Stefano Lattarini 5e463108 2011-09-11T00:42:53 tests: fix spurious failure on fast machines * tests/aclocal-acdir.test: Avoid spurious failures due to caching issues, by cleaning the autom4te cache between all the aclocal invocations, and by always calling autoconf with the `--force' flag.
Stefano Lattarini 2f318014 2011-09-09T11:41:42 Merge branch 'maint' * maint: coverage: distcheck-hook to catch missing/outdated *.m4 files
Stefano Lattarini 2d5a0d87 2011-09-01T17:42:41 coverage: distcheck-hook to catch missing/outdated *.m4 files Related to automake bug#9037. * tests/distcheck-missing-m4.test: New test. * tests/distcheck-outdated-m4.test: Likewise. * tests/distcheck-hook-m4.am: New data file, used by the new tests. * tests/Makefile.am (distcheck-m4-missing.log, distcheck-m4-outdated.log): Depend on it. (EXTRA_DIST): Distribute it. (TESTS): Add the new tests.
Stefano Lattarini eae54298 2011-09-08T17:12:38 Merge branch 'maint' * maint: aclocal: more granularity in acdir overriding
Stefano Lattarini 30f99cbd 2011-09-05T17:37:44 aclocal: more granularity in acdir overriding Before this change, using the `--acdir' option caused aclocal to redefine both the directory of automake-provided m4 macros and the directory of third-party system-wide m4 macros. With this change, we deprecate the `--acdir' aclocal option, and introduce two new options `--automake-acdir' and `--system-acdir', to allow for more granularity. * aclocal.in (@automake_includes, @system_includes, @user_includes): Fix and extend comments. (usage): Update. (handle_acdir_option): New function. (parse_arguments): Recognize new options `--system-acdir' and `automake-acdir', and handle `--acdir' using the new function above. Simplify logic by assuming that the directory of third-party system-wide m4 files always exists. * tests/aclocal.in: Update to use the new options, instead of the deprecated. `--acdir'. * m4/dirlist: Move ... * m4/acdir/dirlist: ... here. * m4/Makefile.am (EXTRA_DIST): Update. (m4datadir): Rename ... (automake_acdir): ... to this. Accordingly, ... (dist_m4data_DATA): ... rename this ... (dist_automake_ac_DATA): ... to this. (system_acdir): New, directory. (dist_system_ac_DATA): New, defined to an empty value; this will ensure that the $(system_acdir) directory will be created by "make install". * tests/aclocal.test: Remove check about the `--print-ac-dir' option of aclocal, it has been moved into ... * tests/aclocal-print-acdir.test: ... this new test, and quite extended. * tests/aclocal-acdir.test: New test. * tests/Makefile.am (TESTS): Add the new tests. * NEWS, bootstrap: Update. * doc/automake.texi (aclocal Options, Macro Search Path): Update.
Stefano Lattarini 829c04e7 2011-09-06T23:54:49 Merge branch 'maint' into java-work * maint: * tests/amhello-binpkg.test: Add missing $EXEEXT usage. fix: list test 'vala-vpath.test' in XFAIL_TESTS tests: simplify wrapper for aclocal fix: minor typo in ChangeLog coverage: vala support failing for VPATH from-scratch builds docs: report few more automake parsing limitations
Stefano Lattarini e1177186 2011-09-06T17:10:21 tests: fix spurious failures due to ignored signals * tests/defs (is_blocked_signal): New function. * tests/parallel-tests-interrupt.test: Do not try to use/trap signals that are ignored by the parent shell: they will be ignored by all the child processes too. * tests/self-check-exit.test: Likewise. * tests/self-check-cleanup.test: Likewise, and do few minor improvements and extensions since we are at it.
Stefano Lattarini 8bae3468 2011-09-06T10:59:38 Merge branch 'maint' * maint: * tests/amhello-binpkg.test: Add missing $EXEEXT usage. fix: list test 'vala-vpath.test' in XFAIL_TESTS
Peter Rosin b07777bd 2011-09-05T16:35:54 Merge branch 'maint' into msvc
Peter Rosin 3c99e9dc 2011-09-05T11:30:17 * tests/amhello-binpkg.test: Add missing $EXEEXT usage. Signed-off-by: Peter Rosin <peda@lysator.liu.se>
Stefano Lattarini eda087ad 2011-09-04T17:28:49 Merge branch 'fix-vala-vpath-test' into maint
Stefano Lattarini 884694a8 2011-09-04T17:28:35 fix: list test 'vala-vpath.test' in XFAIL_TESTS * tests/Makefile.am (XFAIL_TESTS): Update.
Stefano Lattarini 7ce19f11 2011-09-02T21:57:03 Merge branch 'maint' * maint: tests: simplify wrapper for aclocal
Stefano Lattarini e25ee588 2011-09-02T20:16:58 tests: simplify wrapper for aclocal * tests/aclocal.in: Remove use of $ACLOCAL_TESTSUITE_FLAGS and extra `-I' flags; they are not really required, since the file `m4/amversion.m4' is generated in the srcdir anyway. * tests/acloca10.test: Remove use of $ACLOCAL_TESTSUITE_FLAGS. * tests/acloca18.test: Likewise. * tests/defs.in: Don't nullify $ACLOCAL_TESTSUITE_FLAGS, and do not export it.
Stefano Lattarini f1652f6f 2011-09-02T10:31:19 Merge branch 'remove-deansification' * remove-deansification: automake: fix regression due to de-ansification support removal automake: cleanups after de-ansification support removal (2) automake: cleanups after de-ansification support removal (1) ansi: remove obsolete code/files for de-ANSI-fication support ansi: reject attempts to use automatic de-ANSI-fication support tests: remove tests about obsolete de-ANSI-fication support docs: remove description of de-ANSI-fication support from manual
Stefano Lattarini 199b9086 2011-09-01T11:02:04 automake: fix regression due to de-ansification support removal The last change `v1.11-947-g136b489' removed code that automake was using to decide whether binary objects were built by the generated Makefile.in, so that it could avoid to emit unneeded code when this was not the case. Re-introduce such code in a less-obfuscated form, and add a test to ensure we don't regress again. * automake.in ($must_handle_compiled_objects): New global variable, telling whether the generated Makefile has to build compiled objects. (initialize_per_input): Reset it. (handle_programs, handle_libraries, handle_ltlibraries): Set it to a true value when required. (handle_compile): Don't generate any code if the variable `$must_handle_compiled_objects' is not set to a true value. * tests/no-extra-makefile-code.test: New test. * tests/Makefile.am (TESTS): Add it.
Stefano Lattarini b110067c 2011-09-02T10:04:43 Merge branch 'maint' * maint: coverage: vala support failing for VPATH from-scratch builds docs: report few more automake parsing limitations
Stefano Lattarini eb59c423 2011-09-02T09:56:20 coverage: vala support failing for VPATH from-scratch builds * tests/vala-vpath.test: New test, xfailing. * tests/Makefile.am (TESTS): Update. * THANKS: Update. From a report by Zbigniew Jędrzejewski-Szmek. Related to automake bug#8753.
Stefano Lattarini 1dcba7b8 2011-09-01T19:17:39 docs: report few more automake parsing limitations Partly motivated by automake bug#8360. * doc/automake.texi (General Operation): Report few more automake limitations w.r.t. parsing of unusual makefile constructs. Related minor reorderings. * tests/doc-parsing-buglets-colneq-subst.test: New test. * tests/doc-parsing-buglets-tabs.test: Likewise. * tests/Makefile.am (TESTS): Update.
Stefano Lattarini 136b4899 2011-08-28T22:38:50 automake: cleanups after de-ansification support removal (2) * automake.in ($get_object_extension_was_run): Remove, it's not really needed anymore. (&get_object_extension): Remove, it's a no-op now. All callers adjusted.
Stefano Lattarini 16f67b47 2011-08-28T15:52:11 ansi: reject attempts to use automatic de-ANSI-fication support * tests/protos.m4 (AM_C_PROTOTYPES): Error out whenever called. * lib/Automake/Options.pm (_process_option_list ): Error out with a proper error message when the `ansi2knr' option is used. Related updates to comments. * tests/depacl2.test: Update. * tests/ansi2knr-no-more.test: New test. * tests/Makefile.am (TESTS): Add it. * NEWS: Update.
Stefano Lattarini 1a1c1339 2011-08-28T15:12:17 tests: remove tests about obsolete de-ANSI-fication support * tests/ansi.test: Delete. * tests/ansi10.test: Likewise. * tests/ansi2.test: Likewise. * tests/ansi2knr-deprecation.test: Likewise. * tests/ansi3.test: Likewise. * tests/ansi3b.test: Likewise. * tests/ansi4.test: Likewise. * tests/ansi5.test: Likewise. * tests/ansi6.test: Likewise. * tests/ansi7.test: Likewise. * tests/ansi8.test: Likewise. * tests/ansi9.test: Likewise. * tests/cxxansi.test: Likewise. * tests/libobj8.test: Likewise. * tests/subobj3.test: Likewise. * tests/Makefile.am (TESTS): Update.