1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-11-24 15:19:26 -05:00

tests: re-enable WebGPU tests on macOS aarch64 (#25702)

This commit is contained in:
Luca Casonato 2024-09-18 14:08:08 +02:00 committed by GitHub
parent f88a9e7467
commit 45b1794778
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -10,15 +10,15 @@ try {
} }
// Skip these tests on linux CI, because the vulkan emulator is not good enough // 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. // yet, and skip on macOS x86 CI because these do not have virtual GPUs.
const isLinuxOrMacCI = const isCIWithoutGPU = (Deno.build.os === "linux" ||
(Deno.build.os === "linux" || Deno.build.os === "darwin") && isCI; (Deno.build.os === "darwin" && Deno.build.arch === "x86_64")) && isCI;
// Skip these tests in WSL because it doesn't have good GPU support. // Skip these tests in WSL because it doesn't have good GPU support.
const isWsl = await checkIsWsl(); const isWsl = await checkIsWsl();
Deno.test({ Deno.test({
permissions: { read: true, env: true }, permissions: { read: true, env: true },
ignore: isWsl || isLinuxOrMacCI, ignore: isWsl || isCIWithoutGPU,
}, async function webgpuComputePass() { }, async function webgpuComputePass() {
const adapter = await navigator.gpu.requestAdapter(); const adapter = await navigator.gpu.requestAdapter();
assert(adapter); assert(adapter);
@ -104,7 +104,7 @@ Deno.test({
Deno.test({ Deno.test({
permissions: { read: true, env: true }, permissions: { read: true, env: true },
ignore: isWsl || isLinuxOrMacCI, ignore: isWsl || isCIWithoutGPU,
}, async function webgpuHelloTriangle() { }, async function webgpuHelloTriangle() {
const adapter = await navigator.gpu.requestAdapter(); const adapter = await navigator.gpu.requestAdapter();
assert(adapter); assert(adapter);
@ -216,7 +216,7 @@ Deno.test({
}); });
Deno.test({ Deno.test({
ignore: isWsl || isLinuxOrMacCI, ignore: isWsl || isCIWithoutGPU,
}, async function webgpuAdapterHasFeatures() { }, async function webgpuAdapterHasFeatures() {
const adapter = await navigator.gpu.requestAdapter(); const adapter = await navigator.gpu.requestAdapter();
assert(adapter); assert(adapter);
@ -226,7 +226,7 @@ Deno.test({
}); });
Deno.test({ Deno.test({
ignore: isWsl || isLinuxOrMacCI, ignore: isWsl || isCIWithoutGPU,
}, async function webgpuNullWindowSurfaceThrows() { }, async function webgpuNullWindowSurfaceThrows() {
const adapter = await navigator.gpu.requestAdapter(); const adapter = await navigator.gpu.requestAdapter();
assert(adapter); assert(adapter);
@ -249,7 +249,7 @@ Deno.test(function getPreferredCanvasFormat() {
}); });
Deno.test({ Deno.test({
ignore: isWsl || isLinuxOrMacCI, ignore: isWsl || isCIWithoutGPU,
}, async function validateGPUColor() { }, async function validateGPUColor() {
const adapter = await navigator.gpu.requestAdapter(); const adapter = await navigator.gpu.requestAdapter();
assert(adapter); assert(adapter);
@ -312,7 +312,7 @@ Deno.test({
}); });
Deno.test({ Deno.test({
ignore: isWsl || isLinuxOrMacCI, ignore: isWsl || isCIWithoutGPU,
}, async function validateGPUExtent3D() { }, async function validateGPUExtent3D() {
const adapter = await navigator.gpu.requestAdapter(); const adapter = await navigator.gpu.requestAdapter();
assert(adapter); assert(adapter);
@ -412,7 +412,7 @@ Deno.test({
}); });
Deno.test({ Deno.test({
ignore: isWsl || isLinuxOrMacCI, ignore: isWsl || isCIWithoutGPU,
}, async function validateGPUOrigin3D() { }, async function validateGPUOrigin3D() {
const adapter = await navigator.gpu.requestAdapter(); const adapter = await navigator.gpu.requestAdapter();
assert(adapter); assert(adapter);
@ -505,7 +505,7 @@ Deno.test({
}); });
Deno.test({ Deno.test({
ignore: isWsl || isLinuxOrMacCI, ignore: isWsl || isCIWithoutGPU,
}, async function beginRenderPassWithoutDepthClearValue() { }, async function beginRenderPassWithoutDepthClearValue() {
const adapter = await navigator.gpu.requestAdapter(); const adapter = await navigator.gpu.requestAdapter();
assert(adapter); assert(adapter);