File tree Expand file tree Collapse file tree 2 files changed +22
-8
lines changed Expand file tree Collapse file tree 2 files changed +22
-8
lines changed Original file line number Diff line number Diff line change @@ -60,7 +60,14 @@ function(inference_analysis_test TARGET)
60
60
endif ()
61
61
endfunction (inference_analysis_test )
62
62
63
- inference_analysis_test (test_analyzer
64
- SRCS analyzer_tester.cc
65
- EXTRA_DEPS reset_tensor_array paddle_inference_api
66
- ARGS --inference_model_dir=${WORD2VEC_MODEL_DIR} )
63
+ if (NOT APPLE AND NOT WIN32 )
64
+ inference_analysis_test (test_analyzer
65
+ SRCS analyzer_tester.cc
66
+ EXTRA_DEPS reset_tensor_array paddle_fluid_shared
67
+ ARGS --inference_model_dir=${WORD2VEC_MODEL_DIR} )
68
+ else ()
69
+ inference_analysis_test (test_analyzer
70
+ SRCS analyzer_tester.cc
71
+ EXTRA_DEPS reset_tensor_array paddle_inference_api
72
+ ARGS --inference_model_dir=${WORD2VEC_MODEL_DIR} )
73
+ endif ()
Original file line number Diff line number Diff line change @@ -14,10 +14,17 @@ function(train_test TARGET_NAME)
14
14
endif ()
15
15
foreach (arg ${arg_list} )
16
16
string (REGEX REPLACE "^_$" "" arg "${arg} " )
17
- cc_test (test_train_${TARGET_NAME}${arg}
18
- SRCS test_train_${TARGET_NAME}.cc
19
- DEPS paddle_fluid_api
20
- ARGS --dirname=${PYTHON_TESTS_DIR}/book/${TARGET_NAME}${arg}.train.model/ )
17
+ if (NOT APPLE AND NOT WIN32 )
18
+ cc_test (test_train_${TARGET_NAME}${arg}
19
+ SRCS test_train_${TARGET_NAME}.cc
20
+ DEPS paddle_fluid_shared
21
+ ARGS --dirname=${PYTHON_TESTS_DIR}/book/${TARGET_NAME}${arg}.train.model/ )
22
+ else ()
23
+ cc_test (test_train_${TARGET_NAME}${arg}
24
+ SRCS test_train_${TARGET_NAME}.cc
25
+ DEPS paddle_fluid_api
26
+ ARGS --dirname=${PYTHON_TESTS_DIR}/book/${TARGET_NAME}${arg}.train.model/ )
27
+ endif ()
21
28
set_tests_properties (test_train_${TARGET_NAME}${arg}
22
29
PROPERTIES DEPENDS test_${TARGET_NAME} )
23
30
set_tests_properties (test_train_${TARGET_NAME}${arg}
You can’t perform that action at this time.
0 commit comments