diff options
author | Pascal Rigaux <pixel@mandriva.com> | 2007-06-22 08:01:38 +0000 |
---|---|---|
committer | Pascal Rigaux <pixel@mandriva.com> | 2007-06-22 08:01:38 +0000 |
commit | 8adcdd428ca36ec03120bd015d422bbe6118b209 (patch) | |
tree | efe2d123103ee0b93ec892e2fbcdac0ab0b5fbb8 /t/superuser--obsolete-and-provide.t | |
parent | 882d7e342e67969ba8239639ddca42cf5507f2f6 (diff) | |
download | urpmi-8adcdd428ca36ec03120bd015d422bbe6118b209.tar urpmi-8adcdd428ca36ec03120bd015d422bbe6118b209.tar.gz urpmi-8adcdd428ca36ec03120bd015d422bbe6118b209.tar.bz2 urpmi-8adcdd428ca36ec03120bd015d422bbe6118b209.tar.xz urpmi-8adcdd428ca36ec03120bd015d422bbe6118b209.zip |
obsolete-and-provide test into provide-and-no-obsolete (much better name since there really is no obsolete used)
Diffstat (limited to 't/superuser--obsolete-and-provide.t')
-rw-r--r-- | t/superuser--obsolete-and-provide.t | 27 |
1 files changed, 0 insertions, 27 deletions
diff --git a/t/superuser--obsolete-and-provide.t b/t/superuser--obsolete-and-provide.t deleted file mode 100644 index dc45e45e..00000000 --- a/t/superuser--obsolete-and-provide.t +++ /dev/null @@ -1,27 +0,0 @@ -#!/usr/bin/perl - -use strict; -use lib '.', 't'; -use helper; -use Test::More 'no_plan'; - -my $medium_name = 'obsolete-and-provide'; - -need_root_and_prepare(); - -urpmi_addmedia("$medium_name $::pwd/media/$medium_name"); - -test(sub { urpmi('a'); check_installed_fullnames("a-2-1"); urpme('a') }); -test(sub { urpmi('b'); check_installed_fullnames("a-1-1", "b-3-1"); urpme('a b') }); - -#- the following test fail. "urpmi --auto-select" should do the same as "urpmi a" -#test(sub { urpmi('--auto-select'); check_installed_fullnames("a-2-1"); urpme('a') }); - -sub test { - my ($f) = @_; - system_("rpm --root $::pwd/root -i media/$medium_name/a-1-*.rpm"); - is(`rpm -qa --root $::pwd/root`, "a-1-1\n"); - - $f->(); - check_nothing_installed(); -} |