Skip to content

Commit

Permalink
Skip CUTEst for 32-bit architecture
Browse files Browse the repository at this point in the history
  • Loading branch information
emmt committed Jan 29, 2024
1 parent ffe4598 commit 5c2e932
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions test/runtests.jl
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using PRIMA
using Test, TypeUtils
using CUTEst
Sys.WORD_SIZE > 32 && using CUTEst

optimizer_name(::typeof(PRIMA.uobyqa)) = "UOBYQA"
optimizer_name(::typeof(PRIMA.newuoa)) = "NEWUOA"
Expand Down Expand Up @@ -376,10 +376,12 @@ end
end
end

@testset "Unconstrained CUTEst problem $name" for name in ("TOINTQOR", "OSBORNEB", "LANCZOS1LS",)
x1, res = @inferred PRIMA.prima_CUTEst(name; maxfun=5000)
x2, res = @inferred PRIMA.newuoa_CUTEst(name; maxfun=5000)
@test x1 x2
if Sys.WORD_SIZE > 32
@testset "Unconstrained CUTEst problem $name" for name in ("TOINTQOR", "OSBORNEB", "LANCZOS1LS",)
x1, res = @inferred PRIMA.prima_CUTEst(name; maxfun=5000)
x2, res = @inferred PRIMA.newuoa_CUTEst(name; maxfun=5000)
@test x1 x2
end
end

end
Expand Down

0 comments on commit 5c2e932

Please sign in to comment.