aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/findlang.pl3
-rwxr-xr-xtests/findlang.sh9
2 files changed, 11 insertions, 1 deletions
diff --git a/tests/findlang.pl b/tests/findlang.pl
index 12deb62..fa6dbae 100644
--- a/tests/findlang.pl
+++ b/tests/findlang.pl
@@ -11,10 +11,11 @@ my $testarbo = "$pwd/find-lang-root";
my %files = (
- # file => [ lang, is_dir ]
+ # file => [ lang, is_%dir ]
'/usr/share/man/fr' => [ 'fr', 0 ],
'/usr/share/locale/pt_BR' => [ 'pt_BR', 0 ],
'/usr/share/gnome/help/lang/pt_BR' => [ 'pt_BR', 0 ],
+ '/usr/share/gnome/help/lang/en_GB' => [ 'en_GB', 0 ],
'/usr/share/gnome/help/lang' => [ '', 1 ],
);
diff --git a/tests/findlang.sh b/tests/findlang.sh
index 10b422c..fb7110a 100755
--- a/tests/findlang.sh
+++ b/tests/findlang.sh
@@ -1,3 +1,12 @@
#!/bin/sh
+rm -fr find-lang-root
+for file in \
+ find-lang-root/usr/share/man/fr/man1/lang.1.lzma \
+ find-lang-root/usr/share/locale/pt_BR/LC_MESSAGES/lang.mo \
+ find-lang-root/usr/share/gnome/help/lang/pt_BR/any.html \
+ find-lang-root/usr/share/gnome/help/lang/en_GB/any.html
+do install -D Makefile $file
+done
+
exec perl tests/findlang.pl