aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2006-02-04 23:23:52 +0000
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2006-02-04 23:23:52 +0000
commit34b66431bfd93cd8d215af6cc0f43dfb71efe7e8 (patch)
tree8f1398da2a06ff6b1c0124aad4b1bc17a4b41cb4
parentb3d054b924fe7a66bb4aedf63e70a5122fe12176 (diff)
downloadpaludis-34b66431bfd93cd8d215af6cc0f43dfb71efe7e8.tar.gz
paludis-34b66431bfd93cd8d215af6cc0f43dfb71efe7e8.tar.xz
Add a couple of dep_list tests that make use of slot deps.
-rw-r--r--paludis/dep_list_TEST.cc48
1 files changed, 48 insertions, 0 deletions
diff --git a/paludis/dep_list_TEST.cc b/paludis/dep_list_TEST.cc
index ab855e3..8901fab 100644
--- a/paludis/dep_list_TEST.cc
+++ b/paludis/dep_list_TEST.cc
@@ -466,6 +466,54 @@ namespace test_cases
} test_dep_list_15;
/**
+ * \test Test DepList resolution behaviour.
+ *
+ * \ingroup Test
+ */
+ struct DepListTestCase16 : DepListTestCase<16>
+ {
+ void populate_repo()
+ {
+ repo->add_version("cat", "one", "1")->set(vmk_depend, "cat/two:slot2");
+ repo->add_version("cat", "two", "1.1")->set(vmk_slot, "slot1");
+ repo->add_version("cat", "two", "1.2")->set(vmk_slot, "slot2");
+ repo->add_version("cat", "two", "1.3")->set(vmk_slot, "slot3");
+ }
+
+ void populate_expected()
+ {
+ merge_target = "cat/one";
+ expected.push_back("cat/two-1.2:slot2::repo");
+ expected.push_back("cat/one-1:0::repo");
+ }
+ } test_dep_list_16;
+
+ /**
+ * \test Test DepList resolution behaviour.
+ *
+ * \ingroup Test
+ */
+ struct DepListTestCase17 : DepListTestCase<17>
+ {
+ void populate_repo()
+ {
+ repo->add_version("cat", "one", "1")->set(vmk_depend, "<cat/two-1.2-r2:slot2");
+ repo->add_version("cat", "two", "1.1")->set(vmk_slot, "slot1");
+ repo->add_version("cat", "two", "1.2")->set(vmk_slot, "slot2");
+ repo->add_version("cat", "two", "1.2-r1")->set(vmk_slot, "slot2");
+ repo->add_version("cat", "two", "1.2-r2")->set(vmk_slot, "slot2");
+ repo->add_version("cat", "two", "1.3")->set(vmk_slot, "slot3");
+ }
+
+ void populate_expected()
+ {
+ merge_target = "cat/one";
+ expected.push_back("cat/two-1.2-r1:slot2::repo");
+ expected.push_back("cat/one-1:0::repo");
+ }
+ } test_dep_list_17;
+
+ /**
* \test Test DepList transactional add behaviour.
*
* \ingroup Test