Skip to content

Commit

Permalink
starting to add darray test
Browse files Browse the repository at this point in the history
  • Loading branch information
edhartnett committed Jun 15, 2016
1 parent a28ab94 commit bce138f
Show file tree
Hide file tree
Showing 2 changed files with 423 additions and 0 deletions.
7 changes: 7 additions & 0 deletions tests/unit/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,8 @@ add_executable (test_names EXCLUDE_FROM_ALL test_names.c)
target_link_libraries (test_names pioc)
add_executable (test_nc4 EXCLUDE_FROM_ALL test_nc4.c)
target_link_libraries (test_nc4 pioc)
add_executable (test_darray EXCLUDE_FROM_ALL test_darray.c)
target_link_libraries (test_darray pioc)

if (CMAKE_Fortran_COMPILER_ID STREQUAL "NAG")
set ( CMAKE_Fortran_FLAGS "${CMAKE_Fortran_FLAGS} -mismatch_all" )
Expand All @@ -60,6 +62,7 @@ if (CMAKE_Fortran_COMPILER_ID STREQUAL "NAG")
endif ()

add_dependencies (tests test_names)
add_dependencies (tests test_darray)
add_dependencies (tests test_nc4)
add_dependencies (tests pio_unit_test)

Expand All @@ -76,6 +79,10 @@ if (PIO_USE_MPISERIAL)
set_tests_properties(pio_unit_test
PROPERTIES TIMEOUT ${DEFAULT_TEST_TIMEOUT})
else ()
add_mpi_test(test_darray
EXECUTABLE ${CMAKE_CURRENT_BINARY_DIR}/test_darray
NUMPROCS 4
TIMEOUT ${DEFAULT_TEST_TIMEOUT})
if (PIO_ENABLE_ASYNC)
add_mpi_test(test_intercomm
EXECUTABLE ${CMAKE_CURRENT_BINARY_DIR}/test_intercomm
Expand Down
Loading

0 comments on commit bce138f

Please sign in to comment.