Skip to content

Commit

Permalink
disable pdlp tests with fast build off
Browse files Browse the repository at this point in the history
  • Loading branch information
galabovaa committed Oct 28, 2024
1 parent 7a46afb commit f55afb3
Showing 1 changed file with 21 additions and 19 deletions.
40 changes: 21 additions & 19 deletions check/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -340,24 +340,26 @@ if (NOT FAST_BUILD OR ALL_TESTS)
# endforeach(setting)
# endforeach(instance)

foreach(instance_pdlp ${pdlpInstances})
# add default tests
# treat the instance as a tuple (list) of two values
list(GET instance_pdlp 0 name_pdlp)
list(GET instance_pdlp 1 optval)

set(inst_pdlp "${HIGHS_SOURCE_DIR}/check/instances/${name_pdlp}.mps")

add_test(NAME ${name_pdlp}--pdlp COMMAND $<TARGET_FILE:highs-bin> "--solver=pdlp"
${inst_pdlp})

set_tests_properties (${name_pdlp}--pdlp PROPERTIES
PASS_REGULAR_EXPRESSION
"Model status : Optimal")

set_tests_properties (${name_pdlp}--pdlp PROPERTIES
PASS_REGULAR_EXPRESSION
"Objective value : ${optval}")
endforeach(instance_pdlp)
if(FAST_BUILD)
foreach(instance_pdlp ${pdlpInstances})
# add default tests
# treat the instance as a tuple (list) of two values
list(GET instance_pdlp 0 name_pdlp)
list(GET instance_pdlp 1 optval)

set(inst_pdlp "${HIGHS_SOURCE_DIR}/check/instances/${name_pdlp}.mps")

add_test(NAME ${name_pdlp}--pdlp COMMAND $<TARGET_FILE:highs-bin> "--solver=pdlp"
${inst_pdlp})

set_tests_properties (${name_pdlp}--pdlp PROPERTIES
PASS_REGULAR_EXPRESSION
"Model status : Optimal")

set_tests_properties (${name_pdlp}--pdlp PROPERTIES
PASS_REGULAR_EXPRESSION
"Objective value : ${optval}")
endforeach(instance_pdlp)
endif()

endif()

0 comments on commit f55afb3

Please sign in to comment.