1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52
|
# aio system calls are know to fail on the Cray
# see https://sourceware.org/bugzilla/show_bug.cgi?id=11787
option( ENABLE_ECKIT-352 "Control if ECKIT-352 tests should be enabled" ON )
ecbuild_add_test( TARGET eckit_test_filesystem_aiohandle
CONDITION NOT DEFINED ENV{CRAYOS_VERSION} AND ${HAVE_AIO}
SOURCES test_aiohandle.cc
LIBS eckit )
ecbuild_add_test( TARGET eckit_test_filesystem_asynchandle
SOURCES test_asynchandle.cc
LIBS eckit )
ecbuild_add_test( TARGET eckit_test_filesystem_atomic_file_update
SOURCES test_atomic_file_update.cc
LIBS eckit )
ecbuild_add_test( TARGET eckit_test_filesystem_localpathname
SOURCES test_localpathname.cc
LIBS eckit
CONDITION ENABLE_ECKIT-352 )
ecbuild_add_test( TARGET eckit_test_filesystem_restarthandle
SOURCES test_restarthandle.cc
LIBS eckit )
ecbuild_add_test( TARGET eckit_test_filesystem_pathexpander
SOURCES test_pathexpander.cc
ENVIRONMENT "CURRENT_TEST_DIR=${CMAKE_CURRENT_BINARY_DIR}"
LIBS eckit )
ecbuild_add_test( TARGET eckit_test_filesystem_filemode
SOURCES test_filemode.cc
LIBS eckit )
ecbuild_add_test( TARGET eckit_test_filesystem_uri
SOURCES test_uri.cc
LIBS eckit )
ecbuild_add_test( TARGET eckit_test_pathname
SOURCES test_pathname.cc
LIBS eckit )
file(MAKE_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/tmp/foo)
file(MAKE_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/testdir/foo/1)
file(MAKE_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/testdir/foo/2)
file(MAKE_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/testdir/foo/2/1)
file(MAKE_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/testdir/bar)
file(MAKE_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/testdir/baz)
|