Skip to content

Commit 25a30ca

Browse files
committed
Don't test CUTEst on 32-bit linux
1 parent 5a5ca89 commit 25a30ca

File tree

1 file changed

+13
-9
lines changed

1 file changed

+13
-9
lines changed

test/runtests.jl

+13-9
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
using PRIMA
22
using Test, TypeUtils
3-
using CUTEst
3+
if Sys.WORD_SIZE > 32 || Sys.iswindows()
4+
using CUTEst
5+
end
46

57
optimizer_name(::typeof(PRIMA.uobyqa)) = "UOBYQA"
68
optimizer_name(::typeof(PRIMA.newuoa)) = "NEWUOA"
@@ -381,14 +383,16 @@ end
381383
end
382384
end
383385

384-
@testset "Unconstrained CUTEst problem $name" for name in ("TOINTQOR", "OSBORNEB", "LANCZOS1LS",)
385-
# x1, res1 = @inferred PRIMA.prima_CUTEst(name; maxfun=5000)
386-
x1, res1 = PRIMA.prima_CUTEst(name; maxfun=5000)
387-
@test issuccess(res1)
388-
# x2, res2 = @inferred PRIMA.newuoa_CUTEst(name; maxfun=5000)
389-
x2, res2 = PRIMA.newuoa_CUTEst(name; maxfun=5000)
390-
@test issuccess(res2)
391-
@test x1 x2
386+
if Sys.WORD_SIZE > 32 || Sys.iswindows()
387+
@testset "Unconstrained CUTEst problem $name" for name in ("TOINTQOR", "OSBORNEB", "LANCZOS1LS",)
388+
x1, res1 = @inferred PRIMA.prima_CUTEst(name; maxfun=5000)
389+
# x1, res1 = PRIMA.prima_CUTEst(name; maxfun=5000)
390+
@test issuccess(res1)
391+
x2, res2 = @inferred PRIMA.newuoa_CUTEst(name; maxfun=5000)
392+
# x2, res2 = PRIMA.newuoa_CUTEst(name; maxfun=5000)
393+
@test issuccess(res2)
394+
@test x1 x2
395+
end
392396
end
393397

394398
end

0 commit comments

Comments
 (0)