@@ -17,19 +17,19 @@ set_target_properties(nnfw_api_test_utils PROPERTIES POSITION_INDEPENDENT_CODE O
17
17
18
18
nnfw_find_package(ARMCompute QUIET )
19
19
if (ARMCompute_FOUND)
20
- target_compile_definitions (nnfw_api_test_utils PRIVATE TEST_ACL_BACKEND)
20
+ target_compile_definitions (nnfw_api_test_utils PUBLIC TEST_ACL_BACKEND)
21
21
endif (ARMCompute_FOUND)
22
22
23
23
if (BUILD_XNNPACK_BACKEND)
24
24
nnfw_find_package(Xnnpack QUIET )
25
25
if (Xnnpack_FOUND)
26
- target_compile_definitions (nnfw_api_test_utils PRIVATE TEST_XNNPACK_BACKEND)
26
+ target_compile_definitions (nnfw_api_test_utils PUBLIC TEST_XNNPACK_BACKEND)
27
27
endif (Xnnpack_FOUND)
28
28
endif (BUILD_XNNPACK_BACKEND)
29
29
30
30
nnfw_find_package(Opencl_Headers QUIET )
31
31
if (Opencl_Headers_FOUND)
32
- target_compile_definitions (nnfw_api_test_utils PRIVATE TEST_GPU_CL_BACKEND)
32
+ target_compile_definitions (nnfw_api_test_utils PUBLIC TEST_GPU_CL_BACKEND)
33
33
endif (Opencl_Headers_FOUND)
34
34
35
35
set (RUNTIME_NNFW_API_TEST_INCLUDE ${CMAKE_CURRENT_SOURCE_DIR} /lib ${CMAKE_CURRENT_SOURCE_DIR} /src)
@@ -61,48 +61,47 @@ endfunction()
61
61
62
62
# MathOps - Basic mathematical, comparison, and bitwise operations
63
63
create_nnfw_test_group("MathOps"
64
- "src/GenModelTests/one_op_tests/MathOps/**/* .test.cc"
65
- "src/GenModelTests/one_op_tests/MathOps/**/* .test.cpp" )
64
+ "src/GenModelTests/one_op_tests/MathOps/*.test.cc"
65
+ "src/GenModelTests/one_op_tests/MathOps/*.test.cpp" )
66
66
67
67
# NeuralNetworkOps - Core neural network layer operations
68
68
create_nnfw_test_group("NeuralNetworkOps"
69
- "src/GenModelTests/one_op_tests/NeuralNetworkOps/**/* .test.cc"
70
- "src/GenModelTests/one_op_tests/NeuralNetworkOps/**/* .test.cpp" )
69
+ "src/GenModelTests/one_op_tests/NeuralNetworkOps/*.test.cc"
70
+ "src/GenModelTests/one_op_tests/NeuralNetworkOps/*.test.cpp" )
71
71
72
72
# ActivationNormOps - Activation functions and normalization layers
73
73
create_nnfw_test_group("ActivationNormOps"
74
- "src/GenModelTests/one_op_tests/ActivationNormOps/**/*.test.cc"
75
- "src/GenModelTests/one_op_tests/ActivationNormOps/**/*.test.cpp" )
74
+ "src/GenModelTests/one_op_tests/ActivationNormOps/*.test.cc" )
76
75
77
76
# TensorDataOps - Operations that transform tensor data structures, shapes, layouts, and manipulate tensor data
78
77
create_nnfw_test_group("TensorDataOps"
79
- "src/GenModelTests/one_op_tests/TensorDataOps/**/* .test.cc"
80
- "src/GenModelTests/one_op_tests/TensorDataOps/**/* .test.cpp" )
78
+ "src/GenModelTests/one_op_tests/TensorDataOps/*.test.cc"
79
+ "src/GenModelTests/one_op_tests/TensorDataOps/*.test.cpp" )
81
80
82
81
# IndexingDataOps - Data indexing, lookup, and generation operations
83
82
create_nnfw_test_group("IndexingDataOps"
84
- "src/GenModelTests/one_op_tests/IndexingDataOps/**/* .test.cc"
85
- "src/GenModelTests/one_op_tests/IndexingDataOps/**/* .test.cpp" )
83
+ "src/GenModelTests/one_op_tests/IndexingDataOps/*.test.cc"
84
+ "src/GenModelTests/one_op_tests/IndexingDataOps/*.test.cpp" )
86
85
87
86
# ReductionStatsOps - Reduction operations and statistical computations
88
87
create_nnfw_test_group("ReductionStatsOps"
89
- "src/GenModelTests/one_op_tests/ReductionStatsOps/**/* .test.cc"
90
- "src/GenModelTests/one_op_tests/ReductionStatsOps/**/* .test.cpp" )
88
+ "src/GenModelTests/one_op_tests/ReductionStatsOps/*.test.cc"
89
+ "src/GenModelTests/one_op_tests/ReductionStatsOps/*.test.cpp" )
91
90
92
91
# ControlFlowOps - Control flow and conditional execution operations
93
92
create_nnfw_test_group("ControlFlowOps"
94
- "src/GenModelTests/one_op_tests/ControlFlowOps/**/* .test.cc"
95
- "src/GenModelTests/one_op_tests/ControlFlowOps/**/* .test.cpp" )
93
+ "src/GenModelTests/one_op_tests/ControlFlowOps/*.test.cc"
94
+ "src/GenModelTests/one_op_tests/ControlFlowOps/*.test.cpp" )
96
95
97
96
# TypeConversionOps - Data type conversion and quantization operations
98
97
create_nnfw_test_group("TypeConversionOps"
99
- "src/GenModelTests/one_op_tests/TypeConversionOps/**/* .test.cc"
100
- "src/GenModelTests/one_op_tests/TypeConversionOps/**/* .test.cpp" )
98
+ "src/GenModelTests/one_op_tests/TypeConversionOps/*.test.cc"
99
+ "src/GenModelTests/one_op_tests/TypeConversionOps/*.test.cpp" )
101
100
102
101
# AdvancedSpecialOps - Advanced and special-purpose operations
103
102
create_nnfw_test_group("AdvancedSpecialOps"
104
- "src/GenModelTests/one_op_tests/AdvancedSpecialOps/**/* .test.cc"
105
- "src/GenModelTests/one_op_tests/AdvancedSpecialOps/**/* .test.cpp" )
103
+ "src/GenModelTests/one_op_tests/AdvancedSpecialOps/*.test.cc"
104
+ "src/GenModelTests/one_op_tests/AdvancedSpecialOps/*.test.cpp" )
106
105
107
106
file (GLOB_RECURSE ONE_OP_TRAINS_SRC "src/GenModelTests/one_op_trains/*.test.cc" "src/GenModelTests/one_op_trains/*.test.cpp" )
108
107
add_executable (nnfw_api_gtest_one_op_trains main.cc ${ONE_OP_TRAINS_SRC} )
0 commit comments