CMakeLists.txt 1.2 KB
Newer Older
1 2
file(GLOB TEST_OPS RELATIVE "${CMAKE_CURRENT_SOURCE_DIR}" "test_*.py")
string(REPLACE ".py" "" TEST_OPS "${TEST_OPS}")
3

Y
Yang Yu 已提交
4
list(REMOVE_ITEM TEST_OPS test_image_classification_train test_recognize_digits)
5 6
py_test(test_image_classification_train_resnet SRCS test_image_classification_train.py ARGS resnet)
py_test(test_image_classification_train_vgg SRCS test_image_classification_train.py ARGS vgg)
Y
Yang Yu 已提交
7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30
py_test(test_recognize_digits_mlp_cpu
  SRCS test_recognize_digits.py
  ARGS mlp)
py_test(test_recognize_digits_mlp_cuda
  SRCS test_recognize_digits.py
  ARGS mlp --use_cuda)
py_test(test_recognize_digits_conv_cpu
  SRCS test_recognize_digits.py
  ARGS conv)
py_test(test_recognize_digits_conv_cuda
  SRCS test_recognize_digits.py
  ARGS conv --use_cuda)
py_test(test_recognize_digits_mlp_cpu_parallel
  SRCS test_recognize_digits.py
  ARGS mlp --parallel)
py_test(test_recognize_digits_mlp_cuda_parallel
  SRCS test_recognize_digits.py
  ARGS mlp --use_cuda --parallel)
py_test(test_recognize_digits_conv_cpu_parallel
  SRCS test_recognize_digits.py
  ARGS conv --parallel)
py_test(test_recognize_digits_conv_cuda_parallel
  SRCS test_recognize_digits.py
  ARGS conv --use_cuda --parallel)
31 32

# default test
33 34 35
foreach(src ${TEST_OPS})
    py_test(${src} SRCS ${src}.py)
endforeach()