archive: handle commits with an empty tree
[git/jnareb-git.git] / t / t0205-gettext-poison.sh
blob2361590d54856a1a284945e46fece2716487f624
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 set (to $GIT_INTERNAL_GETTEXT_SH_SCHEME)" '
11 test -n "$GIT_INTERNAL_GETTEXT_SH_SCHEME"
14 test_expect_success GETTEXT_POISON 'sanity: $GIT_INTERNAL_GETTEXT_SH_SCHEME" is poison' '
15 test "$GIT_INTERNAL_GETTEXT_SH_SCHEME" = "poison"
18 test_expect_success GETTEXT_POISON 'gettext: our gettext() fallback has poison semantics' '
19 printf "# GETTEXT POISON #" >expect &&
20 gettext "test" >actual &&
21 test_cmp expect actual &&
22 printf "# GETTEXT POISON #" >expect &&
23 gettext "test more words" >actual &&
24 test_cmp expect actual
27 test_expect_success GETTEXT_POISON 'eval_gettext: our eval_gettext() fallback has poison semantics' '
28 printf "# GETTEXT POISON #" >expect &&
29 eval_gettext "test" >actual &&
30 test_cmp expect actual &&
31 printf "# GETTEXT POISON #" >expect &&
32 eval_gettext "test more words" >actual &&
33 test_cmp expect actual
36 test_done