Merge pull request #16738 from luotao1/high_level_api_test
reduce CI time of high_level_api testsrevert-16650-refine_parallel_executor_3
commit
f96446cade
@ -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}")
|
string(REPLACE ".py" "" TEST_OPS "${TEST_OPS}")
|
||||||
|
|
||||||
# default test
|
# This test is buggy
|
||||||
foreach(src ${TEST_OPS})
|
# py_test(test_understand_sentiment_dynamic_rnn SRCS
|
||||||
py_test(${src} SRCS ${src}.py)
|
# test_understand_sentiment_dynamic_rnn.py SERIAL)
|
||||||
endforeach()
|
LIST(REMOVE_ITEM TEST_OPS test_understand_sentiment_dynamic_rnn_new_api)
|
||||||
|
|
||||||
add_subdirectory(fit_a_line)
|
if(NOT APPLE)
|
||||||
add_subdirectory(recognize_digits)
|
# default test
|
||||||
add_subdirectory(image_classification)
|
foreach(src ${TEST_OPS})
|
||||||
add_subdirectory(understand_sentiment)
|
py_test(${src} SRCS ${src}.py)
|
||||||
add_subdirectory(label_semantic_roles)
|
endforeach()
|
||||||
add_subdirectory(word2vec)
|
else()
|
||||||
add_subdirectory(recommender_system)
|
foreach(src ${TEST_OPS})
|
||||||
add_subdirectory(machine_translation)
|
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()
|
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in new issue