-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add coin instructions to run Android test in emulator
Task-number: QTQAINFRA-3867 Pick-to: 6.0 Change-Id: Ie6dd9c2dfeeccd526c2133d7ac03efce5b7ed091 Reviewed-by: Assam Boudjelthia <[email protected]>
- Loading branch information
Showing
7 changed files
with
93 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
24 changes: 24 additions & 0 deletions
24
coin/instructions/coin_module_test_android_start_emulator.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
type: Group | ||
instructions: | ||
- type: Group | ||
instructions: | ||
- type: ExecuteCommand | ||
command: ["{{.Env.ANDROID_SDK_HOME}}/tools/emulator", "@x86emulator","-no-audio","-no-window","-gpu","swiftshader_indirect","-partition-size","4000"] | ||
maxTimeInSeconds: 1800 | ||
maxTimeBetweenOutput: 600 | ||
userMessageOnFailure: "Failed to run emulator, check logs." | ||
startInBackground: True | ||
- type: ExecuteCommand | ||
command: ["{{.Env.ANDROID_SDK_HOME}}/platform-tools/adb","devices"] | ||
maxTimeInSeconds: 1800 | ||
maxTimeBetweenOutput: 600 | ||
userMessageOnFailure: "Failed to run adb, check logs." | ||
- type: ExecuteCommand | ||
command: ["{{.Env.ANDROID_SDK_HOME}}/platform-tools/adb","wait-for-device"] | ||
maxTimeInSeconds: 1800 | ||
maxTimeBetweenOutput: 1800 | ||
userMessageOnFailure: "Failed to run adb, check logs." | ||
enable_if: | ||
condition: property | ||
property: features | ||
contains_value: AndroidTestRun |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
#!/bin/sh | ||
############################################################################# | ||
## | ||
## Copyright (C) 2020 The Qt Company Ltd. | ||
## Contact: https://www.qt.io/licensing/ | ||
## | ||
## This file is part of the plugins of the Qt Toolkit. | ||
## | ||
## $QT_BEGIN_LICENSE:GPL-EXCEPT$ | ||
## Commercial License Usage | ||
## Licensees holding valid commercial Qt licenses may use this file in | ||
## accordance with the commercial license agreement provided with the | ||
## Software or, alternatively, in accordance with the terms contained in | ||
## a written agreement between you and The Qt Company. For licensing terms | ||
## and conditions see https://www.qt.io/terms-conditions. For further | ||
## information use the contact form at https://www.qt.io/contact-us. | ||
## | ||
## GNU General Public License Usage | ||
## Alternatively, this file may be used under the terms of the GNU | ||
## General Public License version 3 as published by the Free Software | ||
## Foundation with exceptions as appearing in the file LICENSE.GPL3-EXCEPT | ||
## included in the packaging of this file. Please review the following | ||
## information to ensure the GNU General Public License requirements will | ||
## be met: https://www.gnu.org/licenses/gpl-3.0.html. | ||
## | ||
## $QT_END_LICENSE$ | ||
## | ||
############################################################################# | ||
# This util patches CMakeLists.txt files to enable running | ||
# autotest in Android emulator in Qt CI. | ||
|
||
tests_dir="$PWD/tests/auto" | ||
find ${tests_dir} -iname "CMakeLists.txt" -print0 | | ||
while IFS= read -r -d '' file; do | ||
sed -i '/qt_internal_add_test/a\ PUBLIC_LIBRARIES\n Qt::Gui' $file | ||
done |