Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Qt UI Viewer
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Jira
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Design Studio
QML Viewer Projects
Qt UI Viewer
Commits
0eee9c50
Verified
Commit
0eee9c50
authored
3 months ago
by
Burak Hançerli
Browse files
Options
Downloads
Patches
Plain Diff
fix: rename the app name in the test script for the name consistency
parent
d2edcd37
No related branches found
No related tags found
1 merge request
!62
fix: udp broadcast timer was not started
Pipeline
#77384
failed
3 months ago
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
tests/scripts/run_test.sh
+6
-6
6 additions, 6 deletions
tests/scripts/run_test.sh
with
6 additions
and
6 deletions
tests/scripts/run_test.sh
+
6
−
6
View file @
0eee9c50
...
...
@@ -2,11 +2,11 @@
# This script is used to run the test on the device and collect the logs and the test results.
# Precondition: The device/emulator is connected/running and the test application is installed on it.
adb shell
"run-as io.qt.qt
ui
viewer.test rm -rf /data/data/io.qt.qt
ui
viewer.test/files/output.junitxml"
adb shell am start
-e
applicationArguments
"'-o output.junitxml,junitxml -v2'"
-n
io.qt.qt
ui
viewer.test/org.qtproject.qt.android.bindings.QtActivity
adb shell
"run-as io.qt.qt
design
viewer.test rm -rf /data/data/io.qt.qt
design
viewer.test/files/output.junitxml"
adb shell am start
-e
applicationArguments
"'-o output.junitxml,junitxml -v2'"
-n
io.qt.qt
design
viewer.test/org.qtproject.qt.android.bindings.QtActivity
counter
=
0
while
[
-z
"
$(
adb shell pidof
-s
io.qt.qt
ui
viewer.test
)
"
]
;
do
while
[
-z
"
$(
adb shell pidof
-s
io.qt.qt
design
viewer.test
)
"
]
;
do
echo
"Waiting for test to start"
sleep
0.1
counter
=
$((
counter
+
1
))
...
...
@@ -16,11 +16,11 @@ while [ -z "$(adb shell pidof -s io.qt.qtuiviewer.test)" ]; do
fi
done
PID_OF_TEST
=
$(
adb shell pidof
-s
io.qt.qt
ui
viewer.test
)
PID_OF_TEST
=
$(
adb shell pidof
-s
io.qt.qt
design
viewer.test
)
echo
"PID of test:
${
PID_OF_TEST
}
"
counter
=
0
while
[
-n
"
$(
adb shell pidof
-s
io.qt.qt
ui
viewer.test
)
"
]
;
do
while
[
-n
"
$(
adb shell pidof
-s
io.qt.qt
design
viewer.test
)
"
]
;
do
echo
"Waiting for test to finish. Elapsed time:
$counter
seconds"
sleep
1
counter
=
$((
counter
+
1
))
...
...
@@ -32,4 +32,4 @@ done
adb logcat
-d
--pid
=
${
PID_OF_TEST
}
adb logcat
-d
--pid
=
${
PID_OF_TEST
}
>
logcat.txt
adb shell
"run-as io.qt.qt
ui
viewer.test cat /data/data/io.qt.qt
ui
viewer.test/files/output.junitxml"
>
output.junit.xml
adb shell
"run-as io.qt.qt
design
viewer.test cat /data/data/io.qt.qt
design
viewer.test/files/output.junitxml"
>
output.junit.xml
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