tests/instdir-no-empty.test


Log

Author Commit Date CI Message
Stefano Lattarini a64ef3e4 2012-04-05T15:44:47 tests: fix a spurious failures with non-GNU make * 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>
Stefano Lattarini a5062ef4 2012-03-19T09:07:55 tests: fix spurious failures caused by uses of 'configure.in' 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>
Stefano Lattarini 368f1c4c 2012-03-16T23:48:53 install: don't create empty dirs when an empty 'foo_PRIMARY' is used 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>