-
Notifications
You must be signed in to change notification settings - Fork 207
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
6bd5fa4
commit 444f023
Showing
3 changed files
with
35 additions
and
49 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
include (LibMPI) | ||
|
||
include_directories("${CMAKE_SOURCE_DIR}/tests/ncint") | ||
include_directories("${CMAKE_BINARY_DIR}") | ||
|
||
#============================================================================== | ||
# PREPARE FOR TESTING | ||
#============================================================================== | ||
|
||
# Don't run these tests if we are using MPI SERIAL. | ||
add_executable (tst_pio_udf EXCLUDE_FROM_ALL tst_pio_udf.c) | ||
add_dependencies (tests tst_pio_udf) | ||
target_link_libraries (tst_pio_udf pioc) | ||
|
||
# Test Timeout in seconds. | ||
if (PIO_VALGRIND_CHECK) | ||
set (DEFAULT_TEST_TIMEOUT 480) | ||
else () | ||
set (DEFAULT_TEST_TIMEOUT 240) | ||
endif () | ||
|
||
# All tests need a certain number of tasks, but they should be able to | ||
# run successfully with more than they need. Test this by providing an | ||
# extra processor for each C test. | ||
set (AT_LEAST_TWO_TASKS 3) | ||
set (AT_LEAST_THREE_TASKS 4) | ||
set (AT_LEAST_FOUR_TASKS 5) | ||
set (AT_LEAST_EIGHT_TASKS 9) | ||
set (EXACTLY_FOUR_TASKS 4) | ||
|
||
add_mpi_test(tst_pio_udf | ||
EXECUTABLE ${CMAKE_CURRENT_BINARY_DIR}/tst_pio_udf | ||
NUMPROCS ${AT_LEAST_FOUR_TASKS} | ||
TIMEOUT ${DEFAULT_TEST_TIMEOUT}) | ||
|