diff options
author | Luca Casonato <hello@lcas.dev> | 2024-09-18 14:08:08 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-09-18 14:08:08 +0200 |
commit | 45b17947782986d2b3f2d9f192fdc079b468b4b0 (patch) | |
tree | f9a7d435543709a02468115186a62614afe36466 /tests/unit | |
parent | f88a9e746744258ead3cc7a205644c18da5bab60 (diff) |
tests: re-enable WebGPU tests on macOS aarch64 (#25702)
Diffstat (limited to 'tests/unit')
-rw-r--r-- | tests/unit/webgpu_test.ts | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/tests/unit/webgpu_test.ts b/tests/unit/webgpu_test.ts index 43b24e41a..78a591c71 100644 --- a/tests/unit/webgpu_test.ts +++ b/tests/unit/webgpu_test.ts @@ -10,15 +10,15 @@ try { } // Skip these tests on linux CI, because the vulkan emulator is not good enough -// yet, and skip on macOS CI because these do not have virtual GPUs. -const isLinuxOrMacCI = - (Deno.build.os === "linux" || Deno.build.os === "darwin") && isCI; +// yet, and skip on macOS x86 CI because these do not have virtual GPUs. +const isCIWithoutGPU = (Deno.build.os === "linux" || + (Deno.build.os === "darwin" && Deno.build.arch === "x86_64")) && isCI; // Skip these tests in WSL because it doesn't have good GPU support. const isWsl = await checkIsWsl(); Deno.test({ permissions: { read: true, env: true }, - ignore: isWsl || isLinuxOrMacCI, + ignore: isWsl || isCIWithoutGPU, }, async function webgpuComputePass() { const adapter = await navigator.gpu.requestAdapter(); assert(adapter); @@ -104,7 +104,7 @@ Deno.test({ Deno.test({ permissions: { read: true, env: true }, - ignore: isWsl || isLinuxOrMacCI, + ignore: isWsl || isCIWithoutGPU, }, async function webgpuHelloTriangle() { const adapter = await navigator.gpu.requestAdapter(); assert(adapter); @@ -216,7 +216,7 @@ Deno.test({ }); Deno.test({ - ignore: isWsl || isLinuxOrMacCI, + ignore: isWsl || isCIWithoutGPU, }, async function webgpuAdapterHasFeatures() { const adapter = await navigator.gpu.requestAdapter(); assert(adapter); @@ -226,7 +226,7 @@ Deno.test({ }); Deno.test({ - ignore: isWsl || isLinuxOrMacCI, + ignore: isWsl || isCIWithoutGPU, }, async function webgpuNullWindowSurfaceThrows() { const adapter = await navigator.gpu.requestAdapter(); assert(adapter); @@ -249,7 +249,7 @@ Deno.test(function getPreferredCanvasFormat() { }); Deno.test({ - ignore: isWsl || isLinuxOrMacCI, + ignore: isWsl || isCIWithoutGPU, }, async function validateGPUColor() { const adapter = await navigator.gpu.requestAdapter(); assert(adapter); @@ -312,7 +312,7 @@ Deno.test({ }); Deno.test({ - ignore: isWsl || isLinuxOrMacCI, + ignore: isWsl || isCIWithoutGPU, }, async function validateGPUExtent3D() { const adapter = await navigator.gpu.requestAdapter(); assert(adapter); @@ -412,7 +412,7 @@ Deno.test({ }); Deno.test({ - ignore: isWsl || isLinuxOrMacCI, + ignore: isWsl || isCIWithoutGPU, }, async function validateGPUOrigin3D() { const adapter = await navigator.gpu.requestAdapter(); assert(adapter); @@ -505,7 +505,7 @@ Deno.test({ }); Deno.test({ - ignore: isWsl || isLinuxOrMacCI, + ignore: isWsl || isCIWithoutGPU, }, async function beginRenderPassWithoutDepthClearValue() { const adapter = await navigator.gpu.requestAdapter(); assert(adapter); |