Merge branch 'nd/pack-deltify-regression-fix'
[alt-git.git] / t / t0205-gettext-poison.sh
blob438e778d6afa086e8823b2ac3d38c2a26f171dbd
1 #!/bin/sh
3 # Copyright (c) 2010 Ævar Arnfjörð Bjarmason
6 test_description='Gettext Shell poison'
8 . ./lib-gettext.sh
10 test_expect_success GETTEXT_POISON 'sanity: $GIT_INTERNAL_GETTEXT_SH_SCHEME" is poison' '
11 test "$GIT_INTERNAL_GETTEXT_SH_SCHEME" = "poison"
14 test_expect_success GETTEXT_POISON 'gettext: our gettext() fallback has poison semantics' '
15 printf "# GETTEXT POISON #" >expect &&
16 gettext "test" >actual &&
17 test_cmp expect actual &&
18 printf "# GETTEXT POISON #" >expect &&
19 gettext "test more words" >actual &&
20 test_cmp expect actual
23 test_expect_success GETTEXT_POISON 'eval_gettext: our eval_gettext() fallback has poison semantics' '
24 printf "# GETTEXT POISON #" >expect &&
25 eval_gettext "test" >actual &&
26 test_cmp expect actual &&
27 printf "# GETTEXT POISON #" >expect &&
28 eval_gettext "test more words" >actual &&
29 test_cmp expect actual
32 test_done