diff options
| author | nicole mazzuca <mazzucan@outlook.com> | 2019-07-18 19:07:00 -0700 |
|---|---|---|
| committer | Griffin Downs <35574547+grdowns@users.noreply.github.com> | 2019-07-18 19:07:00 -0700 |
| commit | 825055378998ae6bc24e8cb0bce2e1fbf9a425da (patch) | |
| tree | dce29d762b06e5f44e985051c3d5520c7ca1cc19 /toolsrc/src/tests.utils.cpp | |
| parent | 9b5ee9941232dc3dd07085de747b1e95bb059525 (diff) | |
| download | vcpkg-825055378998ae6bc24e8cb0bce2e1fbf9a425da.tar.gz vcpkg-825055378998ae6bc24e8cb0bce2e1fbf9a425da.zip | |
Rewrite the tests! now they're cross-platform! (#7315)
* begin exploratory rewriting of tests
* continue working on tests
* more test work! holy butts vcpkg-tests/plan.cpp was a bunch of work
* finish writing new tests
- [x] write catch2 tests
- [ ] rewrite/at least delete the VS project files
- [ ] document running tests
* Fix tests to work on WSL, rewrite test vcxproj
still need to test on macOS
also, delete tests.pch.h
* Condense add_test calls
Diffstat (limited to 'toolsrc/src/tests.utils.cpp')
| -rw-r--r-- | toolsrc/src/tests.utils.cpp | 42 |
1 files changed, 0 insertions, 42 deletions
diff --git a/toolsrc/src/tests.utils.cpp b/toolsrc/src/tests.utils.cpp deleted file mode 100644 index ac391f559..000000000 --- a/toolsrc/src/tests.utils.cpp +++ /dev/null @@ -1,42 +0,0 @@ -#include "tests.pch.h" - -#include "tests.utils.h" - -using namespace Microsoft::VisualStudio::CppUnitTestFramework; -using namespace vcpkg; - -std::unique_ptr<StatusParagraph> make_status_pgh(const char* name, - const char* depends, - const char* default_features, - const char* triplet) -{ - using Pgh = std::unordered_map<std::string, std::string>; - return std::make_unique<StatusParagraph>(Pgh{{"Package", name}, - {"Version", "1"}, - {"Architecture", triplet}, - {"Multi-Arch", "same"}, - {"Depends", depends}, - {"Default-Features", default_features}, - {"Status", "install ok installed"}}); -} -std::unique_ptr<StatusParagraph> make_status_feature_pgh(const char* name, - const char* feature, - const char* depends, - const char* triplet) -{ - using Pgh = std::unordered_map<std::string, std::string>; - return std::make_unique<StatusParagraph>(Pgh{{"Package", name}, - {"Version", "1"}, - {"Feature", feature}, - {"Architecture", triplet}, - {"Multi-Arch", "same"}, - {"Depends", depends}, - {"Status", "install ok installed"}}); -} - -PackageSpec unsafe_pspec(std::string name, Triplet t) -{ - auto m_ret = PackageSpec::from_name_and_triplet(name, t); - Assert::IsTrue(m_ret.has_value()); - return m_ret.value_or_exit(VCPKG_LINE_INFO); -} |
