chiark / gitweb /
test suite: i18n-messages: Test message translation
[dgit.git] / tests / tests / i18n-messages
1 #!/bin/bash
2 set -e
3 autoimport=
4 . tests/lib
5
6 t-dependencies NO-DGIT GDR
7 t-restrict x-dgit-out-of-tree-only
8 # We don't run this test in-tree because:
9 #  1. The .mo files that we would use might need to be built
10 #     and would certainly have to be `installed' somewhere we
11 #     could reference them.  We could do that here maybe,
12 #     but it would risk dirtying the tree because the i18n
13 #     machinery is dirtying, and also:
14 #  2. The locale system does not provide a path-like variable
15 #     we could use to point to our not-yet-installed .mo files.
16 #     There is LOCPATH but setting it breaks everything because
17 #     it disables `locale archives' and those are what provides
18 #     important infrastructure.
19
20 t-setup-import gdr-convert-gbp-noarchive
21
22 cd $p
23
24 t-gdr-prep-new-upstream 2.1
25 git tag v2.1 upstream
26
27 git branch startpoint
28 v=2.1-1
29
30 git checkout master
31
32 anchor=$(t-git-debrebase anchor)
33
34 t-expect-fail F:'old anchor is recognised' \
35 t-git-debrebase --anchor=$anchor new-upstream 2.1
36
37 expect_fail_lcmessages=en_US.UTF-8
38 t-expect-fail F:'old anchor is recognized' \
39 t-git-debrebase --anchor=$anchor new-upstream 2.1
40
41 t-ok