Skip to content

Commit

Permalink
Don't test CUTEst on 32-bit linux
Browse files Browse the repository at this point in the history
  • Loading branch information
amontoison committed Aug 30, 2024
1 parent 5a5ca89 commit 25a30ca
Showing 1 changed file with 13 additions and 9 deletions.
22 changes: 13 additions & 9 deletions test/runtests.jl
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
using PRIMA
using Test, TypeUtils
using CUTEst
if Sys.WORD_SIZE > 32 || Sys.iswindows()
using CUTEst
end

optimizer_name(::typeof(PRIMA.uobyqa)) = "UOBYQA"
optimizer_name(::typeof(PRIMA.newuoa)) = "NEWUOA"
Expand Down Expand Up @@ -381,14 +383,16 @@ end
end
end

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

end
Expand Down

0 comments on commit 25a30ca

Please sign in to comment.