aboutsummaryrefslogtreecommitdiff
path: root/paludis/resolver/resolver_TEST_binaries.cc
diff options
context:
space:
mode:
authorAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2011-09-03 23:30:24 +0100
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2011-09-03 23:30:24 +0100
commit989e826f9820e73fa2a7c3e6254eb38bbcbe9dac (patch)
tree962d3b003f8f68e8340942b7c2dae07e9ff82262 /paludis/resolver/resolver_TEST_binaries.cc
parentb57878f111aa8000e9a3400494025d5e47b44f9d (diff)
downloadpaludis-989e826f9820e73fa2a7c3e6254eb38bbcbe9dac.tar.gz
paludis-989e826f9820e73fa2a7c3e6254eb38bbcbe9dac.tar.xz
Self run cycles shouldn't prevent binary creation
Diffstat (limited to 'paludis/resolver/resolver_TEST_binaries.cc')
-rw-r--r--paludis/resolver/resolver_TEST_binaries.cc27
1 files changed, 25 insertions, 2 deletions
diff --git a/paludis/resolver/resolver_TEST_binaries.cc b/paludis/resolver/resolver_TEST_binaries.cc
index c402692bf..4b8fe1b60 100644
--- a/paludis/resolver/resolver_TEST_binaries.cc
+++ b/paludis/resolver/resolver_TEST_binaries.cc
@@ -71,12 +71,37 @@ namespace
};
}
+TEST_F(ResolverBinariesTestCase, SelfBuildBinary)
+{
+ std::shared_ptr<const Resolved> resolved(data->get_resolved("self-build-binary/target"));
+
+ check_resolved(resolved,
+ n::taken_change_or_remove_decisions() = make_shared_copy(DecisionChecks()
+ .change(QualifiedPackageName("self-build-binary/target"))
+ .finished()),
+ n::taken_unable_to_make_decisions() = make_shared_copy(DecisionChecks()
+ .finished()),
+ n::taken_unconfirmed_decisions() = make_shared_copy(DecisionChecks()
+ .finished()),
+ n::taken_unorderable_decisions() = make_shared_copy(DecisionChecks()
+ .change(QualifiedPackageName("self-build-binary/dep"))
+ .change(QualifiedPackageName("self-build-binary/dep"))
+ .finished()),
+ n::untaken_change_or_remove_decisions() = make_shared_copy(DecisionChecks()
+ .finished()),
+ n::untaken_unable_to_make_decisions() = make_shared_copy(DecisionChecks()
+ .finished())
+ );
+}
+
TEST_F(ResolverBinariesTestCase, SelfRunBinary)
{
std::shared_ptr<const Resolved> resolved(data->get_resolved("self-run-binary/target"));
check_resolved(resolved,
n::taken_change_or_remove_decisions() = make_shared_copy(DecisionChecks()
+ .change(QualifiedPackageName("self-run-binary/dep"))
+ .change(QualifiedPackageName("self-run-binary/dep"))
.change(QualifiedPackageName("self-run-binary/target"))
.finished()),
n::taken_unable_to_make_decisions() = make_shared_copy(DecisionChecks()
@@ -84,8 +109,6 @@ TEST_F(ResolverBinariesTestCase, SelfRunBinary)
n::taken_unconfirmed_decisions() = make_shared_copy(DecisionChecks()
.finished()),
n::taken_unorderable_decisions() = make_shared_copy(DecisionChecks()
- .change(QualifiedPackageName("self-run-binary/dep"))
- .change(QualifiedPackageName("self-run-binary/dep"))
.finished()),
n::untaken_change_or_remove_decisions() = make_shared_copy(DecisionChecks()
.finished()),