aboutsummaryrefslogtreecommitdiff
path: root/toolsrc/src/test_install_plan.cpp
diff options
context:
space:
mode:
authorRobert Schumacher <roschuma@microsoft.com>2017-08-20 19:36:43 -0700
committerRobert Schumacher <roschuma@microsoft.com>2017-08-20 19:36:43 -0700
commit1ba7cef1f07e8fd8c0053694b306dcc3960f720e (patch)
tree36dd22a0f81cafbaf142907251995c1d2f70da0d /toolsrc/src/test_install_plan.cpp
parentbd222504abea410d77487e176649ae9b6989c4e0 (diff)
downloadvcpkg-1ba7cef1f07e8fd8c0053694b306dcc3960f720e.tar.gz
vcpkg-1ba7cef1f07e8fd8c0053694b306dcc3960f720e.zip
[vcpkg] Remove incomplete default features implementation
Diffstat (limited to 'toolsrc/src/test_install_plan.cpp')
-rw-r--r--toolsrc/src/test_install_plan.cpp42
1 files changed, 0 insertions, 42 deletions
diff --git a/toolsrc/src/test_install_plan.cpp b/toolsrc/src/test_install_plan.cpp
index e7c62813e..f0884c063 100644
--- a/toolsrc/src/test_install_plan.cpp
+++ b/toolsrc/src/test_install_plan.cpp
@@ -537,47 +537,5 @@ namespace UnitTest1
features_check(&install_plan[6], "a", {"one", "core"});
features_check(&install_plan[7], "c", {"core"});
}
-
- TEST_METHOD(default_features_test)
- {
- using Pgh = std::unordered_map<std::string, std::string>;
-
- std::vector<std::unique_ptr<StatusParagraph>> status_paragraphs;
-
- PackageSpecMap spec_map(Triplet::X86_WINDOWS);
-
- auto spec_a = FullPackageSpec{
- spec_map.get_package_spec(
- {{{"Source", "a"}, {"Version", "1.3"}, {"Default-Features", "1, 2"}, {"Build-Depends", ""}},
- {{"Feature", "1"}, {"Description", "the first feature for a"}, {"Build-Depends", "b[2]"}},
- {{"Feature", "2"}, {"Description", "the second feature for a"}, {"Build-Depends", ""}},
- {{"Feature", "3"}, {"Description", "the third feature for a"}, {"Build-Depends", ""}}}),
- {""}};
- auto spec_b = FullPackageSpec{
- spec_map.get_package_spec({
- {{"Source", "b"}, {"Version", "1.3"}, {"Default-Features", "1, 2"}, {"Build-Depends", ""}},
- {{"Feature", "1"}, {"Description", "the first feature for b"}, {"Build-Depends", "c[1]"}},
- {{"Feature", "2"}, {"Description", "the second feature for b"}, {"Build-Depends", ""}},
- }),
- {""}};
-
- auto spec_c = FullPackageSpec{
- spec_map.get_package_spec({
- {{"Source", "c"}, {"Version", "1.3"}, {"Default-Features", "2"}, {"Build-Depends", ""}},
- {{"Feature", "1"}, {"Description", "the first feature for c"}, {"Build-Depends", ""}},
- {{"Feature", "2"}, {"Description", "the second feature for c"}, {"Build-Depends", ""}},
- }),
- {""}};
-
- auto install_plan =
- Dependencies::create_feature_install_plan(spec_map.map,
- FullPackageSpec::to_feature_specs({spec_a}),
- StatusParagraphs(std::move(status_paragraphs)));
-
- Assert::AreEqual(size_t(3), install_plan.size());
- features_check(&install_plan[0], "c", {"core", "1", "2"});
- features_check(&install_plan[1], "b", {"core", "1", "2"});
- features_check(&install_plan[2], "a", {"core", "1", "2"});
- }
};
} \ No newline at end of file