aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorWilliam Boman <william@redwill.se>2022-12-08 02:13:17 +0100
committerGitHub <noreply@github.com>2022-12-08 02:13:17 +0100
commitf0a71b423991ea5589c389381ab8e022c5ef5f29 (patch)
tree6c8a4b1e37bc756c03e3468a964cfaa99ae1884e /tests
parenttest(functional): add some tests (#742) (diff)
downloadmason-f0a71b423991ea5589c389381ab8e022c5ef5f29.tar
mason-f0a71b423991ea5589c389381ab8e022c5ef5f29.tar.gz
mason-f0a71b423991ea5589c389381ab8e022c5ef5f29.tar.bz2
mason-f0a71b423991ea5589c389381ab8e022c5ef5f29.tar.lz
mason-f0a71b423991ea5589c389381ab8e022c5ef5f29.tar.xz
mason-f0a71b423991ea5589c389381ab8e022c5ef5f29.tar.zst
mason-f0a71b423991ea5589c389381ab8e022c5ef5f29.zip
feat(platform): accept darwin (#743)
Mac systems are generally referred to as the Darwin OS. For all intents and purposes, "mac" and "darwin" can be used interchangeably (although darwin will be preferred going forward).
Diffstat (limited to 'tests')
-rw-r--r--tests/mason-core/installer/context_spec.lua1
-rw-r--r--tests/mason-core/installer/linker_spec.lua1
-rw-r--r--tests/mason-core/platform_spec.lua3
3 files changed, 5 insertions, 0 deletions
diff --git a/tests/mason-core/installer/context_spec.lua b/tests/mason-core/installer/context_spec.lua
index 516aa7d2..0a5b7410 100644
--- a/tests/mason-core/installer/context_spec.lua
+++ b/tests/mason-core/installer/context_spec.lua
@@ -36,6 +36,7 @@ exec bash -c 'echo $GREETING' "$@"]]
end)
it("should write shell exec wrapper on Windows", function()
+ platform.is.darwin = false
platform.is.mac = false
platform.is.unix = false
platform.is.linux = false
diff --git a/tests/mason-core/installer/linker_spec.lua b/tests/mason-core/installer/linker_spec.lua
index cc14294b..5d3abd29 100644
--- a/tests/mason-core/installer/linker_spec.lua
+++ b/tests/mason-core/installer/linker_spec.lua
@@ -64,6 +64,7 @@ describe("installer", function()
it(
"should write executable wrapper on Windows",
async_test(function()
+ platform.is.darwin = false
platform.is.mac = false
platform.is.linux = false
platform.is.unix = false
diff --git a/tests/mason-core/platform_spec.lua b/tests/mason-core/platform_spec.lua
index dce29dab..fc1f43ed 100644
--- a/tests/mason-core/platform_spec.lua
+++ b/tests/mason-core/platform_spec.lua
@@ -74,6 +74,7 @@ describe("platform", function()
it("should be able to detect macos", function()
stub_mac()
assert.is_true(platform().is.mac)
+ assert.is_true(platform().is.darwin)
assert.is_true(platform().is.unix)
assert.is_false(platform().is.linux)
assert.is_false(platform().is.win)
@@ -82,6 +83,7 @@ describe("platform", function()
it("should be able to detect linux", function()
stub_linux()
assert.is_false(platform().is.mac)
+ assert.is_false(platform().is.darwin)
assert.is_true(platform().is.unix)
assert.is_true(platform().is.linux)
assert.is_false(platform().is.win)
@@ -90,6 +92,7 @@ describe("platform", function()
it("should be able to detect windows", function()
stub_windows()
assert.is_false(platform().is.mac)
+ assert.is_false(platform().is.darwin)
assert.is_false(platform().is.unix)
assert.is_false(platform().is.linux)
assert.is_true(platform().is.win)