Adding blacklist with qkeysequence test
Reviewer: Hugo Lima <hugo.lima@openbossa.org> Reviewer: Marcelo Lira <marcelo.lira@openbossa.org>
This commit is contained in:
parent
c7199a6ecb
commit
b10d28d07f
1 changed files with 6 additions and 0 deletions
|
|
@ -1,8 +1,11 @@
|
||||||
|
|
||||||
file(GLOB TEST_FILES */*_test.py)
|
file(GLOB TEST_FILES */*_test.py)
|
||||||
|
|
||||||
|
set(test_blacklist "qtgui_qstring_qkeysequence")
|
||||||
|
|
||||||
foreach(test_file ${TEST_FILES})
|
foreach(test_file ${TEST_FILES})
|
||||||
string(REGEX MATCH "/([^/]+)//?([^/]+)_test.py" test_name ${test_file} )
|
string(REGEX MATCH "/([^/]+)//?([^/]+)_test.py" test_name ${test_file} )
|
||||||
|
list(FIND test_blacklist ${CMAKE_MATCH_1}_${CMAKE_MATCH_2} expect_fail)
|
||||||
add_test(${CMAKE_MATCH_1}_${CMAKE_MATCH_2} sh
|
add_test(${CMAKE_MATCH_1}_${CMAKE_MATCH_2} sh
|
||||||
${CMAKE_CURRENT_SOURCE_DIR}/run_test.sh
|
${CMAKE_CURRENT_SOURCE_DIR}/run_test.sh
|
||||||
"${pysidebase_BINARY_DIR}"
|
"${pysidebase_BINARY_DIR}"
|
||||||
|
|
@ -10,6 +13,9 @@ foreach(test_file ${TEST_FILES})
|
||||||
${PYTHON_EXECUTABLE}
|
${PYTHON_EXECUTABLE}
|
||||||
${test_file})
|
${test_file})
|
||||||
set_tests_properties(${CMAKE_MATCH_1}_${CMAKE_MATCH_2} PROPERTIES TIMEOUT 5)
|
set_tests_properties(${CMAKE_MATCH_1}_${CMAKE_MATCH_2} PROPERTIES TIMEOUT 5)
|
||||||
|
if (${expect_fail} GREATER -1)
|
||||||
|
set_tests_properties(${CMAKE_MATCH_1}_${CMAKE_MATCH_2} PROPERTIES WILL_FAIL TRUE)
|
||||||
|
endif(${expect_fail} GREATER -1)
|
||||||
# Should set python path here
|
# Should set python path here
|
||||||
# Looks like it's fixed in 2.8:
|
# Looks like it's fixed in 2.8:
|
||||||
# http://www.vtk.org/Bug/print_bug_page.php?bug_id=7885
|
# http://www.vtk.org/Bug/print_bug_page.php?bug_id=7885
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue