mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2026-10-23 23:44:13 +02:00
Skip tst_elementkindinformation where --run does not exist
The test drives the real binary through --run. A build without the Qt Qml module has no scripting, so the binary opens and never exits, and the test is killed at the 120 s timeout. That is the Linux CI build: master and every pull request have failed on this test since #1590. Guard it with if(QET_HAS_SCRIPTING), like the other --run tests. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -1221,14 +1221,16 @@ target_compile_definitions(tst_movedterminals PRIVATE
|
||||
# A symbol's kind information (NO/NC/SW/power) is queryable from the
|
||||
# project database once it is placed, not only from a live Element*.
|
||||
# QETZ-DB-FIRST 2d-2a.
|
||||
add_executable(
|
||||
tst_elementkindinformation
|
||||
tst_elementkindinformation.cpp)
|
||||
add_test(NAME tst_elementkindinformation COMMAND tst_elementkindinformation)
|
||||
add_dependencies(tst_elementkindinformation qelectrotech)
|
||||
target_link_libraries(tst_elementkindinformation PRIVATE Qt::Test Qt::Xml)
|
||||
target_compile_definitions(tst_elementkindinformation PRIVATE
|
||||
"QET_TEST_BINARY_PATH=\"$<TARGET_FILE:qelectrotech>\"")
|
||||
if(QET_HAS_SCRIPTING)
|
||||
add_executable(
|
||||
tst_elementkindinformation
|
||||
tst_elementkindinformation.cpp)
|
||||
add_test(NAME tst_elementkindinformation COMMAND tst_elementkindinformation)
|
||||
add_dependencies(tst_elementkindinformation qelectrotech)
|
||||
target_link_libraries(tst_elementkindinformation PRIVATE Qt::Test Qt::Xml)
|
||||
target_compile_definitions(tst_elementkindinformation PRIVATE
|
||||
"QET_TEST_BINARY_PATH=\"$<TARGET_FILE:qelectrotech>\"")
|
||||
endif()
|
||||
|
||||
# Symbols sharing one uuid on a folio keep their wires through save and
|
||||
# reopen (#1408): nets of examples/Habitat-Schemas_developpes.qet.
|
||||
|
||||
Reference in New Issue
Block a user