summaryrefslogtreecommitdiff
path: root/cli/js/tests/os_test.ts
diff options
context:
space:
mode:
authorRyan Dahl <ry@tinyclouds.org>2020-04-28 12:35:23 -0400
committerGitHub <noreply@github.com>2020-04-28 12:35:23 -0400
commite0ca60e7707b5896ce67301aefd1de4a76e3cf75 (patch)
tree4c5357a3d3482b14cbc3773374aa885e1e29e90c /cli/js/tests/os_test.ts
parentf7ab19b1b7ba929f7fd1550e2e4ecebe91cd9ea3 (diff)
BREAKING: Use LLVM target triple for Deno.build (#4948)
Deno.build.os values have changed to correspond to standard LLVM target triples "win" -> "windows" "mac" -> "darwin"
Diffstat (limited to 'cli/js/tests/os_test.ts')
-rw-r--r--cli/js/tests/os_test.ts64
1 files changed, 32 insertions, 32 deletions
diff --git a/cli/js/tests/os_test.ts b/cli/js/tests/os_test.ts
index 423cded50..58dcd1bc5 100644
--- a/cli/js/tests/os_test.ts
+++ b/cli/js/tests/os_test.ts
@@ -50,7 +50,7 @@ unitTest(function envPermissionDenied2(): void {
// case-insensitive. Case normalization needs be done using the collation
// that Windows uses, rather than naively using String.toLowerCase().
unitTest(
- { ignore: Deno.build.os !== "win", perms: { env: true, run: true } },
+ { ignore: Deno.build.os !== "windows", perms: { env: true, run: true } },
async function envCaseInsensitive() {
// Utility function that runs a Deno subprocess with the environment
// specified in `inputEnv`. The subprocess reads the environment variables
@@ -116,7 +116,7 @@ unitTest(function osPid(): void {
});
unitTest({ perms: { env: true } }, function getDir(): void {
- type supportOS = "mac" | "win" | "linux";
+ type supportOS = "darwin" | "windows" | "linux";
interface Runtime {
os: supportOS;
@@ -132,120 +132,120 @@ unitTest({ perms: { env: true } }, function getDir(): void {
{
kind: "config",
runtime: [
- { os: "mac", shouldHaveValue: true },
- { os: "win", shouldHaveValue: true },
+ { os: "darwin", shouldHaveValue: true },
+ { os: "windows", shouldHaveValue: true },
{ os: "linux", shouldHaveValue: true },
],
},
{
kind: "cache",
runtime: [
- { os: "mac", shouldHaveValue: true },
- { os: "win", shouldHaveValue: true },
+ { os: "darwin", shouldHaveValue: true },
+ { os: "windows", shouldHaveValue: true },
{ os: "linux", shouldHaveValue: true },
],
},
{
kind: "executable",
runtime: [
- { os: "mac", shouldHaveValue: false },
- { os: "win", shouldHaveValue: false },
+ { os: "darwin", shouldHaveValue: false },
+ { os: "windows", shouldHaveValue: false },
{ os: "linux", shouldHaveValue: true },
],
},
{
kind: "data",
runtime: [
- { os: "mac", shouldHaveValue: true },
- { os: "win", shouldHaveValue: true },
+ { os: "darwin", shouldHaveValue: true },
+ { os: "windows", shouldHaveValue: true },
{ os: "linux", shouldHaveValue: true },
],
},
{
kind: "data_local",
runtime: [
- { os: "mac", shouldHaveValue: true },
- { os: "win", shouldHaveValue: true },
+ { os: "darwin", shouldHaveValue: true },
+ { os: "windows", shouldHaveValue: true },
{ os: "linux", shouldHaveValue: true },
],
},
{
kind: "audio",
runtime: [
- { os: "mac", shouldHaveValue: true },
- { os: "win", shouldHaveValue: true },
+ { os: "darwin", shouldHaveValue: true },
+ { os: "windows", shouldHaveValue: true },
{ os: "linux", shouldHaveValue: false },
],
},
{
kind: "desktop",
runtime: [
- { os: "mac", shouldHaveValue: true },
- { os: "win", shouldHaveValue: true },
+ { os: "darwin", shouldHaveValue: true },
+ { os: "windows", shouldHaveValue: true },
{ os: "linux", shouldHaveValue: false },
],
},
{
kind: "document",
runtime: [
- { os: "mac", shouldHaveValue: true },
- { os: "win", shouldHaveValue: true },
+ { os: "darwin", shouldHaveValue: true },
+ { os: "windows", shouldHaveValue: true },
{ os: "linux", shouldHaveValue: false },
],
},
{
kind: "download",
runtime: [
- { os: "mac", shouldHaveValue: true },
- { os: "win", shouldHaveValue: true },
+ { os: "darwin", shouldHaveValue: true },
+ { os: "windows", shouldHaveValue: true },
{ os: "linux", shouldHaveValue: false },
],
},
{
kind: "font",
runtime: [
- { os: "mac", shouldHaveValue: true },
- { os: "win", shouldHaveValue: false },
+ { os: "darwin", shouldHaveValue: true },
+ { os: "windows", shouldHaveValue: false },
{ os: "linux", shouldHaveValue: true },
],
},
{
kind: "picture",
runtime: [
- { os: "mac", shouldHaveValue: true },
- { os: "win", shouldHaveValue: true },
+ { os: "darwin", shouldHaveValue: true },
+ { os: "windows", shouldHaveValue: true },
{ os: "linux", shouldHaveValue: false },
],
},
{
kind: "public",
runtime: [
- { os: "mac", shouldHaveValue: true },
- { os: "win", shouldHaveValue: true },
+ { os: "darwin", shouldHaveValue: true },
+ { os: "windows", shouldHaveValue: true },
{ os: "linux", shouldHaveValue: false },
],
},
{
kind: "template",
runtime: [
- { os: "mac", shouldHaveValue: false },
- { os: "win", shouldHaveValue: true },
+ { os: "darwin", shouldHaveValue: false },
+ { os: "windows", shouldHaveValue: true },
{ os: "linux", shouldHaveValue: false },
],
},
{
kind: "tmp",
runtime: [
- { os: "mac", shouldHaveValue: true },
- { os: "win", shouldHaveValue: true },
+ { os: "darwin", shouldHaveValue: true },
+ { os: "windows", shouldHaveValue: true },
{ os: "linux", shouldHaveValue: true },
],
},
{
kind: "video",
runtime: [
- { os: "mac", shouldHaveValue: true },
- { os: "win", shouldHaveValue: true },
+ { os: "darwin", shouldHaveValue: true },
+ { os: "windows", shouldHaveValue: true },
{ os: "linux", shouldHaveValue: false },
],
},