From: Ævar Arnfjörð Bjarmason Date: Sat, 4 Sep 2010 21:28:15 +0000 (+0000) Subject: gettext tests: skip lib-gettext.sh tests under GETTEXT_POISON X-Git-Tag: ko-pu~10^2~145 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=1b6586fa12776337f6147d7de7dec45137e7493d;p=git.git gettext tests: skip lib-gettext.sh tests under GETTEXT_POISON Change the gettext tests (all of whom use lib-gettext.sh) to skip under GETTEXT_POISON=YesPlease. We also print a message to this effect. Signed-off-by: Ævar Arnfjörð Bjarmason --- diff --git a/t/lib-gettext.sh b/t/lib-gettext.sh index f0cdd3da9..ced175c53 100644 --- a/t/lib-gettext.sh +++ b/t/lib-gettext.sh @@ -11,7 +11,7 @@ export GIT_TEXTDOMAINDIR GIT_PO_PATH . "$GIT_BUILD_DIR"/git-sh-i18n -if test_have_prereq GETTEXT +if test_have_prereq GETTEXT && test_have_prereq NO_GETTEXT_POISON then # is_IS.UTF-8 on Solaris and FreeBSD, is_IS.utf8 on Debian is_IS_locale=$(locale -a | sed -n '/^is_IS\.[uU][tT][fF]-*8$/{ @@ -38,5 +38,11 @@ then else # Only run some tests when we don't have gettext support test_set_prereq NO_GETTEXT - say "# lib-gettext: No GETTEXT support available" + + if test_have_prereq NO_GETTEXT_POISON + then + say "# lib-gettext: GETTEXT_POISON defined, can't test gettext" + else + say "# lib-gettext: No GETTEXT support available" + fi fi