2
2
3
3
################### test_ProtoDataProvider ############
4
4
add_unittest_without_exec (test_ProtoDataProvider
5
- test_ProtoDataProvider.cpp
6
- TestUtil.cpp )
5
+ test_ProtoDataProvider.cpp )
7
6
8
7
# test_ProtoDataProvider will mkdir as same name,
9
8
# so if WORKING_DIRECTORY is default directory, then
@@ -15,53 +14,46 @@ add_test(NAME test_ProtoDataProvider
15
14
################# test_LayerGrad #######################
16
15
add_unittest_without_exec (test_LayerGrad
17
16
test_LayerGrad.cpp
18
- LayerGradUtil.cpp
19
- TestUtil.cpp )
17
+ LayerGradUtil.cpp )
20
18
add_test (NAME test_LayerGrad
21
19
COMMAND test_LayerGrad )
22
20
23
21
add_unittest_without_exec (test_ActivationGrad
24
22
test_ActivationGrad.cpp
25
- LayerGradUtil.cpp
26
- TestUtil.cpp )
23
+ LayerGradUtil.cpp )
27
24
add_test (NAME test_ActivationGrad
28
25
COMMAND test_ActivationGrad )
29
26
################# test_ConvTrans #######################
30
27
add_unittest_without_exec (test_ConvTrans
31
28
test_ConvTrans.cpp
32
- LayerGradUtil.cpp
33
- TestUtil.cpp )
29
+ LayerGradUtil.cpp )
34
30
35
31
add_test (NAME test_ConvTrans
36
32
COMMAND test_ConvTrans )
37
33
################# test_PriorBox #######################
38
34
add_unittest_without_exec (test_PriorBox
39
35
test_PriorBox.cpp
40
- LayerGradUtil.cpp
41
- TestUtil.cpp )
36
+ LayerGradUtil.cpp )
42
37
43
38
add_test (NAME test_PriorBox
44
39
COMMAND test_PriorBox )
45
40
################# test_ConvUnify #######################
46
41
add_unittest_without_exec (test_ConvUnify
47
42
test_ConvUnify.cpp
48
- LayerGradUtil.cpp
49
- TestUtil.cpp )
43
+ LayerGradUtil.cpp )
50
44
51
45
add_test (NAME test_ConvUnify
52
46
COMMAND test_ConvUnify )
53
47
################# test_BatchNorm #######################
54
48
add_unittest_without_exec (test_BatchNorm
55
49
test_BatchNorm.cpp
56
- LayerGradUtil.cpp
57
- TestUtil.cpp )
50
+ LayerGradUtil.cpp )
58
51
59
52
add_test (NAME test_BatchNorm
60
53
COMMAND test_BatchNorm )
61
54
################## test_Evaluator #######################
62
55
add_unittest (test_Evaluator
63
- test_Evaluator.cpp
64
- TestUtil.cpp )
56
+ test_Evaluator.cpp )
65
57
66
58
################ test_LinearChainCRF ####################
67
59
add_simple_unittest (test_LinearChainCRF )
@@ -72,24 +64,20 @@ add_simple_unittest(test_MultinomialSampler)
72
64
############## test_PyDataProvider ########################
73
65
if (WITH_PYTHON )
74
66
add_unittest_without_exec (test_PyDataProvider
75
- test_PyDataProvider.cpp
76
- TestUtil.cpp )
67
+ test_PyDataProvider.cpp )
77
68
78
69
add_test (NAME test_PyDataProvider
79
70
COMMAND .set_python_path.sh -d ./gserver/tests:${PROJ_ROOT}/python/ ${CMAKE_CURRENT_BINARY_DIR} /test_PyDataProvider
80
71
WORKING_DIRECTORY ${PROJ_ROOT} /paddle )
81
72
endif ()
82
73
83
74
############### test_RecurrentLayer #######################
84
- add_unittest (test_RecurrentLayer
85
- test_RecurrentLayer.cpp
86
- TestUtil.cpp )
75
+ add_simple_unittest (test_RecurrentLayer )
87
76
88
77
############### test_WarpCTCLayer #######################
89
78
if (NOT WITH_DOUBLE )
90
79
add_unittest_without_exec (test_WarpCTCLayer
91
- test_WarpCTCLayer.cpp
92
- TestUtil.cpp )
80
+ test_WarpCTCLayer.cpp )
93
81
94
82
add_test (NAME test_WarpCTCLayer
95
83
COMMAND ${CMAKE_CURRENT_BINARY_DIR} /test_WarpCTCLayer --warpctc_dir=${PROJ_ROOT}/warp-ctc/build
@@ -108,8 +96,7 @@ add_test(NAME test_RecurrentGradientMachine
108
96
WORKING_DIRECTORY ${PROJ_ROOT} /paddle )
109
97
110
98
add_unittest_without_exec (test_NetworkCompare
111
- test_NetworkCompare.cpp
112
- TestUtil.cpp )
99
+ test_NetworkCompare.cpp )
113
100
if (WITH_GPU )
114
101
add_test (NAME test_NetworkCompare
115
102
COMMAND .set_python_path.sh -d ${PROJ_ROOT} /python ${CMAKE_CURRENT_BINARY_DIR} /test_NetworkCompare --use_gpu=true
0 commit comments