+2013-07-25 Daiki Ueno <ueno@gnu.org>
+
+ tests: fix path adjustment for LTLIBINTL
+ * configure.ac: Output tests/init.cfg.
+
2013-05-29 Stefano Lattarini <stefano.lattarini@gmail.com> (tiny change)
* configure.ac (AM_INIT_AUTOMAKE): Add 'parallel-tests' option.
AC_CONFIG_FILES([tests/Makefile])
+AC_CONFIG_FILES([tests/init.cfg])
+
AC_CONFIG_FILES([gnulib-tests/Makefile])
AC_OUTPUT
+2013-07-25 Daiki Ueno <ueno@gnu.org>
+
+ tests: fix path adjustment for LTLIBINTL
+ * lang-bash: Add gettext-runtime/src to PATH for gettext.sh.
+ * lang-sh: Likewise.
+ * lang-c: Don't set top_builddir here.
+ * lang-c++: Likewise.
+ * lang-objc: Likewise.
+ * Makefile.am (TESTS_ENVIRONMENT): Don't set PATH here.
+ * init.cfg.in: New file to adjust relative path needed by
+ LTLIBINTL.
+
2013-07-21 Daiki Ueno <ueno@gnu.org>
* Makefile.am (EXTRA_DIST): Add init.sh.
#CHECKER = valgrind --tool=massif --format=html --depth=10 --alloc-fn=xmalloc --alloc-fn=xrealloc --stacks=no
TESTS_ENVIRONMENT = top_srcdir=$(top_srcdir) \
- PATH=.:../src:../../gettext-runtime/src:$(top_srcdir)/../gettext-runtime/src:$$PATH \
GETTEXT="$(CHECKER) tstgettext" \
NGETTEXT="$(CHECKER) tstngettext" \
XGETTEXT="$(CHECKER) xgettext" \
--- /dev/null
+# Variable needed by LTLIBINTL.
+top_builddir=../..
+
+LTLIBINTL="@LTLIBINTL@"
#! /bin/sh
-. "${srcdir=.}/init.sh"; path_prepend_ . ../src
+. "${srcdir=.}/init.sh"; path_prepend_ . ../src ${top_srcdir=..}/../gettext-runtime/src
# Test of gettext facilities in the bash language.
# Assumes an fr_FR locale is installed.
}
EOF
-# Variable needed by LTLIBINTL.
-top_builddir=../..
-
tmpfiles="$tmpfiles l-c-prog.${OBJEXT} l-c-prog${EXEEXT}"
# Put the -I flags before ${CFLAGS} ${CPPFLAGS}, to make sure that libintl.h
# is found in the build directory, regardless of -I options present in
}
EOF
-# Variable needed by LTLIBINTL.
-top_builddir=../..
-
tmpfiles="$tmpfiles l-c++-prog.${OBJEXT} l-c++-prog${EXEEXT}"
# Compile in two steps from .cc to .o and from .o to 'l-c++-prog'. This way,
# relinking is faster because doesn't need to redo the first step.
}
EOF
-# Variable needed by LTLIBINTL.
-top_builddir=../..
-
tmpfiles="$tmpfiles l-objc-prog.${OBJEXT} l-objc-prog${EXEEXT}"
# Put the -I flags before ${CFLAGS} ${CPPFLAGS}, to make sure that libintl.h
# is found in the build directory, regardless of -I options present in
#! /bin/sh
-. "${srcdir=.}/init.sh"; path_prepend_ . ../src
+. "${srcdir=.}/init.sh"; path_prepend_ . ../src ${top_srcdir=..}/../gettext-runtime/src
# Test of gettext facilities in the sh language.
# Assumes an fr_FR locale is installed.