Skip to content

Commit

Permalink
Add test
Browse files Browse the repository at this point in the history
  • Loading branch information
odow committed Jul 22, 2024
1 parent c06a0da commit c5ef157
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions test/MOI_wrapper.jl
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,20 @@ function test_maxtime_cpu()
return
end

function test_outname()
model = KNITRO.Optimizer()
attr = MOI.RawOptimizerAttribute("outname")
@test MOI.supports(model, attr)
MOI.set(model, attr, "new_name.log")
MOI.set(model, MOI.RawOptimizerAttribute("outmode"), 1)
MOI.add_variable(model)
MOI.optimize!(model)
@test isfile("new_name.log")
@test occursin("Artelys", read("new_name.log", String))
rm("new_name.log")
return
end

end

TestMOIWrapper.runtests()

0 comments on commit c5ef157

Please sign in to comment.