py_test and test_image_classification_train support argument (#5934)
* py_test support argument, test_image_classification_train support argument * use REMOVE_ITEM to rm item from list in cmakerelease/0.11.0
parent
9de8ce171c
commit
c9a96575d5
@ -1,5 +1,11 @@
|
||||
file(GLOB TEST_OPS RELATIVE "${CMAKE_CURRENT_SOURCE_DIR}" "test_*.py")
|
||||
string(REPLACE ".py" "" TEST_OPS "${TEST_OPS}")
|
||||
|
||||
list(REMOVE_ITEM TEST_OPS test_image_classification_train)
|
||||
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)
|
||||
|
||||
# default test
|
||||
foreach(src ${TEST_OPS})
|
||||
py_test(${src} SRCS ${src}.py)
|
||||
endforeach()
|
||||
|
Loading…
Reference in new issue