From: Bruno Haible Date: Mon, 14 Jan 2002 12:10:09 +0000 (+0000) Subject: Avoid test failure on SuSE Linux. X-Git-Tag: v0.11~73 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=82ebf66047d50ac3ae660ffbc78ec637fb84af11;p=thirdparty%2Fgettext.git Avoid test failure on SuSE Linux. --- diff --git a/tests/ChangeLog b/tests/ChangeLog index 1ae0056b5..c214b3af5 100644 --- a/tests/ChangeLog +++ b/tests/ChangeLog @@ -1,3 +1,7 @@ +2002-01-12 Bruno Haible + + * lang-librep: Skip the test if the 'rep' program is too old. + 2002-01-09 Bruno Haible * lang-c: Use xsetenv before setlocale. diff --git a/tests/lang-librep b/tests/lang-librep index 0feacda37..d505329ca 100755 --- a/tests/lang-librep +++ b/tests/lang-librep @@ -74,9 +74,13 @@ cat <<\EOF > prog.ok EUR remplace FF. EOF -# Test for presence of rep. +# Test for presence of rep version 0.15.3 or newer. (rep --version) >/dev/null 2>/dev/null \ || { echo "SKIP: lang-librep"; rm -fr $tmpfiles; exit 77; } +case `rep --version | sed -e 's/^[^0-9]*//'` in + 0.[0-9] | 0.1[0-5] | 0.[0-9].* | 0.1[0-4].* | 0.15.[0-2] ) + echo "SKIP: lang-librep"; rm -fr $tmpfiles; exit 77;; +esac LANGUAGE= LC_ALL=fr_FR rep --no-rc --batch prog.jl > prog.out || exit 1 ${DIFF} prog.ok prog.out || exit 1