aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2006-02-05 15:55:56 +0000
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2006-02-05 15:55:56 +0000
commit4b88a90c69c414fbe86c65c109db51050a464ebb (patch)
tree4e3a2ff3507b11f7ec5d898ba7733c4a38084896
parentf054305e69d8c194cda6d302ed671c137fea07d0 (diff)
downloadpaludis-4b88a90c69c414fbe86c65c109db51050a464ebb.tar.gz
paludis-4b88a90c69c414fbe86c65c109db51050a464ebb.tar.xz
Circular dependency behaviour tests
-rw-r--r--paludis/dep_list_TEST.cc44
1 files changed, 44 insertions, 0 deletions
diff --git a/paludis/dep_list_TEST.cc b/paludis/dep_list_TEST.cc
index 2261433..bb388fa 100644
--- a/paludis/dep_list_TEST.cc
+++ b/paludis/dep_list_TEST.cc
@@ -1058,6 +1058,50 @@ namespace test_cases
} test_dep_list_41;
/**
+ * \test Test DepList resolution behaviour.
+ *
+ * \ingroup Test
+ */
+ struct DepListTestCase42 : DepListTestCase<42>
+ {
+ void populate_repo()
+ {
+ repo->add_version("cat", "one", "1")->set(vmk_depend, "|| ( cat/two cat/three )");
+ repo->add_version("cat", "two", "1")->set(vmk_depend, "cat/one");
+ repo->add_version("cat", "three", "1");
+ }
+
+ void populate_expected()
+ {
+ merge_target="cat/one";
+ expected.push_back("cat/three-1:0::repo");
+ expected.push_back("cat/one-1:0::repo");
+ }
+ } test_dep_list_42;
+
+ /**
+ * \test Test DepList resolution behaviour.
+ *
+ * \ingroup Test
+ */
+ struct DepListTestCase43 : DepListTestCase<43>
+ {
+ void populate_repo()
+ {
+ repo->add_version("cat", "one", "1")->set(vmk_depend, "|| ( cat/two cat/three )");
+ repo->add_version("cat", "two", "1")->set(vmk_rdepend, "cat/one");
+ repo->add_version("cat", "three", "1");
+ }
+
+ void populate_expected()
+ {
+ merge_target="cat/one";
+ expected.push_back("cat/two-1:0::repo");
+ expected.push_back("cat/one-1:0::repo");
+ }
+ } test_dep_list_43;
+
+ /**
* \test Test DepList transactional add behaviour.
*
* \ingroup Test