From a68147a47213cce9dcfc0a6b84eb51ce4a451862 Mon Sep 17 00:00:00 2001 From: Pascal Rigaux Date: Mon, 30 Apr 2007 10:01:04 +0000 Subject: add test checking the bad upgrade of mandriva-release in 2007.1: basesystem is removed! --- t/data/SPECS/obsolete-and-conflict/d.spec | 14 ++++++++++++++ t/superuser--obsolete-and-conflict.t | 20 ++++++++++++++++++-- 2 files changed, 32 insertions(+), 2 deletions(-) create mode 100644 t/data/SPECS/obsolete-and-conflict/d.spec (limited to 't') diff --git a/t/data/SPECS/obsolete-and-conflict/d.spec b/t/data/SPECS/obsolete-and-conflict/d.spec new file mode 100644 index 00000000..938a5acc --- /dev/null +++ b/t/data/SPECS/obsolete-and-conflict/d.spec @@ -0,0 +1,14 @@ +Summary: d +Name: d +Version: 1 +Release: 1 +License: x +Group: x +Url: x +Requires: a +BuildRoot: %{_tmppath}/%{name} + +%description +x + +%files diff --git a/t/superuser--obsolete-and-conflict.t b/t/superuser--obsolete-and-conflict.t index 221f224e..8116eaea 100644 --- a/t/superuser--obsolete-and-conflict.t +++ b/t/superuser--obsolete-and-conflict.t @@ -1,8 +1,10 @@ #!/usr/bin/perl # package "a" is split into "b" and "c", -# where "b" obsoletes "a" and requires "c" +# where "b" obsoletes/provides "a" and requires "c" # "c" conflicts with "a" (but can't obsolete it) +# +# package "d" requires "a" use strict; use lib '.', 't'; @@ -20,5 +22,19 @@ urpmi('a'); check_installed_names('a'); urpmi('b c'); - check_installed_names('b', 'c'); + +urpme('b c'); + +urpmi('a d'); +check_installed_names('a', 'd'); +urpmi('b c'); +check_installed_names('b', 'c', 'd'); + +urpme('b c d'); + +urpmi('a d'); +check_installed_names('a', 'd'); +urpmi('--split-level 1 b c'); +# argh, d is removed :-( +#check_installed_names('b', 'c', 'd'); -- cgit v1.2.1