Skip to content

Commit

Permalink
Add zos-z to specs::Platform
Browse files Browse the repository at this point in the history
  • Loading branch information
AntoinePrv committed Sep 21, 2023
1 parent a937e9b commit a73fe3d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
3 changes: 3 additions & 0 deletions libmamba/include/mamba/specs/platform.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ namespace mamba::specs
win_32,
win_64,
win_arm64,
zos_z,

// For reflexion purposes only
count_,
Expand Down Expand Up @@ -120,6 +121,8 @@ namespace mamba::specs
return "win-64";
case Platform::win_arm64:
return "win-arm64";
case Platform::zos_z:
return "zos-z";
default:
return "";
}
Expand Down
8 changes: 4 additions & 4 deletions libmamba/tests/src/specs/test_platform.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,10 @@ TEST_SUITE("specs::platform")
TEST_CASE("known_platform")
{
static constexpr decltype(known_platform_names()) expected{
"noarch", "linux-32", "linux-64", "linux-armv6l",
"linux-armv7l", "linux-aarch64", "linux-ppc64le", "linux-ppc64",
"linux-s390x", "linux-riscv32", "linux-riscv64", "osx-64",
"osx-arm64", "win-32", "win-64", "win-arm64",
"noarch", "linux-32", "linux-64", "linux-armv6l", "linux-armv7l",
"linux-aarch64", "linux-ppc64le", "linux-ppc64", "linux-s390x", "linux-riscv32",
"linux-riscv64", "osx-64", "osx-arm64", "win-32", "win-64",
"win-arm64", "zos-z",

};
CHECK_EQ(expected, known_platform_names());
Expand Down

0 comments on commit a73fe3d

Please sign in to comment.