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 37080ec commit 1aef050
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion examples/cvode/C_mpimanyvector/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ foreach(example_tuple ${CVODE_examples})
sundials_add_test(${test_name} ${example}
MPI_NPROCS ${number_of_tasks}
ANSWER_DIR ${CMAKE_CURRENT_SOURCE_DIR}
ANSWER_FILE ${example}.out
ANSWER_FILE ${test_name}.out
EXAMPLE_TYPE ${example_type})

endforeach(example_tuple ${CVODE_examples})
Expand Down
2 changes: 1 addition & 1 deletion examples/cvodes/parallel/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ foreach(example_tuple ${CVODES_examples})

# check if example args are provided and set the test name
sundials_create_test_name(${example} test_name MPI_TEST_NAME
TEST_ARGS ${example_args})
TEST_ARGS ${example_args} MPI_NPROCS ${number_of_tasks})

# add example to regression tests
sundials_add_test(${test_name} ${example}
Expand Down
2 changes: 1 addition & 1 deletion examples/ida/parallel/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ foreach(example_tuple ${IDA_examples})
sundials_add_test(${test_name} ${example}
MPI_NPROCS ${number_of_tasks}
ANSWER_DIR ${CMAKE_CURRENT_SOURCE_DIR}
ANSWER_FILE ${example}.out
ANSWER_FILE ${test_name}.out
EXAMPLE_TYPE ${example_type})

endforeach(example_tuple ${IDA_examples})
Expand Down
4 changes: 2 additions & 2 deletions examples/kinsol/parallel/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -69,10 +69,10 @@ foreach(example_tuple ${KINSOL_examples})
TEST_ARGS ${example_args} MPI_NPROCS ${number_of_tasks})

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

endforeach(example_tuple ${KINSOL_examples})
Expand Down

0 comments on commit 1aef050

Please sign in to comment.