From: Roumen Petrov Date: Sun, 12 Jan 2014 19:37:30 +0000 (+0200) Subject: tests: fix "make check" under VPATH builds X-Git-Tag: v0.19~146 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e80ce54d96efb364600f6596536745c91fca8052;p=thirdparty%2Fgettext.git tests: fix "make check" under VPATH builds Previously, we generated init.cfg in $builddir, while tests/init.sh reads its configuration file (init.cfg) from $srcdir. This patch moves the auto-generated part into a separate file ($builddir/init-env) and read the file from $srcdir/init.cfg. --- diff --git a/gettext-tools/ChangeLog b/gettext-tools/ChangeLog index 8d0820c32..d70e7918e 100644 --- a/gettext-tools/ChangeLog +++ b/gettext-tools/ChangeLog @@ -1,3 +1,10 @@ +2014-01-28 Roumen Petrov (tiny change) + + tests: fix "make check" under VPATH builds + Reported at: + . + * configure.ac: Output init-env instead of init.cfg. + 2013-07-25 Daiki Ueno tests: allow each test to run individually without 'make' diff --git a/gettext-tools/configure.ac b/gettext-tools/configure.ac index 348ba87f5..b721106e1 100644 --- a/gettext-tools/configure.ac +++ b/gettext-tools/configure.ac @@ -549,11 +549,11 @@ AC_CONFIG_FILES([m4/Makefile]) AC_CONFIG_FILES([tests/Makefile]) -AC_CONFIG_FILES([tests/init.cfg], [changequote(<<,>>) +AC_CONFIG_FILES([tests/init-env], [changequote(<<,>>) # Replace occurrences of make variables with shell variables so they # can be adjusted in test scripts. - sed -e 's|\$(\([^)]*\))|${\1}|g' < tests/init.cfg > tests/init.cfg.tmp - mv tests/init.cfg.tmp tests/init.cfg + sed -e 's|\$(\([^)]*\))|${\1}|g' < tests/init-env > tests/init-env.tmp + mv tests/init-env.tmp tests/init-env changequote([,])]) AC_CONFIG_FILES([gnulib-tests/Makefile]) diff --git a/gettext-tools/tests/ChangeLog b/gettext-tools/tests/ChangeLog index 9a3268d48..2413c4844 100644 --- a/gettext-tools/tests/ChangeLog +++ b/gettext-tools/tests/ChangeLog @@ -1,3 +1,12 @@ +2014-01-28 Roumen Petrov (tiny change) + + tests: fix "make check" under VPATH builds + Reported at: + . + * init-env: New file renamed from init.cfg.in. + * init.cfg.in: Remove. + * init.cfg: Read $builddir/init-env. + 2014-01-28 Roumen Petrov (tiny change) Support configuration with absolute path. diff --git a/gettext-tools/tests/init.cfg.in b/gettext-tools/tests/init-env.in similarity index 100% rename from gettext-tools/tests/init.cfg.in rename to gettext-tools/tests/init-env.in diff --git a/gettext-tools/tests/init.cfg b/gettext-tools/tests/init.cfg new file mode 100644 index 000000000..6917e72a0 --- /dev/null +++ b/gettext-tools/tests/init.cfg @@ -0,0 +1,2 @@ +test -f "./init-env" \ + && . "./init-env"