summaryrefslogtreecommitdiffstats
path: root/t/superuser--split-transactions--strict-require.t
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2007-09-07 11:01:05 +0000
committerPascal Rigaux <pixel@mandriva.com>2007-09-07 11:01:05 +0000
commit0d80e998b90c8f5cfb9fbc8dc9f7974f6d0e9fe9 (patch)
treec73d523620d431db2eaa09139cae251a757ea062 /t/superuser--split-transactions--strict-require.t
parent9afe7eeb0e2c0dec3db66b4a76477a83f049e6c8 (diff)
downloadurpmi-0d80e998b90c8f5cfb9fbc8dc9f7974f6d0e9fe9.tar
urpmi-0d80e998b90c8f5cfb9fbc8dc9f7974f6d0e9fe9.tar.gz
urpmi-0d80e998b90c8f5cfb9fbc8dc9f7974f6d0e9fe9.tar.bz2
urpmi-0d80e998b90c8f5cfb9fbc8dc9f7974f6d0e9fe9.tar.xz
urpmi-0d80e998b90c8f5cfb9fbc8dc9f7974f6d0e9fe9.zip
rename test into split-transactions--promote
Diffstat (limited to 't/superuser--split-transactions--strict-require.t')
-rw-r--r--t/superuser--split-transactions--strict-require.t50
1 files changed, 0 insertions, 50 deletions
diff --git a/t/superuser--split-transactions--strict-require.t b/t/superuser--split-transactions--strict-require.t
deleted file mode 100644
index 9fa39dc3..00000000
--- a/t/superuser--split-transactions--strict-require.t
+++ /dev/null
@@ -1,50 +0,0 @@
-#!/usr/bin/perl
-
-# a-1 requires b-1
-# a-2 requires b-2
-#
-# c requires d
-# d1-1 provides d, but not d1-2
-# d2-2 provides d, but not d2-1
-use strict;
-use lib '.', 't';
-use helper;
-use urpm::util;
-use Test::More 'no_plan';
-
-need_root_and_prepare();
-
-my $name = 'split-transactions--strict-require';
-urpmi_addmedia("$name-1 $::pwd/media/$name-1");
-urpmi_addmedia("$name-2 $::pwd/media/$name-2");
-
-#- below need the promotion of "a-2" (upgraded from "a-1") to work
-test_ab('--split-length 0 b');
-test_ab('--split-level 1 b');
-
-test_ab('--split-length 0 --auto-select');
-test_ab('--split-level 1 --auto-select');
-
-#- below need the promotion of "d2" (new installed package) to work
-test_cd('--split-length 0 d1');
-test_cd('--split-level 1 d1');
-
-sub test_ab {
- my ($para) = @_;
-
- urpmi("--media $name-1 --auto a b");
- check_installed_names('a', 'b');
-
- urpmi("--media $name-2 --auto $para");
- check_installed_fullnames_and_remove('a-2-1', 'b-2-1');
-}
-
-sub test_cd {
- my ($para) = @_;
-
- urpmi("--media $name-1 --auto c");
- check_installed_names('c', 'd1');
-
- urpmi("--media $name-2 --auto $para");
- check_installed_fullnames_and_remove('c-1-1', 'd1-2-1', 'd2-2-1');
-}