|
1 | | -py_test(test_net SRCS test_net.py) |
2 | | - |
3 | | -py_test(test_scope SRCS test_scope.py) |
4 | | - |
5 | | -py_test(test_tensor SRCS test_tensor.py) |
6 | | -py_test(test_mul_op SRCS test_mul_op.py) |
7 | | -py_test(test_cos_sim_op SRCS test_cos_sim_op.py) |
8 | | - |
9 | | -py_test(test_mean_op SRCS test_mean_op.py) |
10 | | - |
11 | | -py_test(test_protobuf SRCS test_protobuf.py) |
12 | | - |
13 | | -py_test(test_add_two_op SRCS test_add_two_op.py) |
14 | | -py_test(test_sigmoid_op SRCS test_sigmoid_op.py) |
15 | | -py_test(test_softmax_op SRCS test_softmax_op.py) |
16 | | -py_test(test_cross_entropy_op SRCS test_cross_entropy_op.py) |
17 | | -py_test(test_gather_op SRCS test_gather_op.py) |
18 | | -py_test(test_scatter_op SRCS test_scatter_op.py) |
19 | | -py_test(test_fill_zeros_like_op SRCS test_fill_zeros_like_op.py) |
20 | | -py_test(test_top_k_op SRCS test_top_k_op.py) |
21 | | - |
22 | | -py_test(test_rowwise_add_op SRCS test_rowwise_add_op.py) |
23 | | - |
24 | | -py_test(test_default_scope_funcs SRCS test_default_scope_funcs.py) |
25 | | - |
26 | | -py_test(test_operator SRCS test_operator.py) |
27 | | -py_test(test_gaussian_random_op SRCS test_gaussian_random_op.py) |
28 | | -py_test(test_uniform_random_op SRCS test_uniform_random_op.py) |
29 | | -py_test(test_recurrent_op SRCS test_recurrent_op.py) |
30 | | -py_test(test_sgd_op SRCS test_sgd_op.py) |
31 | | -py_test(test_gradient_checker SRCS test_gradient_checker.py) |
32 | | -py_test(test_lookup_table SRCS test_lookup_table.py) |
33 | | -py_test(test_scale_and_identity_op SRCS test_scale_and_identity_op.py) |
34 | | -py_test(test_sum_op SRCS test_sum_op.py) |
35 | | -py_test(mnist SRCS mnist.py) |
36 | | -py_test(test_concat_op SRCS test_concat_op.py) |
37 | | -py_test(test_squared_l2_distance_op SRCS test_squared_l2_distance_op.py) |
38 | | -py_test(test_reshape_op SRCS test_reshape_op.py) |
| 1 | +file(GLOB TEST_OPS RELATIVE "${CMAKE_CURRENT_SOURCE_DIR}" "test_*.py") |
| 2 | +string(REPLACE ".py" "" TEST_OPS "${TEST_OPS}") |
| 3 | +foreach(src ${TEST_OPS}) |
| 4 | + py_test(${src} SRCS ${src}.py) |
| 5 | +endforeach() |
0 commit comments