From eae30309c6a7afa3e0c7bbfe80d2a44788bd3021 Mon Sep 17 00:00:00 2001 From: Tim Besard Date: Mon, 9 Sep 2024 09:28:01 +0200 Subject: [PATCH] Make back-end test check more robust. --- test/event.jl | 2 +- test/program.jl | 2 +- test/runtests.jl | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/test/event.jl b/test/event.jl index 578ab830..3c090d8d 100644 --- a/test/event.jl +++ b/test/event.jl @@ -1,4 +1,4 @@ -if backend in ["POCL", "Intel"] +if backend in ["pocl", "intel"] # unsupported by POCL # hangs on Intel @warn "Skipping event tests" diff --git a/test/program.jl b/test/program.jl index c2b99b70..d51b0c3f 100644 --- a/test/program.jl +++ b/test/program.jl @@ -51,7 +51,7 @@ @test prg[:source] == test_source end - if backend == "POCL" + if backend == "pocl" @warn "Skipping binary program tests" else @testset "binaries" begin diff --git a/test/runtests.jl b/test/runtests.jl index 494c819e..a2b168bc 100644 --- a/test/runtests.jl +++ b/test/runtests.jl @@ -1,8 +1,8 @@ using Test using OpenCL -backend = get(ENV, "JULIA_OPENCL_BACKEND", "POCL") -if backend == "POCL" +backend = lowercase(get(ENV, "JULIA_OPENCL_BACKEND", "pocl")) +if backend == "pocl" using pocl_jll end cl.platform!(backend)