-
Notifications
You must be signed in to change notification settings - Fork 6.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[vcpkg build] fix build command (#12072)
- Loading branch information
1 parent
f10c492
commit 22c8e3a
Showing
7 changed files
with
99 additions
and
48 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
#include <catch2/catch.hpp> | ||
|
||
#include <string> | ||
#include <iterator> | ||
#include <vcpkg/base/files.h> | ||
#include <vcpkg/commands.h> | ||
#include <vcpkg/vcpkgcmdarguments.h> | ||
#include <vcpkg/vcpkgpaths.h> | ||
|
||
TEST_CASE ("build smoke test", "[commands-build]") | ||
{ | ||
using namespace vcpkg; | ||
static const std::string args_raw[] = {"build", "zlib"}; | ||
|
||
auto& fs_wrapper = Files::get_real_filesystem(); | ||
VcpkgCmdArguments args = VcpkgCmdArguments::create_from_arg_sequence(std::begin(args_raw), std::end(args_raw)); | ||
VcpkgPaths paths(fs_wrapper, args); | ||
auto triplet = default_triplet(args); | ||
const auto exit_code = Build::Command::perform(args, paths, triplet); | ||
REQUIRE(exit_code == 0); | ||
REQUIRE(paths.get_filesystem().is_directory(paths.buildtrees / fs::u8path("zlib"))); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters