Skip to content

add CTDirect/CTParser tests #177

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jun 24, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions test/Project.toml
Original file line number Diff line number Diff line change
@@ -1,15 +1,21 @@
[deps]
ADNLPModels = "54578032-b7ea-4c30-94aa-7cbd1cce6c9a"
Aqua = "4c88cf16-eb10-579e-8560-4a9242c79595"
CTBase = "54762871-cc72-4466-b8e8-f6c8b58076cd"
CTDirect = "790bbbee-bee9-49ee-8912-a9de031322d5"
CTParser = "32681960-a1b1-40db-9bff-a1ca817385d1"
JLD2 = "033835bb-8acc-5ee8-8aae-3f567f8a3819"
JSON3 = "0f8b85d8-7281-11e9-16c2-39a750bddbf1"
NLPModelsIpopt = "f4238b75-b362-5c4c-b852-0801c9a21d71"
Plots = "91a5bcdd-55d7-5caf-9e0b-520d859cae80"
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"

[compat]
ADNLPModels = "0.8"
Aqua = "0.8"
CTBase = "0.16"
CTDirect = "0.15"
CTParser = "0.4"
JLD2 = "0.5"
JSON3 = "1"
NLPModelsIpopt = "0.10"
Expand Down
39 changes: 20 additions & 19 deletions test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -35,24 +35,25 @@ end

# test with CTDirect and CTParser: must be commented if new version of CTModels, that is breaking

# using CTDirect
# using NLPModelsIpopt
# import CTParser: CTParser, @def
# CTParser.prefix!(:CTModels); # code generated by @def is prefixed by CTModels (not by OptimalControl - the default)
using CTDirect
using NLPModelsIpopt
using ADNLPModels
import CTParser: CTParser, @def
CTParser.prefix!(:CTModels); # code generated by @def is prefixed by CTModels (not by OptimalControl - the default)

# #
# include("solution_example_path_constraints.jl")
#
include("solution_example_path_constraints.jl")

# @testset verbose = true showtiming = true "CTModels tests" begin
# for name in (
# :plot,
# :export_import,
# )
# @testset "$(name)" begin
# test_name = Symbol(:test_, name)
# println("testing: ", string(name))
# include("$(test_name).jl")
# @eval $test_name()
# end
# end
# end
@testset verbose = true showtiming = true "CTModels tests" begin
for name in (
:plot,
:export_import,
)
@testset "$(name)" begin
test_name = Symbol(:test_, name)
println("testing: ", string(name))
include("$(test_name).jl")
@eval $test_name()
end
end
end
Loading