未验证 提交 42a6442a 编写于 作者: Y YUNSHEN XIE 提交者: GitHub

disable ut test_tsm on windows (#30017)

* disable ut test_tsm on windows

* fix error

* add ut execuate time
上级 3ce878f3
...@@ -655,8 +655,8 @@ endif() ...@@ -655,8 +655,8 @@ endif()
if (WITH_DISTRIBUTE) if (WITH_DISTRIBUTE)
set_tests_properties(test_communicator_half_async PROPERTIES TIMEOUT 120) set_tests_properties(test_communicator_half_async PROPERTIES TIMEOUT 120)
set_tests_properties(test_dist_fleet_ctr2 PROPERTIES TIMEOUT 120) set_tests_properties(test_dist_fleet_ctr2 PROPERTIES TIMEOUT 200)
set_tests_properties(test_dist_fleet_sparse_embedding_ctr PROPERTIES TIMEOUT 120) set_tests_properties(test_dist_fleet_sparse_embedding_ctr PROPERTIES TIMEOUT 200)
endif() endif()
if (WITH_DISTRIBUTE AND NOT APPLE) if (WITH_DISTRIBUTE AND NOT APPLE)
......
file(GLOB TEST_OPS RELATIVE "${CMAKE_CURRENT_SOURCE_DIR}" "test_*.py") file(GLOB TEST_OPS RELATIVE "${CMAKE_CURRENT_SOURCE_DIR}" "test_*.py")
string(REPLACE ".py" "" TEST_OPS "${TEST_OPS}") string(REPLACE ".py" "" TEST_OPS "${TEST_OPS}")
if(WIN32)
LIST(REMOVE_ITEM TEST_OPS test_tsm)
endif()
foreach(TEST_OP ${TEST_OPS}) foreach(TEST_OP ${TEST_OPS})
py_test_modules(${TEST_OP} MODULES ${TEST_OP}) py_test_modules(${TEST_OP} MODULES ${TEST_OP})
endforeach(TEST_OP) endforeach(TEST_OP)
set_tests_properties(test_se_resnet PROPERTIES TIMEOUT 900) set_tests_properties(test_se_resnet PROPERTIES TIMEOUT 900)
set_tests_properties(test_tsm PROPERTIES TIMEOUT 900)
set_tests_properties(test_yolov3 PROPERTIES TIMEOUT 900 LABELS "RUN_TYPE=EXCLUSIVE") set_tests_properties(test_yolov3 PROPERTIES TIMEOUT 900 LABELS "RUN_TYPE=EXCLUSIVE")
set_tests_properties(test_mobile_net PROPERTIES TIMEOUT 120) set_tests_properties(test_mobile_net PROPERTIES TIMEOUT 120)
set_tests_properties(test_seq2seq PROPERTIES TIMEOUT 120) set_tests_properties(test_seq2seq PROPERTIES TIMEOUT 120)
...@@ -21,6 +24,7 @@ set_tests_properties(test_bmn PROPERTIES TIMEOUT 120) ...@@ -21,6 +24,7 @@ set_tests_properties(test_bmn PROPERTIES TIMEOUT 120)
if(NOT WIN32) if(NOT WIN32)
set_tests_properties(test_resnet_v2 PROPERTIES TIMEOUT 120) set_tests_properties(test_resnet_v2 PROPERTIES TIMEOUT 120)
set_tests_properties(test_tsm PROPERTIES TIMEOUT 900)
#set_tests_properties(test_resnet PROPERTIES TIMEOUT 120) #set_tests_properties(test_resnet PROPERTIES TIMEOUT 120)
endif() endif()
#if(WIN32) #if(WIN32)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册