Skip to content

Commit

Permalink
warn when runnning benchmarks on unsupported platforms (#38)
Browse files Browse the repository at this point in the history
  • Loading branch information
LilithHafner authored Mar 21, 2024
1 parent 508534e commit b6de2ec
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions src/RegressionTests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,15 @@ end
is_platform_supported() = VERSION >= v"1.9" && !Sys.iswindows()

function test(::Type{Bool}; skip_unsupported_platforms=false, kws...)
if skip_unsupported_platforms && !is_platform_supported()
@warn "Skipping regression tests on unsupported platform"
return true
if !is_platform_supported()
if skip_unsupported_platforms
@warn "Skipping regression tests on unsupported platform"
return true
else
@warn "Running regressiong tests on unsupported platform"
end
end

report_changes(runbenchmarks(project=dirname(pwd()), kws...))
end
struct RegressionTestFailure <: Exception end
Expand Down

0 comments on commit b6de2ec

Please sign in to comment.