diff options
author | Pascal Rigaux <pixel@mandriva.com> | 2008-01-18 10:00:35 +0000 |
---|---|---|
committer | Pascal Rigaux <pixel@mandriva.com> | 2008-01-18 10:00:35 +0000 |
commit | 5d4311c58758b18152facd047a87c04f2c8a960b (patch) | |
tree | 0af09aabff27f432e2f75158338f448d2083b95a /t | |
parent | 4be1dc56b5b2e5367459bc97ef10e6a529e28927 (diff) | |
download | urpmi-5d4311c58758b18152facd047a87c04f2c8a960b.tar urpmi-5d4311c58758b18152facd047a87c04f2c8a960b.tar.gz urpmi-5d4311c58758b18152facd047a87c04f2c8a960b.tar.bz2 urpmi-5d4311c58758b18152facd047a87c04f2c8a960b.tar.xz urpmi-5d4311c58758b18152facd047a87c04f2c8a960b.zip |
check rpmv3 pkg files are installed
Diffstat (limited to 't')
-rw-r--r-- | t/superuser--media_info_dir.t | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/t/superuser--media_info_dir.t b/t/superuser--media_info_dir.t index d82b7042..2a2ba334 100644 --- a/t/superuser--media_info_dir.t +++ b/t/superuser--media_info_dir.t @@ -58,9 +58,14 @@ sub urpmi_force_skip_unknown { sub rpm_v3 { my @names = qw(libtermcap nls p2c); - system_("rpm --root $::pwd/root -i --noscripts media/rpm-v3/*.i386.rpm"); + system_("rpm --root $::pwd/root -i --ignorearch --noscripts media/rpm-v3/*.i386.rpm"); check_installed_names(@names); + foreach ('/lib/libtermcap.so.2.0.8', '/usr/lib/libp2c.so.1.2.0', '/usr/X11R6/lib/X11/nls/C') { + ok(-e "root$_", "root$_ should exist"); + ok(-s "root$_", "root$_ should not be empty"); + } + system_("rpm --root $::pwd/root -e --noscripts " . join(' ', @names)); is(`rpm -qa --root $::pwd/root`, ''); |