summaryrefslogtreecommitdiff
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
* tests: rename 'tests/' => 't/', '*.test' => '*.sh'Stefano Lattarini2012-04-061233-91609/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When we (soon) convert the Automake testsuite to a non-recursive make setup, we'll have to fix the entries of $(TESTS) to be prepended with the subdirectory they are in; this will increase the length of $(TESTS), and thus increase the possibility of exceeding the command-line length limits on some systems (most notably, MinGW/MSYS). See automake bug#7868 for more information. Thus we rename the 'tests/' subdirectory to 't/', and each 'x.test' script in there to 'x.sh'; this way, the $(TESTS) entry 'foo.test' will become 't/foo.sh', which have the same number of characters. * tests/: Rename ... * t/: ... to this. * t/*.test: Rename ... * t/*.sh: ... to this. * t/.gitignore: Removed as obsolete. * t/defs: Adjust. * t/gen-testsuite-part: Likewise. * t/list-of-tests.mk: Likewise. * t/ccnoco.sh: Likewise. * t/ccnoco3.sh: Likewise. * t/self-check-cleanup.tap: Likewise. * t/self-check-dir.tap: Likewise. * t/self-check-me.tap: Likewise. * t/self-check-reexec.tap: Likewise. * README: Likewise. * bootstrap: Likewise * configure.ac: Likewise. * Makefile.am: Likewise. * .gitignore: Likewise. * syntax-check.mk: Likewise. Signed-off-by: Stefano Lattarini <stefano.lattarini@gmail.com>
* tests: remove recipes that run tests with 'prove'Stefano Lattarini2012-04-062-148/+0
| | | | | | | | | | | | | | | | | Those recipes has served its purpose by helping us during the development of TAP support in Automake, to ensure our TAP driver didn't have gratuitous incompatibilities with the 'prove' test runner. But they are now unused, out-of-date and bitrotting. So it's better to just remove them. We can resurrect them at a later time if the need arises. * tests/Makefile.am (PROVE, AM_PROVEFLAGS, AM_PROVECMD): Remove these variables. (prove, installprove): Remove these targets and their recipe. (EXTRA_DIST): Don't distribute 'ax/prove-runner' anymore. * ax/prove-runner: Delete. Signed-off-by: Stefano Lattarini <stefano.lattarini@gmail.com>
* tests: move most helper scripts and files into the 'ax' subdirectoryStefano Lattarini2012-04-0695-103/+112
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * tests/defs-static.in ($am_testauxdir): New variable. * tests/testsuite-summary-checks.sh: Moved ... * tests/ax/testsuite-summary-checks.sh: ... here. * tests/trivial-test-driver: Moved ... * tests/ax/trivial-test-driver: ... here. * tests/tap-summary-aux.sh: Moved ... * tests/ax/tap-summary-aux.sh: ... here. * tests/distcheck-hook-m4.am: Moved ... * tests/ax/distcheck-hook-m4.am: ... here. * tests/prove-runner: Moved ... * tests/ax/prove-runner: ... here. * tests/depcomp.sh: Moved ... * tests/ax/depcomp.sh: ... here. * tests/tap-setup.sh: Moved ... * tests/ax/tap-setup.sh: ... here. * tests/tap-functions.sh: Moved ... * tests/ax/tap-functions.sh: ... here. * tests/plain-functions.sh: Moved ... * tests/ax/plain-functions.sh: ... here. * tests/extract-testsuite-summary: Moved ... * tests/ax/extract-testsuite-summary.pl: .. . here. * tests/gen-testsuite-part: Adjusted accordingly. * tests/Makefile.am: Likewise. * tests/defs: Likewise. * syntax-check.mk: Likewise. * Several tests: Likewise. Signed-off-by: Stefano Lattarini <stefano.lattarini@gmail.com>
* tests: fix a spurious failures with non-GNU makeStefano Lattarini2012-04-051-2/+2
| | | | | | | | * tests/instdir-no-empty.test: Also pass proper AM_MAKEFLAGS to make invocations that might recurse, to ensure the macro definitions passed from the command line are properly propagated. Signed-off-by: Stefano Lattarini <stefano.lattarini@gmail.com>
* texinfo: don't clutter the builddir when using modern texi2dviStefano Lattarini2012-04-043-76/+103
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In modern versions of texi2dvi (at least since version 1.135, which comes with Texinfo 4.13) the '-o' option does not imply anymore the '--clean' option. As a consequence, lots of TeX-generated auxiliary files are now left in the build directory by the 'pdf', 'ps' and 'dvi' rules. This is especially annoying with non-recursive setups having the '.texi' files in a subdirectory, as in: info_TEXINFOS = doc/foo.texi In this case, the stray auxiliary files are left in the top build directory (since TeX is run from there). See for example: <http://lists.gnu.org/archive/html/bug-bison/2012-04/msg00002.html> See also automake bug#11146. * lib/am/texibuild.am: Call 'texi2dvi' and 'texi2pdf' with the '--clean' option. Update comments accordingly. * tests/txinfo-noclutter.test: New test. * tests/txinfo18.test: Remove as obsolete, the still relevant parts of it moved into the new test. * tests/list-of-tests.mk: Adjust. * NEWS: Update. Signed-off-by: Stefano Lattarini <stefano.lattarini@gmail.com>
* maint: reorganize the source tree and make it less clutteredStefano Lattarini2012-03-282-1449/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * TODO: Move ... * old/TODO: ... here. This is done because this file is quite outdated, and today TODO and wishlist items are better handled though the debbugs tracker. * ChangeLog.00: Move ... * old/ChangeLog.00: ... here. * ChangeLog.01: Move ... * old/ChangeLog.01: ... here. * ChangeLog.02: Move ... * old/ChangeLog.02: ... here. * ChangeLog.03: Move ... * old/ChangeLog.03: ... here. * ChangeLog.04: Move ... * old/ChangeLog.04: ... here. * ChangeLog.09: Move ... * old/ChangeLog.09: ... here. * ChangeLog.11: Move ... * old/ChangeLog.11: ... here. * ChangeLog.96: Move ... * old/ChangeLog.96: ... here. * ChangeLog.98: Move ... * old/ChangeLog.98: ... here. * tests/ChangeLog-old: Move ... * old/ChangeLog-tests: .. here. * tests/Makefile.am (EXTRA_DIST): Adjust. * Makefile.am (EXTRA_DIST): Likewise. * .autom4te.cfg: New file, instructing the autotools to place the autom4te cache directory in '.autom4te.cache' rather than in 'autom4te.cache'. * .gitignore: Adjust. * Makefile.am (maintainer-clean-local): Remove the '.autom4te.cache' directory. Signed-off-by: Stefano Lattarini <stefano.lattarini@gmail.com>
* Merge branch 'maint'Stefano Lattarini2012-03-276-7/+128
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * maint: depcomp: support tcc (Tiny C Compiler) tests: workaround for automatic linker determination and conditionals info: allow user to inhibit pruning of '${infodir}/dir' vala tests: fix spurious failures with older valac (<= 0.7.2) tests: fix a timestamp issue, and other minor buglets tests: fix spurious failure with older autoconf build: remove duplicated entries in $(TESTS) + Extra non-trivia edits: * tests/link_cond.test: Use 'configure.ac', not 'configure.in'. Signed-off-by: Stefano Lattarini <stefano.lattarini@gmail.com>
| * tests: workaround for automatic linker determination and conditionalsStefano Lattarini2012-03-272-0/+91
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | See automake bug#11089. Automake is not very smart in automatically determining the command to be used to link a program whose source files' languages are conditionally defined. For example, an input like: if HAVE_CXX foo_SOURCES = more.c++ else foo_SOURCES = less.c endif will cause the build rules for 'foo' to *unconditionally* use the C++ compiler for linking, even when the 'HAVE_CXX' conditional evaluates to false (which might mean that no C++ compiler is available). This behaviour is not really correct, but it's easy enough to work around, and it's only relevant for fringe use cases (at best). So let's just test that the workaround really works. * tests/link_cond.test: New test. * tests/list-of-tests.mk: Add it. * THANKS: Update. Signed-off-by: Stefano Lattarini <stefano.lattarini@gmail.com>
| * info: allow user to inhibit pruning of '${infodir}/dir'Stefano Lattarini2012-03-271-5/+35
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This should have ideally been part of commit 'v1.11-519-g1ec1668' of 23-11-2011 "info: allow user to inhibit creation/update of '${infodir}/dir'". Well, better late than never. * lib/am/texinfos.am (uninstall-info-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'. To avoid code duplication with ... (install-info-am): ... the recipe of this target, move common code out to ... (am__can_run_installinfo): ... this new internal variable. * tests/install-info-dir.test: Enhance. * doc/automake.texi (Texinfo): Update. * NEWS: Likewise. Signed-off-by: Stefano Lattarini <stefano.lattarini@gmail.com>
| * vala tests: fix spurious failures with older valac (<= 0.7.2)Bruno Haible2012-03-263-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | See automake bug#11093. The Vala compiler before the 0.7.3 release does not support the '--profile' option. But some of our tests were relying on it, so skip those tests if the detected Vala compiler is too old. * tests/vala-vpath.test, tests/vala-mix.test, tests/vala-mix2.test (configure.in): Require vala version >= 0.7.3 in AM_PROG_VALAC call. Co-authored-by: Stefano Lattarini <stefano.lattarini@gmail.com> Signed-off-by: Stefano Lattarini <stefano.lattarini@gmail.com>
| * tests: fix a timestamp issue, and other minor bugletsStefano Lattarini2012-03-261-7/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Cherry picked from commit v1.11-1988-g82616f0 of 21-02-2012. Reported by Panther Martin in automake bug#10848. See also automake bug#11093. * tests/conffile-leading-dot.test: Add a proper '$sleep' invocation, to avoid spurious failures on fast systems without sub-second timestamp resolutions. Add other minor related and unrelated improvements and fixlets since we are at it. Signed-off-by: Stefano Lattarini <stefano.lattarini@gmail.com>
| * tests: fix spurious failure with older autoconfStefano Lattarini2012-03-261-1/+1
| | | | | | | | | | | | | | | | | | | | Cherry picked from commit v1.11-1950-gba5a89b of 16-02-2012. * tests/conffile-leading-dot.test: Relax grepping of 'config.status' stderr, to cater for older autoconf. Issue revealed by a failure with autoconf 2.63 on Cygwin 1.5.25. See also automake bug#11093. Signed-off-by: Stefano Lattarini <stefano.lattarini@gmail.com>
| * build: remove duplicated entries in $(TESTS)Stefano Lattarini2012-03-241-3/+0
| | | | | | | | | | | | | | * tests/list-of-tests.mk (handwritten_TESTS): Remove duplicated entries for test cases 'extra-portability*.test'. Signed-off-by: Stefano Lattarini <stefano.lattarini@gmail.com>
* | docs: fix some small typos and grammarosTim Landscheidt2012-03-241-1/+1
| | | | | | | | | | | | | | | | * doc/automake.texi (Using the TAP test protocol): Here ... * tests/tap-doc2.test: ... and here. Copyright-paperwork-exempt: yes Signed-off-by: Stefano Lattarini <stefano.lattarini@gmail.com>
* | fixup: bootstrapping issues with 'list-of-tests.mk'Stefano Lattarini2012-03-211-9/+12
| | | | | | | | | | | | | | | | * tests/list-of-tests.mk: This file is expected to be executed directly with make from the bootstrap script, so we can't use Automake '##' comments after line continuations. Signed-off-by: Stefano Lattarini <stefano.lattarini@gmail.com>
* | Merge branch 'maint'Stefano Lattarini2012-03-212-27/+27
|\ \ | |/ | | | | | | | | | | | | | | | | | | | | | | * maint: maint: move definition of XFAIL_TESTS near TESTS Actually, after the trivial merge conflicts have been solved, what this change actually does is moving the definition of XFAIL_TESTS near that of handwritten_TESTS. But the rationale is the same of that of commit 'v1.11-761-gabf40ce' (being merged here), and still works, so all is good. Signed-off-by: Stefano Lattarini <stefano.lattarini@gmail.com>
| * maint: move definition of XFAIL_TESTS near TESTSStefano Lattarini2012-03-212-17/+17
| | | | | | | | | | | | | | | | | | | | | | | | The $(TESTS) variable is defined in file 'tests/list-of-tests.mk', while the $(XFAIL_TESTS) variable is defined in 'tests/Makefile.am'. This means that when a new xfailing test is to be added, two files must be touched; this is suboptimal and slightly confusing. * tests/Makefile.am (XFAIL_TESTS): Definition moved ... * tests/list-of-tests.mk: ... here. Signed-off-by: Stefano Lattarini <stefano.lattarini@gmail.com>
* | tests: fix spurious failures caused by uses of 'configure.in'Stefano Lattarini2012-03-198-8/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Issue introduced by the recent merges of maint into master, and revealed by "make maintainer-check". * tests/aclocal-install-fail.test: Likewise. * tests/aclocal-install-mkdir.test: Likewise. * tests/aclocal-verbose-install.test: Likewise. * tests/installdir.test: Likewise. * tests/instdir-cond2.test: Likewise. * tests/instdir-no-empty.test: Likewise. * tests/python-pr10995.test: Likewise. * tests/aclocal-no-install-no-mkdir.test: Likewise. Signed-off-by: Stefano Lattarini <stefano.lattarini@gmail.com>
* | Merge branch 'maint'Stefano Lattarini2012-03-1811-33/+421
|\ \ | |/ | | | | | | | | | | | | | | | | * maint: install-mans: avoid spurious failure with NetBSD make install: don't create empty dirs when an empty 'foo_PRIMARY' is used aclocal: remove a couple of useless imports aclocal: create local directory where to install m4 files Signed-off-by: Stefano Lattarini <stefano.lattarini@gmail.com>
| * install: don't create empty dirs when an empty 'foo_PRIMARY' is usedStefano Lattarini2012-03-187-33/+186
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fixes automake bug#11030 and bug#10997. An empty declaration of "foo_PRIMARY" in a Makefile.am used to cause the generated install rules to create the directory $(foodir) anyway, even if nothing was to be installed there. While this could be seen as a convenient way to create a $(foodir) directory upon "make install" (respecting $(DESTDIR) settings and such), it also caused problems with conditionals; for example, an input of: if FALSE pgkdata_DATA = something endif caused the generated install rules to unconditionally create the $(pkgdatadir) directory (see automake bug#10997). Also, a user wanting to create an empty directory upon installation can easily do so with a custom install hook, as in: installdirs-local: $(MKDIR_P) $(DESTDIR)$(foodir) install-data-hook: installdirs-local On the other hand, the old behavior of "always create $(foodir), even if 'foo_PRIMARY' is empty" was harder and more tricky to override. Thus, from now on, an empty declaration of "foo_PRIMARY" will not cause the directory $(foodir) to be created upon "make install" anymore. * lib/am/data.am, lib/am/java.am, lib/am/libs.am, lib/am/lisp.am, lib/am/ltlib.am, lib/am/mans.am, lib/am/progs.am, lib/am/python.am, lib/am/scripts.am, lib/am/texinfos.am: Adjust install rules to avoid creating an installation directory if no files are actually to be installed there. * tests/instdir-empty.test: Remove, it was testing a semantic opposite to the one we now want and implement. * tests/instdir-no-empty.test: New test, check the new semantic. * tests/instdir-cond.test: Enhance. Move the still-failing part of the test ... * tests/instdir-cond2.test: ... here. * tests/list-of-tests.mk, tests/Makefile.am (XFAIL_TESTS): Update. * tests/java3.test: Adjust to avoid spurious failures. * HACKING, NEWS, THANKS: Update. Signed-off-by: Stefano Lattarini <stefano.lattarini@gmail.com>
| * aclocal: create local directory where to install m4 filesStefano Lattarini2012-03-165-0/+234
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fixes automake bug#8168 and bug#10816. A call like "aclocal -I m4 --install" used to fail if the 'm4' directory wasn't pre-existing. This could be particularly annoying when running in a checked-out version from a VCS like git, which doesn't allow empty directories to be tracked. * aclocal.in (File::Path): New import. (scan_m4_dirs): Don't die if the first directory of type FT_USER doesn't exist and the '--install' option was given; that directory will be created later ... (install_file): ... here. Change signature of this function: now it takes as second argument the destination directory rather than the destination file. Crate the destination directory if it doesn't already exist. In verbose mode, tell what is being copied where. (write_aclocal): Update to the changes in 'install_file'. * NEWS, THANKS: Update. * tests/aclocal-install-fail.test: New test. * tests/aclocal-install-mkdir.test: Likewise. * tests/aclocal-no-install-no-mkdir.test: Likewise. * tests/aclocal-verbose-install.test: Likewise. * tests/list-of-tests.mk: Add them. Signed-off-by: Stefano Lattarini <stefano.lattarini@gmail.com>
* | Merge branch 'maint'Stefano Lattarini2012-03-153-2/+70
|\ \ | |/ | | | | | | | | | | | | * maint: python: avoid failures due to $(am__py_compile) being undefined python: expose automake bug#10995 Signed-off-by: Stefano Lattarini <stefano.lattarini@gmail.com>
| * python: avoid failures due to $(am__py_compile) being undefinedSteven Drake2012-03-151-2/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fixes automake bug#10995, introduced in commit v1.11-372-gb46debf. * lib/am/python.am: Move the definition of 'am__py_compile' to ensure it is always emitted in the output Makefile.in. Previously, this wouldn't have happened if the input Makefile.am contained a 'noinst_PYTHON' declaration before a 'python_PYTHON' one. * tests/Makefile.am (XFAIL_TESTS): Remove 'python-pr10995.test' and 'python.test'. * NEWS: Update. Copyright-paperwork-exempt: yes Signed-off-by: Stefano Lattarini <stefano.lattarini@gmail.com>
| * python: expose automake bug#10995Stefano Lattarini2012-03-154-2/+72
| | | | | | | | | | | | | | | | | | | | | | | | * tests/python.test: Expose the bug in grepping tests. * tests/python-noinst.test: New functional test to expose the bug. * tests/list-of-tests.mk: Add it. * tests/Makefile.am (XFAIL_TESTS): Add the new test and the extended one. * THANKS: Update. Signed-off-by: Stefano Lattarini <stefano.lattarini@gmail.com>
* | tests: one more use of 'unindent' functionStefano Lattarini2012-03-141-2/+2
| | | | | | | | | | | | | | * tests/yacc-d-cxx.test (write_parse, write_main): Use 'unindent' instead of ad-hoc sed invocation to strip extra leading whitespace. Signed-off-by: Stefano Lattarini <stefano.lattarini@gmail.com>
* | tests: remove redundant 'set -e' callsStefano Lattarini2012-03-1426-52/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * tests/dist-pr109765.test: Do not set the 'errexit' shell flag, as it is already set by 'tests/defs'. * tests/instdir-cond.test: Likewise. * tests/instdir-empty.test: Likewise. * tests/lex-clean-cxx.test: Likewise. * tests/lex-clean.test: Likewise. * tests/lex-depend-cxx.test: Likewise. * tests/lex-depend.test: Likewise. * tests/lex-line.test: Likewise. * tests/lex-nodist.test: Likewise. * tests/lex-pr204.test: Likewise. * tests/silent-lex.test: Likewise. * tests/silent-yacc-headers.test: Likewise. * tests/silent-yacc.test: Likewise. * tests/vala-mix2.test: Likewise. * tests/yacc-auxdir.test: Likewise. * tests/yacc-bison-skeleton-cxx.test: Likewise. * tests/yacc-bison-skeleton.test: Likewise. * tests/yacc-clean-cxx.test: Likewise. * tests/yacc-cxx.test: Likewise. * tests/yacc-d-cxx.test: Likewise. * tests/yacc-deleted-headers.test: Likewise. * tests/yacc-depend.test: Likewise. * tests/yacc-depend2.test: Likewise. * tests/yacc-line.test: Likewise. * tests/yacc-mix-c-cxx.test: Likewise. * tests/yacc-weirdnames.test: Likewise. Signed-off-by: Stefano Lattarini <stefano.lattarini@gmail.com>
* | Merge branch 'maint'Stefano Lattarini2012-03-147-5/+183
|\ \ | |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * maint: tests: avoid spurious failures in get-sysconf.test scripts: bump the depcomp scriptversion sync: some auxiliary files synced from upstream coverage: an empty foo_PRIMARY should create directory $(foodir) coverage: make sure am__py_compile is defined when needed coverage: expose automake bug#10997 coverage: expose automake bug#10975 getopt: relax version requirement for perl + Extra non-trivial edits: * tests/dist-pr109765.test: Use 'configure.ac', not 'configure.in'. * tests/instdir-cond.test: Likewise. * tests/instdir-empty.test: Likewise. Signed-off-by: Stefano Lattarini <stefano.lattarini@gmail.com>
| * tests: avoid spurious failures in get-sysconf.testStefano Lattarini2012-03-141-4/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This change fixes the last bit of automake bug#10866. * tests/get-sysconf.test: When Homebrew spawns a build, even if from a project's VCS, it stages the files in a new temporary directory, instead of building directly from a VCS checkout. This behaviour was causing a spurious failure in this test, which expected to find either a ChangeLog file or a .git directory in the source directory (the former happening when the test was run from a distribution tarball, the latter when it was run from a git checkout). The Homebrew issue shows that these expectations are not truly warranted, so relax the test to just give a warning, not a failure, in case they do not hold. Since we are at it, fix an unrelated weakness in the displaying of the git log, which could have failed when the builddir was not a subdirectory of the srcdir. Signed-off-by: Stefano Lattarini <stefano.lattarini@gmail.com>
| * coverage: an empty foo_PRIMARY should create directory $(foodir)Stefano Lattarini2012-03-122-0/+59
| | | | | | | | | | | | | | | | | | | | | | | | | | | | For example, a Makefile.am containing the definition: pkgdata_DATA = should cause the 'install' rule of the generated Makefile.in to create the '$(pkgdatadir)' directory (respecting any DESTDIR setting as well). Suggestion by Peter Breitenlohner in automake bug#10997. Signed-off-by: Stefano Lattarini <stefano.lattarini@gmail.com>
| * coverage: make sure am__py_compile is defined when neededStefano Lattarini2012-03-121-3/+21
| | | | | | | | | | | | | | | | | | See automake bug#10995. * tests/python.test: Also make sure 'am__py_compile' is defined correctly in the generated Makefile.in. Signed-off-by: Stefano Lattarini <stefano.lattarini@gmail.com>
| * coverage: expose automake bug#10997Daiki Ueno2012-03-123-0/+51
| | | | | | | | | | | | | | | | | | * tests/instdir-cond.test: New test. * tests/list-of-tests.mk: Add it. * tests/Makefile.am (XFAIL_TESTS): Likewise. Copyright-paperwork-exempt: yes Signed-off-by: Stefano Lattarini <stefano.lattarini@gmail.com>
| * coverage: expose automake bug#10975Stefano Lattarini2012-03-093-0/+46
| | | | | | | | | | | | * tests/dist-pr10975.test: New test. * tests/list-of-tests.mk: Add it. * tests/Makefile.am (XFAIL_TESTS): Likewise.
| * Merge branch 'msvc' into maintPeter Rosin2012-03-07121-53/+1551
| |\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This merge remedies the confusing situation that some changes destined for both the master branch and the release branch (a.k.a. branch-1.11) currently needs to be made on the non-obvious msvc branch and not on the more natural maint branch. This has caused a seemingly endless string of less than optimal commits. The reason for the confusion stems from the fact that the changes made on the msvc branch became too radical and was considered only suitable for the master branch, and was thus written in a form suitable for master and then merged there. Later, the msvc branch was merged directly into branch-1.11, in order to rush the new features to the market and to keep the released scripts (lib/ar-lib, lib/compile and lib/depcomp) consistent with those on the master branch. However, some changes had to be made to the features added by the msvc branch in order for them to fit the requirements of branch-1.11, notably that the warnings issued in the extra-portability class cannot be enabled by -Wall in the 1.11.x maintenance releases. In retrospect, it would have been better to not merge msvc directly into branch-1.11, but instead do it via the maint branch (followed up with a dummy merge from maint into master) the moment it was decided that the msvc changes should make it into branch-1.11. All in all, this merge is going to affect neither the master branch nor branch-1.11, since it is followed up with dummy merges masking all changes. The merge is made to maintain the sanity of the poor developers, who wishes to once again have a working maint branch. Discussion about merging the msvc branch into branch-1.11: http://lists.gnu.org/archive/html/automake/2011-10/msg00030.html Discussion about why this merge hasn't happened before: http://lists.gnu.org/archive/html/automake/2011-12/msg00051.html Extra edits below. * lib/Automake/ChannelDefs.pm: Use the version from branch-1.11. * tests/ar-lib3.test: Likewise. * tests/ar-lib4.test: Likewise. * tests/extra-portability.test: Likewise. * tests/extra-portability2.test: Likewise. * tests/extradep.test: Likewise. * tests/extradep2.test: Likewise. * tests/list-of-tests.mk: Likewise. * HACKING: Backport the version from branch-1.11 while at it (as the change on branch-1.11 is also present on master via an unrelated commit), even though this change has nothing to do with the changes on the msvc branch.
* | | tests: fix spurious failure with older m4Stefano Lattarini2012-03-141-2/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Reported by Panther Martin in automake bug#10866, diagnosed by Panther Martin and Eric Blake. Older GNU m4 versions (e.g., 1.4.6) did error reporting at the end of an error construct rather than the beginning. This was causing a spurious testsuite failure due to an off-by-one error in the line number reported in an aclocal diagnostic. * tests/cond41.test: Keep all the body of the 'AM_COND_IF' invocation on a single line, to avoid the off-by-one error. Signed-off-by: Stefano Lattarini <stefano.lattarini@gmail.com>
* | | tests: remove useless sleep from tests on remake rulesStefano Lattarini2012-03-077-7/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The sleeps were there to make generated autotools files strictly newer than their sources; however, this is not necessary, since POSIX mandates that make considers files with the same timestamp of their dependencies to be up-to-date. * tests/remake9a.test: Remove useless $sleep. * tests/remake9b.test: Likewise. * tests/remake9c.test: Likewise. * tests/remake9d.test: Likewise. * tests/remake10a.test: Likewise. * tests/remake10b.test: Likewise. * tests/remake10c.test: Likewise.
* | | tests: do not clobber the $CC set by AM_PROG_CC_C_OPeter Rosin2012-03-061-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | If $CC is originally a losing compiler, AM_PROG_CC_C_O will modify $CC. "$MAKE -e" will then clobber this modified $CC and reintroduce the raw losing compiler causing the test to fail, as subdir-objects is in effect. * tests/yacc-dist-nobuild-subdir.test: Drop -e from the $MAKE invocations. This is safe since DISTCHECK_CONFIGURE_FLAGS is not specified in the Makefile and since the YACC override is carried over from the configure invocation into the Makefile making it redundant to specifiy it again in the environment for $MAKE.
* | | tests: explicitly state that our lexers do not require unistd.hPeter Rosin2012-03-0620-0/+77
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | By default, GNU flex generates code that is dependent on unistd.h, which is not portable to non-ANSI systems causing spurious test failures. * tests/cond35.test (tscan.l): Define YY_NO_UNISTD_H. * tests/lex-clean.test (lexer.l): Likewise. * tests/lex-depend.test (joe.l): Likewise. * tests/lex-lib-external.test (foo.l): Likewise. * tests/lex-lib.test (foo.l): Likewise. * tests/lex-libobj.test (foo.l): Likewise. * tests/lex-line.test (zardoz.l): Likewise. * tests/lex-nodist.test (lexer.l): Likewise. * tests/lex-noyywrap.test (foo.l): Likewise. * tests/lex-pr204.test (lexer.l): Likewise. * tests/lex-subobj-nodep.test (subl/sl.l): Likewise. * tests/lex3.test (foo.l): Likewise. * tests/lex5.test (foo/foo.l): Likewise. * tests/lexvpath.test (lexer.l): Likewise. * tests/silent-lex.test (foo.l): Likewise. * tests/silent-many-gcc.test (foo5.l): Likewise. * tests/silent-many-generic.test (foo5.l): Likewise. * tests/lex-clean-cxx.test (parsefoo.lxx): Likewise. Also specify the never-interactive option to prevent usage of the non-ANSI function isatty(3) (from unistd.h). * tests/lex-depend-cxx.test (joe.ll): Likewise. * tests/README: Describe these quirks.
* | | Merge branch 'msvc'Peter Rosin2012-03-064-79/+103
|\ \ \ | | |/ | |/| | | | | | | * msvc: scripts: support -I <dir> -L <dir> and -l <lib> for cl in compile
| * | scripts: support -I <dir> -L <dir> and -l <lib> for cl in compilePeter Rosin2012-03-064-79/+103
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | POSIX mandates that the compiler accepts a space between the -I, -l and -L options and their respective arguments. See http://pubs.opengroup.org/onlinepubs/000095399/utilities/c99.html * lib/compile (func_cl_dashl): New function with factored out code for implementing the -l option for the cl wrapper. (func_cl_dashL): New function with factored out code implementing the -L option for the cl wrapper. (func_cl_wrapper): Use func_cl_dashl to implement both -l <lib> and -l<lib>, and func_cl_dashL to implement both -L <dir> and -L<dir>. Also add support for -I <dir>. (scriptversion): Update. * tests/compile3.test: Test both with and without a space between -I, -l and -L and their respective arguments. * tests/compile5.test: Likewise. * tests/compile6.test: Likewise. * tests/compile3.test: Likewise. * NEWS: Update.
| * | scripts: recognize the "q", "s" and "S" actions/modifiers in ar-libPeter Rosin2012-03-021-0/+26
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * lib/ar-lib: Implement the "q" (quick) action as a synonym for "r" (replace). Ignore "s" (symbol index) and "S" (no symbol index) when used as modifiers and "s" when used as a command, there is simply no way for Microsoft lib to not update the symbol table index in the archive. (scriptversion): Update. * tests/ar-lib.test: Check the added behavior. Also add checks for the recently added "u" (update) and "v" (verbose) modifiers.
| * | Merge branch 'maint' into msvcPeter Rosin2012-03-0254-1458/+3774
| |\ \ | | |/
| * | tests: add missing dependency for some 'ar-lib*.test' testsStefano Lattarini2012-01-121-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | This change fixes spurious failures of the tests ar-lib4.test, ar-lib6a.test and ar-lib6b.test. * tests/Makefile.am (ar-lib4.log): Depend explicitly on the `libtool-macros.log' file. (ar-lib6a.log, ar-lib6b.log): Likewise.
* | | cosmetics: remove useless escaping for "'" characterStefano Lattarini2012-03-041-2/+2
| | |
* | | test defs: remove redundant and unused requirementsStefano Lattarini2012-03-041-18/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | * tests/defs (xsi-bin-sh, xsi-shell): Remove these requirements, they have never been used. (cygpath, cscope): Recognizing these explicitly is mostly redundant; just merge them with the default "catch all" rule, and adjust that accordingly. (bzip2): Adjust some outdated comments.
* | | tests: fix spurious failure on case-insensitive file systemsStefano Lattarini2012-03-031-2/+0
| | | | | | | | | | | | | | | | | | | | | See automake bug#10866. * tests/java-uninstall.test: Relax the test a little to cater to case-insensitive file systems, like HFS+ on MacOS X.
* | | tests: fix spurious failure due to exported MAKEINFOStefano Lattarini2012-03-021-0/+6
| | | | | | | | | | | | | | | | | | | | | * tests/txinfo30.test: Unset variable MAKEINFO, as its content could take precedence over our faked makeinfo script and cause a spurious failure. Reported as part of automake bug#10866. Add trailing ':' command since we are at it.
* | | tests: fix spurious failure in a vala testStefano Lattarini2012-03-021-1/+1
| | | | | | | | | | | | | | | | | | * tests/vala-mix2.test: Append to 'configure.ac' rather than to 'configure.in'. Reported as part of automake bug#10866, and also revealed by "make maintainer-check".
* | | self checks: relax tests on cleanupStefano Lattarini2012-03-021-6/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Some find(1) implementations have problems operating recursively on directories having subdirectories with null permissions, even when the permissions of such subdirectory should be fixed by find before it descends into them; for example, with this setup: % mkdir a a/b % chmod 000 a/b a command like this: % find a -type d ! -perm -700 -exec chmod u+rwx '{}' ';' fails with this diagnostic on MacOS X 10.7: find: a/b: Permission denied and with this diagnostic on Solaris 10: find: cannot read dir a/b: Permission denied The problem is that our self checks were simply demanding too much from our cleanup trap: our tests never use subdirectories with null permissions, so it doesn't matter if the cleanup trap fails to handle those. Just relax the self checks to avoid such useless testsuite noise. * tests/self-check-cleanup.tap: Only try directories missing write permissions, not with null permission. That should be enough for our usages.
* | | Merge branch 'fix-vala-test'Peter Rosin2012-03-021-1/+1
|\ \ \ | | | | | | | | | | | | | | | | * fix-vala-test: tests: fix (harmless) botched merge
| * | | tests: fix (harmless) botched mergePeter Rosin2012-03-021-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Commit v1.11-1750-g9928ea5 of 2012-01-16 (Merge branch 'maint') reordered the macro calls so that AM_PROG_AR ended up after AC_PROG_LIBTOOL, which is not allowed. This error went by undetected since AC_PROG_LIBTOOL was redefined, but that also removed the ordering requirement making the error benign. * tests/vala.test: Put AM_PROG_AR before AC_PROG_LIBTOOL.