summaryrefslogtreecommitdiffstats
path: root/t/superuser--handle-conflict-deps.t
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2008-01-18 13:43:58 +0000
committerPascal Rigaux <pixel@mandriva.com>2008-01-18 13:43:58 +0000
commit57a4d47a7977a076a80602bdfa85a64c163f0502 (patch)
tree1d29bb7cc693b1d605ab7cae1f998f84c851743a /t/superuser--handle-conflict-deps.t
parentc2cb782044aef81fc7b1be14917fe8b679b31af1 (diff)
downloadurpmi-57a4d47a7977a076a80602bdfa85a64c163f0502.tar
urpmi-57a4d47a7977a076a80602bdfa85a64c163f0502.tar.gz
urpmi-57a4d47a7977a076a80602bdfa85a64c163f0502.tar.bz2
urpmi-57a4d47a7977a076a80602bdfa85a64c163f0502.tar.xz
urpmi-57a4d47a7977a076a80602bdfa85a64c163f0502.zip
add some tests (including a failing one)
Diffstat (limited to 't/superuser--handle-conflict-deps.t')
-rw-r--r--t/superuser--handle-conflict-deps.t20
1 files changed, 20 insertions, 0 deletions
diff --git a/t/superuser--handle-conflict-deps.t b/t/superuser--handle-conflict-deps.t
index 998e26ff..72de5071 100644
--- a/t/superuser--handle-conflict-deps.t
+++ b/t/superuser--handle-conflict-deps.t
@@ -3,6 +3,12 @@
# b requires b-sub
# a-sup requires a
# a conflicts with b, b conflicts with a
+#
+# c conflicts with d
+#
+# e conflicts with ff
+# f provides ff
+#
use strict;
use lib '.', 't';
use helper;
@@ -14,6 +20,11 @@ need_root_and_prepare();
my $name = 'handle-conflict-deps';
urpmi_addmedia("$name $::pwd/media/$name");
+test_simple('c', 'd');
+test_simple('d', 'c');
+#test_simple('e', 'f'); # ERROR
+test_simple('f', 'e');
+
test_conflict_on_install();
test_conflict_on_upgrade(); #test from bugs #12696, #11885
@@ -29,3 +40,12 @@ sub test_conflict_on_install {
urpmi('--auto a b');
check_installed_and_remove('b', 'b-sub'); # WARNING: why does it choose one or the other?
}
+
+sub test_simple {
+ my ($pkg1, $pkg2) = @_;
+ urpmi($pkg1);
+ check_installed_names($pkg1);
+
+ urpmi("--auto $pkg2");
+ check_installed_and_remove($pkg2);
+}