Skip to content

Commit e82ec62

Browse files
Adds wipe test on DAOS.
1 parent ce91924 commit e82ec62

File tree

2 files changed

+618
-1
lines changed

2 files changed

+618
-1
lines changed

tests/fdb/api/CMakeLists.txt

Lines changed: 26 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,20 @@ ecbuild_get_test_multidata( TARGET get_fdb_api_test_data
1414
NAMES ${fdb_api_test_data_files}
1515
NOCHECK )
1616

17+
if (HAVE_DAOSFDB)
18+
19+
list( APPEND unit_test_libraries "${DAOS_LIBRARIES}" )
20+
list( APPEND unit_test_include_dirs "${DAOS_INCLUDE_DIRS}" )
21+
22+
if(HAVE_DAOS_ADMIN)
23+
list( APPEND unit_test_libraries "${DAOS_TESTS_LIBRARIES}" )
24+
list( APPEND unit_test_include_dirs "${DAOS_TESTS_INCLUDE_DIRS}" )
25+
endif()
26+
27+
endif()
28+
29+
list( APPEND unit_test_libraries fdb5 )
30+
1731
list( APPEND api_tests
1832
config
1933
select
@@ -25,12 +39,23 @@ list( APPEND api_tests
2539
wipe
2640
)
2741

42+
if (HAVE_DAOSFDB)
43+
44+
list( APPEND api_tests
45+
wipe_daos
46+
)
47+
48+
endif()
49+
2850
foreach( _test ${api_tests} )
2951

3052
ecbuild_add_test( TARGET test_fdb5_api_${_test}
3153
SOURCES test_${_test}.cc
3254
TEST_DEPENDS get_fdb_api_test_data
33-
LIBS fdb5
55+
LIBS "${unit_test_libraries}"
56+
INCLUDES "${unit_test_include_dirs}"
57+
ENVIRONMENT FDB_DAOS_DMG_CONFIG_FILE=${FDB_DAOS_DMG_CONFIG_FILE}
58+
ENVIRONMENT FDB_DAOS_TEST_POOL=${FDB_DAOS_TEST_POOL}
3459
ENVIRONMENT "${_test_environment}" )
3560

3661
endforeach()

0 commit comments

Comments
 (0)