File tree Expand file tree Collapse file tree 5 files changed +8
-42
lines changed Expand file tree Collapse file tree 5 files changed +8
-42
lines changed Original file line number Diff line number Diff line change @@ -200,6 +200,7 @@ ENDIF()
200
200
#----------------------------------------------------------------------------------------------
201
201
202
202
ADD_SUBDIRECTORY (src )
203
+ ADD_SUBDIRECTORY (tests/module )
203
204
ADD_LIBRARY (redisai SHARED $< TARGET_OBJECTS:redisai_obj> )
204
205
205
206
TARGET_LINK_LIBRARIES (redisai ${CMAKE_DL_LIBS} )
Original file line number Diff line number Diff line change @@ -92,7 +92,6 @@ valgrind_summary() {
92
92
# ----------------------------------------------------------------------------------------------
93
93
94
94
run_tests () {
95
- make -C ../module
96
95
local title=" $1 "
97
96
[[ ! -z $title ]] && { $ROOT /opt/readies/bin/sep -0; printf " Tests with $title :\n\n" ; }
98
97
cd $ROOT /tests/flow
Original file line number Diff line number Diff line change 12
12
def ensure_test_module_loaded (f ):
13
13
@wraps (f )
14
14
def wrapper (env , * args , ** kwargs ):
15
- goal_dir = os .path .join (os .path .dirname (__file__ ), "../module/LLAPI .so" )
16
- TEST_MODULE_PATH = os . path . abspath ( goal_dir )
15
+ # goal_dir = os.path.join(os.path.dirname(__file__), "../module/testmod .so")
16
+ TEST_MODULE_PATH = "{ROOT}/bin/linux-x64-release/src/tests/module/testmod.so" . format ( ROOT = ROOT )
17
17
con = env .getConnection ()
18
18
modules = con .execute_command ("MODULE" , "LIST" )
19
19
if b'RAI_llapi' in [module [1 ] for module in modules ]:
Original file line number Diff line number Diff line change
1
+ ADD_LIBRARY (testmod SHARED LLAPI.c DAG_utils.c )
2
+
3
+ INCLUDE_DIRECTORIES (../../src )
4
+ SET_TARGET_PROPERTIES (testmod PROPERTIES PREFIX "" )
5
+ SET_TARGET_PROPERTIES (testmod PROPERTIES SUFFIX ".so" )
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments