Skip to content
GitLab
Menu
Why GitLab
Pricing
Contact Sales
Explore
Why GitLab
Pricing
Contact Sales
Explore
Sign in
Get free trial
Primary navigation
Search or go to…
Project
L
lomiri-content-hub
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Privacy statement
Keyboard shortcuts
?
What's new
3
Snippets
Groups
Projects
Show more breadcrumbs
UBports
Development
Core
lomiri-content-hub
Commits
6e2ddc5a
Commit
6e2ddc5a
authored
2 weeks ago
by
Mike Gabriel
Browse files
Options
Downloads
Patches
Plain Diff
tests/qml-tests*/CMakeLists.txt: Run QML tests in dbus-test-runner environment.
parent
2d192264
Branches
Branches containing commit
Tags
Tags containing commit
1 merge request
!44
treewide: Add qt6 support and build shared libraries dually (Qt5 + Qt6)
Pipeline
#1759712345
running
Stage: external
Changes
2
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
tests/qml-tests-ubuntu-compat/CMakeLists.txt
+1
-1
1 addition, 1 deletion
tests/qml-tests-ubuntu-compat/CMakeLists.txt
tests/qml-tests/CMakeLists.txt
+1
-1
1 addition, 1 deletion
tests/qml-tests/CMakeLists.txt
with
2 additions
and
2 deletions
tests/qml-tests-ubuntu-compat/CMakeLists.txt
+
1
−
1
View file @
6e2ddc5a
...
...
@@ -17,7 +17,7 @@ set(XVFB_CMD xvfb-run -a -s "-screen 0 640x480x24")
add_executable
(
${
TEST
}
../qml-tests/tst_QmlTests.cpp
)
find_package
(
Qt
${
QT_VERSION_MAJOR
}
REQUIRED COMPONENTS Core Qml Quick Test QuickTest
)
target_link_libraries
(
${
TEST
}
Qt::Core Qt::Qml Qt::Quick Qt::Test Qt::QuickTest
)
add_test
(
NAME
${
TEST
}
COMMAND
${
XVFB_CMD
}
${
CMAKE_CURRENT_BINARY_DIR
}
/
${
TEST
}
)
add_test
(
NAME
${
TEST
}
COMMAND
${
XVFB_CMD
}
dbus-test-runner --task
${
CMAKE_CURRENT_BINARY_DIR
}
/
${
TEST
}
)
set_tests_properties
(
${
TEST
}
PROPERTIES ENVIRONMENT
"QT_QPA_PLATFORM=minimal;QML2_IMPORT_PATH=
${
CMAKE_BINARY_DIR
}
/import;APP_ID=com.some.app.for.testing"
)
set
(
out_qml_files
)
...
...
This diff is collapsed.
Click to expand it.
tests/qml-tests/CMakeLists.txt
+
1
−
1
View file @
6e2ddc5a
...
...
@@ -17,7 +17,7 @@ set(XVFB_CMD xvfb-run -a -s "-screen 0 640x480x24")
add_executable
(
${
TEST
}
tst_QmlTests.cpp
)
find_package
(
Qt
${
QT_VERSION_MAJOR
}
REQUIRED COMPONENTS Core Qml Quick Test QuickTest
)
target_link_libraries
(
${
TEST
}
Qt::Core Qt::Qml Qt::Quick Qt::Test Qt::QuickTest
)
add_test
(
NAME
${
TEST
}
COMMAND
${
XVFB_CMD
}
${
CMAKE_CURRENT_BINARY_DIR
}
/
${
TEST
}
)
add_test
(
NAME
${
TEST
}
COMMAND
${
XVFB_CMD
}
dbus-test-runner --task
${
CMAKE_CURRENT_BINARY_DIR
}
/
${
TEST
}
)
set_tests_properties
(
${
TEST
}
PROPERTIES ENVIRONMENT
"QT_QPA_PLATFORM=minimal;QML2_IMPORT_PATH=
${
CMAKE_BINARY_DIR
}
/import;APP_ID=com.some.app.for.testing"
)
# copy qml files under test to build dir
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment