Skip to content

Commit

Permalink
changed the answer file to test_name.out in the sundials_add_test macro
Browse files Browse the repository at this point in the history
  • Loading branch information
shahbajsohal committed Aug 3, 2023
1 parent a79cb72 commit 37080ec
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
5 changes: 2 additions & 3 deletions examples/arkode/C_manyvector/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -60,11 +60,10 @@ foreach(example_tuple ${ARKODE_examples})
sundials_create_test_name(${example} test_name
TEST_ARGS ${example_args})


# add example to regression tests
sundials_add_test(${example} ${example}
sundials_add_test(${test_name} ${example}
ANSWER_DIR ${CMAKE_CURRENT_SOURCE_DIR}
ANSWER_FILE ${example}.out
ANSWER_FILE ${test_name}.out
EXAMPLE_TYPE ${example_type})

endforeach(example_tuple ${ARKODE_examples})
Expand Down
8 changes: 4 additions & 4 deletions examples/arkode/C_serial/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -184,9 +184,9 @@ if(BUILD_SUNLINSOL_KLU)
TEST_ARGS ${example_args})

# add example to regression tests
sundials_add_test(${example} ${example}
sundials_add_test(${test_name} ${example}
ANSWER_DIR ${CMAKE_CURRENT_SOURCE_DIR}
ANSWER_FILE ${example}.out
ANSWER_FILE ${test_name}.out
EXAMPLE_TYPE ${example_type})

endforeach(example_tuple ${ARKODE_examples_KLU})
Expand Down Expand Up @@ -226,9 +226,9 @@ if(BUILD_SUNLINSOL_SUPERLUMT)
TEST_ARGS ${example_args})

# add example to regression tests
sundials_add_test(${example} ${example}
sundials_add_test(${test_name} ${example}
ANSWER_DIR ${CMAKE_CURRENT_SOURCE_DIR}
ANSWER_FILE ${example}.out
ANSWER_FILE ${test_name}.out
EXAMPLE_TYPE ${example_type})

endforeach(example_tuple ${ARKODE_examples_SUPERLUMT})
Expand Down

0 comments on commit 37080ec

Please sign in to comment.