aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorOlivier Thauvin <nanardon@mandriva.org>2007-08-24 16:51:40 +0000
committerOlivier Thauvin <nanardon@mandriva.org>2007-08-24 16:51:40 +0000
commiteaa71f3c7c7b485c5baa3e205eb95f81a88eda15 (patch)
tree5cf14892e4efaadb0d779e43991942356e31ff89 /tests
parent11b8804b1e55d3f43a072270b127986fe4fc312e (diff)
downloadrpm-setup-eaa71f3c7c7b485c5baa3e205eb95f81a88eda15.tar
rpm-setup-eaa71f3c7c7b485c5baa3e205eb95f81a88eda15.tar.gz
rpm-setup-eaa71f3c7c7b485c5baa3e205eb95f81a88eda15.tar.bz2
rpm-setup-eaa71f3c7c7b485c5baa3e205eb95f81a88eda15.tar.xz
rpm-setup-eaa71f3c7c7b485c5baa3e205eb95f81a88eda15.zip
- only own parent dir and let rpm find content
Diffstat (limited to 'tests')
-rw-r--r--tests/findlang.pl10
1 files changed, 6 insertions, 4 deletions
diff --git a/tests/findlang.pl b/tests/findlang.pl
index 58dfa52..12deb62 100644
--- a/tests/findlang.pl
+++ b/tests/findlang.pl
@@ -12,17 +12,19 @@ my $testarbo = "$pwd/find-lang-root";
my %files = (
# file => [ lang, is_dir ]
- '/usr/share/man/fr' => [ 'fr', 1 ],
- '/usr/share/man/fr/man1' => [ 'fr', 1 ],
- '/usr/share/man/fr/man1/lang.1.*' => [ 'fr', 0 ],
+ '/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' => [ '', 1 ],
);
-system("/usr/bin/perl find-lang.pl $testarbo lang --with-man") and die "can't run find-lang $@";
+system("/usr/bin/perl find-lang.pl $testarbo lang --with-man --with-gnome") and die "can't run find-lang $@";
open(my $h, '<', 'lang.lang') or die "can't open lang.lang";
while (my $line = <$h>) {
chomp($line);
+ $line =~ /svn/ and next;
my ($file) = $line =~ / ([^ ]+)$/;
my ($lang) = $line =~ /%lang\(([^\)]+)\)/;
$lang ||= '';