]> git.ipfire.org Git - thirdparty/gettext.git/commitdiff
libtextstyle: Omit tests that rely on more than the public libtextstyle API.
authorBruno Haible <bruno@clisp.org>
Fri, 15 Feb 2019 20:41:01 +0000 (21:41 +0100)
committerBruno Haible <bruno@clisp.org>
Fri, 15 Feb 2019 20:44:08 +0000 (21:44 +0100)
* libtextstyle/autogen.sh: Don't pass --with-tests to gnulib-tool.
(GNULIB_MODULES): Add term-ostream-tests.
* gnulib-local/modules/term-ostream-tests (Makefile.am): Don't add
@INTL_MACOSX_LIBS@ to test_term_ostream_LDADD.
* gettext-tools/gnulib-tests/Makefile.am (test_term_ostream_LDADD): Add
@INTL_MACOSX_LIBS@ here.

gettext-tools/gnulib-tests/Makefile.am
gnulib-local/modules/term-ostream-tests
libtextstyle/autogen.sh

index 0d13afc3e420c49ac2b9f37ff4a997953bbc1597..e30881a014a4aeff7945bc2ffda9037a8b330f24 100644 (file)
@@ -24,6 +24,10 @@ AUTOMAKE_OPTIONS += 1.11 color-tests
 # Ensure that test-quotearg.c finds libintl.h.
 AM_CPPFLAGS += -I../intl
 
+# Ensure that test-term-ostream links correctly when using --disable-shared
+# on macOS.
+test_term_ostream_LDADD += @INTL_MACOSX_LIBS@
+
 
 # Remove .deps directories creates by 'configure'.
 # I would say that this left-over is an Automake 1.16.1 bug.
index 6de0c87bae8a66511257c4d574c3fddc4ca231ee..f6613bcb77758a398dcb5898a24cdebf6d7c11a0 100644 (file)
@@ -27,4 +27,4 @@ Makefile.am:
 TESTS += test-term-ostream-xterm.sh
 TESTS_ENVIRONMENT += srcdir='$(srcdir)'
 check_PROGRAMS += test-term-ostream
-test_term_ostream_LDADD = $(LIBTERMCAP) $(LDADD) @INTL_MACOSX_LIBS@
+test_term_ostream_LDADD = $(LIBTERMCAP) $(LDADD)
index e4a86e765ab8eab0ca979f9029410e05cf01829c..6773c22a1ce128416f14f4d4596b93167a7cf40e 100755 (executable)
@@ -86,9 +86,11 @@ if test $skip_gnulib = false; then
       filename
       xalloc
       xconcat-filename
+
+      term-ostream-tests
     '
     $GNULIB_TOOL --lib=libtextstyle --source-base=lib --m4-base=gnulib-m4 --tests-base=tests \
-      --with-tests --makefile-name=Makefile.gnulib --libtool \
+      --makefile-name=Makefile.gnulib --libtool \
       --local-dir=gnulib-local --local-dir=../gnulib-local \
       --import --avoid=hash-tests $GNULIB_MODULES
     $GNULIB_TOOL --copy-file build-aux/config.guess; chmod a+x build-aux/config.guess