Skip to content

Commit

Permalink
now all ncint tests work
Browse files Browse the repository at this point in the history
  • Loading branch information
edwardhartnett committed Aug 19, 2020
1 parent 444f023 commit 08c7999
Showing 1 changed file with 11 additions and 21 deletions.
32 changes: 11 additions & 21 deletions tests/ncint/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,8 @@ 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)
set (my_tests tst_async_multi tst_ncint_async_perf
tst_ncint_perf tst_pio_async tst_pio_udf)

# Test Timeout in seconds.
if (PIO_VALGRIND_CHECK)
Expand All @@ -19,17 +13,13 @@ 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})
FOREACH(tst ${my_tests})
add_executable (${tst} EXCLUDE_FROM_ALL ${tst}.c)
add_dependencies (tests ${tst})
target_link_libraries (${tst} pioc)
add_mpi_test(${tst}
EXECUTABLE ${CMAKE_CURRENT_BINARY_DIR}/${tst}
NUMPROCS 4
TIMEOUT ${DEFAULT_TEST_TIMEOUT})
ENDFOREACH()

0 comments on commit 08c7999

Please sign in to comment.