From: Bruno Haible Date: Tue, 1 Jul 2025 14:50:52 +0000 (+0200) Subject: autopoint: Update unit test. X-Git-Tag: v0.26~38 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=4b4a1bee4bf4005524822b6c39038fb188331d29;p=thirdparty%2Fgettext.git autopoint: Update unit test. * gettext-tools/tests/autopoint-1: Update for new autopoint behaviour. --- diff --git a/gettext-tools/tests/autopoint-1 b/gettext-tools/tests/autopoint-1 index 4ad48e112..9c442101d 100755 --- a/gettext-tools/tests/autopoint-1 +++ b/gettext-tools/tests/autopoint-1 @@ -1,6 +1,6 @@ #! /bin/sh . "${srcdir=.}/init.sh"; path_prepend_ . ../src - +set -x # Test for sanity checks. : ${AUTOCONF=autoconf} @@ -40,32 +40,12 @@ AC_CONFIG_FILES([Makefile]) AC_OUTPUT EOF -$gettext_datadir/autopoint 2>&1 | grep 'Missing version' 2>&1 >/dev/null \ - || Exit 1 +$gettext_datadir/autopoint || Exit 1 test ! -d intl || Exit 1 -test ! -d m4 || Exit 1 -test ! -d po || Exit 1 - -# VERSION specified through intl/VERSION file, but in wrong format -cat <<\EOF >configure.ac -AC_INIT -AC_CONFIG_SRCDIR(hello.c) - -AC_PROG_CC - -AC_CONFIG_FILES([Makefile]) -AC_OUTPUT -EOF - -test -d intl || mkdir intl -echo bogus-version > intl/VERSION - -$gettext_datadir/autopoint 2>&1 | grep 'Missing version' 2>&1 >/dev/null \ - || Exit 1 - -test ! -d m4 || Exit 1 -test ! -d po || Exit 1 +test -d m4 || Exit 1 +test -d po || Exit 1 +rm -rf ABOUT-NLS config.rpath m4 po # VERSION specified through intl/VERSION file cat <<\EOF >configure.ac @@ -73,6 +53,7 @@ AC_INIT AC_CONFIG_SRCDIR(hello.c) AC_PROG_CC +AM_GNU_GETTEXT() AC_CONFIG_FILES([Makefile]) AC_OUTPUT