Skip to content

Commit 0464af2

Browse files
committed
Fix tests failure
1 parent f310a90 commit 0464af2

File tree

2 files changed

+8
-9
lines changed

2 files changed

+8
-9
lines changed

source/module_base/test/CMakeLists.txt

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,8 @@ AddTest(
3131
)
3232
ADDTest(
3333
TARGET base_global_function
34-
LIBS parameter ${math_libs} base device
35-
SOURCES global_function_test.cpp
34+
LIBS parameter ${math_libs}
35+
SOURCES global_function_test.cpp ../global_function.cpp ../tool_quit.cpp ../global_variable.cpp ../global_file.cpp ../memory.cpp ../timer.cpp
3636
)
3737
AddTest(
3838
TARGET base_vector3
@@ -132,8 +132,8 @@ AddTest(
132132

133133
AddTest(
134134
TARGET base_math_chebyshev
135-
LIBS parameter ${math_libs} base device container
136-
SOURCES math_chebyshev_test.cpp
135+
LIBS parameter ${math_libs} device container
136+
SOURCES math_chebyshev_test.cpp ../math_chebyshev.cpp ../tool_quit.cpp ../global_variable.cpp ../timer.cpp ../global_file.cpp ../global_function.cpp ../memory.cpp ../parallel_reduce.cpp
137137
)
138138

139139
AddTest(
@@ -144,14 +144,14 @@ AddTest(
144144

145145
AddTest(
146146
TARGET base_opt_CG
147-
LIBS parameter ${math_libs} base device
148-
SOURCES opt_CG_test.cpp opt_test_tools.cpp
147+
LIBS parameter ${math_libs}
148+
SOURCES opt_CG_test.cpp opt_test_tools.cpp ../opt_CG.cpp ../opt_DCsrch.cpp ../global_variable.cpp ../parallel_reduce.cpp
149149
)
150150

151151
AddTest(
152152
TARGET base_opt_TN
153-
LIBS parameter ${math_libs} base device
154-
SOURCES opt_TN_test.cpp opt_test_tools.cpp
153+
LIBS parameter ${math_libs}
154+
SOURCES opt_TN_test.cpp opt_test_tools.cpp ../opt_CG.cpp ../opt_DCsrch.cpp ../global_variable.cpp ../parallel_reduce.cpp
155155
)
156156

157157
AddTest(

source/module_base/test/global_function_test.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
#include "module_parameter/parameter.h"
55
#undef private
66
#include "../vector3.h"
7-
#include "../blas_connector.h"
87
#include "../tool_quit.h"
98
#include <string>
109
#include <cstring>

0 commit comments

Comments
 (0)