parent
2146293d26
commit
38f01b678a
@ -1,16 +1,28 @@
|
||||
file(GLOB TEST_OPS RELATIVE "${CMAKE_CURRENT_SOURCE_DIR}" "test_*.py")
|
||||
file(GLOB TEST_OPS RELATIVE "${CMAKE_CURRENT_SOURCE_DIR}" "test_*_new_api.py")
|
||||
string(REPLACE ".py" "" TEST_OPS "${TEST_OPS}")
|
||||
|
||||
# default test
|
||||
foreach(src ${TEST_OPS})
|
||||
py_test(${src} SRCS ${src}.py)
|
||||
endforeach()
|
||||
# This test is buggy
|
||||
# py_test(test_understand_sentiment_dynamic_rnn SRCS
|
||||
# test_understand_sentiment_dynamic_rnn.py SERIAL)
|
||||
LIST(REMOVE_ITEM TEST_OPS test_understand_sentiment_dynamic_rnn_new_api)
|
||||
|
||||
add_subdirectory(fit_a_line)
|
||||
add_subdirectory(recognize_digits)
|
||||
add_subdirectory(image_classification)
|
||||
add_subdirectory(understand_sentiment)
|
||||
add_subdirectory(label_semantic_roles)
|
||||
add_subdirectory(word2vec)
|
||||
add_subdirectory(recommender_system)
|
||||
add_subdirectory(machine_translation)
|
||||
if(NOT APPLE)
|
||||
# default test
|
||||
foreach(src ${TEST_OPS})
|
||||
py_test(${src} SRCS ${src}.py)
|
||||
endforeach()
|
||||
else()
|
||||
foreach(src ${TEST_OPS})
|
||||
if(${src} STREQUAL "test_image_classification_vgg_new_api")
|
||||
message(WARNING "These tests has been disabled in OSX for random fail: \n" ${src})
|
||||
elseif(${src} STREQUAL "test_image_classification_resnet_new_api")
|
||||
message(WARNING "These tests has been disabled in OSX for random fail: \n" ${src})
|
||||
elseif(${src} STREQUAL "test_recognize_digits_conv_new_api")
|
||||
message(WARNING "These tests has been disabled in OSX for random fail: \n" ${src})
|
||||
elseif(${src} STREQUAL "test_recognize_digits_mlp_new_api")
|
||||
message(WARNING "These tests has been disabled in OSX for random fail: \n" ${src})
|
||||
elseif()
|
||||
py_test(${src} SRCS ${src}.py)
|
||||
endif()
|
||||
endforeach()
|
||||
endif()
|
||||
|
@ -1,7 +0,0 @@
|
||||
file(GLOB TEST_OPS RELATIVE "${CMAKE_CURRENT_SOURCE_DIR}" "test_*.py")
|
||||
string(REPLACE ".py" "" TEST_OPS "${TEST_OPS}")
|
||||
|
||||
# default test
|
||||
foreach(src ${TEST_OPS})
|
||||
py_test(${src} SRCS ${src}.py)
|
||||
endforeach()
|
@ -1,19 +0,0 @@
|
||||
file(GLOB TEST_OPS RELATIVE "${CMAKE_CURRENT_SOURCE_DIR}" "test_*.py")
|
||||
string(REPLACE ".py" "" TEST_OPS "${TEST_OPS}")
|
||||
|
||||
if(NOT APPLE)
|
||||
# default test
|
||||
foreach(src ${TEST_OPS})
|
||||
py_test(${src} SRCS ${src}.py)
|
||||
endforeach()
|
||||
else()
|
||||
foreach(src ${TEST_OPS})
|
||||
if(${src} STREQUAL "test_image_classification_vgg")
|
||||
message(WARNING "These tests has been disabled in OSX for random fail: \n" ${src})
|
||||
elseif(${src} STREQUAL "test_image_classification_resnet")
|
||||
message(WARNING "These tests has been disabled in OSX for random fail: \n" ${src})
|
||||
elseif()
|
||||
py_test(${src} SRCS ${src}.py)
|
||||
endif()
|
||||
endforeach()
|
||||
endif()
|
@ -1,7 +0,0 @@
|
||||
file(GLOB TEST_OPS RELATIVE "${CMAKE_CURRENT_SOURCE_DIR}" "test_*.py")
|
||||
string(REPLACE ".py" "" TEST_OPS "${TEST_OPS}")
|
||||
|
||||
# default test
|
||||
foreach(src ${TEST_OPS})
|
||||
py_test(${src} SRCS ${src}.py)
|
||||
endforeach()
|
@ -1,7 +0,0 @@
|
||||
file(GLOB TEST_OPS RELATIVE "${CMAKE_CURRENT_SOURCE_DIR}" "test_*.py")
|
||||
string(REPLACE ".py" "" TEST_OPS "${TEST_OPS}")
|
||||
|
||||
# default test
|
||||
foreach(src ${TEST_OPS})
|
||||
py_test(${src} SRCS ${src}.py)
|
||||
endforeach()
|
@ -1,19 +0,0 @@
|
||||
file(GLOB TEST_OPS RELATIVE "${CMAKE_CURRENT_SOURCE_DIR}" "test_*.py")
|
||||
string(REPLACE ".py" "" TEST_OPS "${TEST_OPS}")
|
||||
|
||||
# default test
|
||||
if(NOT APPLE)
|
||||
foreach(src ${TEST_OPS})
|
||||
py_test(${src} SRCS ${src}.py)
|
||||
endforeach()
|
||||
else()
|
||||
foreach(src ${TEST_OPS})
|
||||
if(${src} STREQUAL "test_recognize_digits_conv")
|
||||
message(WARNING "These tests has been disabled in OSX for random fail: \n" ${src})
|
||||
elseif(${src} STREQUAL "test_recognize_digits_mlp")
|
||||
message(WARNING "These tests has been disabled in OSX for random fail: \n" ${src})
|
||||
else()
|
||||
py_test(${src} SRCS ${src}.py)
|
||||
endif()
|
||||
endforeach()
|
||||
endif()
|
@ -1,7 +0,0 @@
|
||||
file(GLOB TEST_OPS RELATIVE "${CMAKE_CURRENT_SOURCE_DIR}" "test_*.py")
|
||||
string(REPLACE ".py" "" TEST_OPS "${TEST_OPS}")
|
||||
|
||||
# default test
|
||||
foreach(src ${TEST_OPS})
|
||||
py_test(${src} SRCS ${src}.py)
|
||||
endforeach()
|
@ -1,12 +0,0 @@
|
||||
file(GLOB TEST_OPS RELATIVE "${CMAKE_CURRENT_SOURCE_DIR}" "test_*.py")
|
||||
string(REPLACE ".py" "" TEST_OPS "${TEST_OPS}")
|
||||
|
||||
# This test is buggy
|
||||
# py_test(test_understand_sentiment_dynamic_rnn SRCS
|
||||
# test_understand_sentiment_dynamic_rnn.py SERIAL)
|
||||
LIST(REMOVE_ITEM TEST_OPS test_understand_sentiment_dynamic_rnn)
|
||||
|
||||
# default test
|
||||
foreach(src ${TEST_OPS})
|
||||
py_test(${src} SRCS ${src}.py)
|
||||
endforeach()
|
@ -1,7 +0,0 @@
|
||||
file(GLOB TEST_OPS RELATIVE "${CMAKE_CURRENT_SOURCE_DIR}" "test_*.py")
|
||||
string(REPLACE ".py" "" TEST_OPS "${TEST_OPS}")
|
||||
|
||||
# default test
|
||||
foreach(src ${TEST_OPS})
|
||||
py_test(${src} SRCS ${src}.py)
|
||||
endforeach()
|
Loading…
Reference in new issue