aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorOlivier Thauvin <nanardon@mandriva.org>2007-08-26 12:52:29 +0000
committerOlivier Thauvin <nanardon@mandriva.org>2007-08-26 12:52:29 +0000
commit163afad6b7e0bc36aa7f27d2a9ce0625b05d1b6b (patch)
treee30fba9ca6691567fcb1344c476822ba358ca38f /tests
parent31f5c4c124cd5332b4038b11949cd99b9cfcdcc4 (diff)
downloadrpm-setup-163afad6b7e0bc36aa7f27d2a9ce0625b05d1b6b.tar
rpm-setup-163afad6b7e0bc36aa7f27d2a9ce0625b05d1b6b.tar.gz
rpm-setup-163afad6b7e0bc36aa7f27d2a9ce0625b05d1b6b.tar.bz2
rpm-setup-163afad6b7e0bc36aa7f27d2a9ce0625b05d1b6b.tar.xz
rpm-setup-163afad6b7e0bc36aa7f27d2a9ce0625b05d1b6b.zip
- test are altered by .svn files, fixing
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