File tree Expand file tree Collapse file tree 2 files changed +618
-1
lines changed
Expand file tree Collapse file tree 2 files changed +618
-1
lines changed Original file line number Diff line number Diff 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+
1731list ( 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+
2850foreach ( _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
3661endforeach ()
You can’t perform that action at this time.
0 commit comments