|
1 | | -model, nls_model, sol = fh_model() |
2 | | -test_objectives(model, nls_model) |
3 | | -@test typeof(model) <: ADNLPModel |
4 | | -@test typeof(sol) == typeof(model.meta.x0) |
5 | | -@test model.meta.nvar == 5 |
6 | | -@test all(model.meta.x0 .== 1) |
7 | | -@test length(findall(x -> x .!= 0, sol)) == 2 |
8 | | -@test typeof(nls_model) <: ADNLSModel |
9 | | -@test nls_model.meta.nvar == 5 |
10 | | -@test nls_model.nls_meta.nequ == 202 |
11 | | -@test all(nls_model.meta.x0 .== 1) |
| 1 | +# This test is skipped on FreeBSD due to issues with SciMLSensitivity and Enzyme packages |
| 2 | + |
| 3 | +if !Sys.isfreebsd() |
| 4 | + model, nls_model, sol = fh_model() |
| 5 | + test_objectives(model, nls_model) |
| 6 | + @test typeof(model) <: ADNLPModel |
| 7 | + @test typeof(sol) == typeof(model.meta.x0) |
| 8 | + @test model.meta.nvar == 5 |
| 9 | + @test all(model.meta.x0 .== 1) |
| 10 | + @test length(findall(x -> x .!= 0, sol)) == 2 |
| 11 | + @test typeof(nls_model) <: ADNLSModel |
| 12 | + @test nls_model.meta.nvar == 5 |
| 13 | + @test nls_model.nls_meta.nequ == 202 |
| 14 | + @test all(nls_model.meta.x0 .== 1) |
| 15 | +end |
0 commit comments