Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Multimedia
Kdenlive
Commits
e16fe038
Commit
e16fe038
authored
Oct 08, 2022
by
Julius Künzel
💬
Browse files
[Tests] Use ecm_add_test and split to individual binaries
parent
721ad3e6
Pipeline
#244097
passed with stage
in 14 minutes and 14 seconds
Changes
1
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
tests/CMakeLists.txt
View file @
e16fe038
...
...
@@ -2,9 +2,8 @@ include_directories(${MLT_INCLUDE_DIR} ${MLTPP_INCLUDE_DIR} ..)
set
(
TEST_SOURCES
${
CMAKE_CURRENT_SOURCE_DIR
}
)
configure_file
(
tests_definitions.h.in tests_definitions.h
)
kde_enable_exceptions
()
add_executable
(
runTests
TestMain.cpp
abortutil.cpp
set
(
KdenliveTest_SOURCES
colorscopestest.cpp
compositiontest.cpp
effectstest.cpp
...
...
@@ -16,7 +15,6 @@ add_executable(runTests
modeltest.cpp
regressions.cpp
snaptest.cpp
test_utils.cpp
timewarptest.cpp
titlertest.cpp
treetest.cpp
...
...
@@ -25,6 +23,18 @@ add_executable(runTests
movetest.cpp
subtitlestest.cpp
)
set_property
(
TARGET runTests PROPERTY CXX_STANDARD 14
)
target_link_libraries
(
runTests kdenliveLib
)
add_test
(
NAME runTests COMMAND
${
CMAKE_RUNTIME_OUTPUT_DIRECTORY
}
/runTests -d yes
)
include
(
ECMAddTests
)
foreach
(
_source
${
KdenliveTest_SOURCES
}
)
get_filename_component
(
_targetname
${
_source
}
NAME_WE
)
ecm_add_test
(
TestMain.cpp
test_utils.cpp
abortutil.cpp
${
_source
}
TEST_NAME
${
_targetname
}
LINK_LIBRARIES kdenliveLib
)
set_property
(
TARGET
${
_targetname
}
PROPERTY CXX_STANDARD 14
)
endforeach
()
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment