Add files using upload-large-folder tool
Browse filesThis view is limited to 50 files because it contains too many changes. See raw diff
- qt/6.8.1/msvc2022_64/bin/Qt6Concurrent.dll +0 -0
- qt/6.8.1/msvc2022_64/bin/Qt6Concurrentd.dll +0 -0
- qt/6.8.1/msvc2022_64/bin/Qt6LabsAnimation.dll +0 -0
- qt/6.8.1/msvc2022_64/bin/Qt6LabsSettings.dll +0 -0
- qt/6.8.1/msvc2022_64/bin/Qt6LabsSharedImage.dll +0 -0
- qt/6.8.1/msvc2022_64/bin/Qt6LabsWavefrontMesh.dll +0 -0
- qt/6.8.1/msvc2022_64/bin/Qt6OpenGLWidgets.dll +0 -0
- qt/6.8.1/msvc2022_64/bin/Qt6QmlLocalStorage.dll +0 -0
- qt/6.8.1/msvc2022_64/bin/Qt6QmlWorkerScript.dll +0 -0
- qt/6.8.1/msvc2022_64/bin/Qt6QuickControls2.dll +0 -0
- qt/6.8.1/msvc2022_64/bin/Qt6QuickControls2BasicStyleImpl.dll +0 -0
- qt/6.8.1/msvc2022_64/bin/Qt6QuickControls2ImagineStyleImpl.dll +0 -0
- qt/6.8.1/msvc2022_64/bin/Qt6QuickControls2WindowsStyleImpl.dll +0 -0
- qt/6.8.1/msvc2022_64/bin/Qt6QuickDialogs2Utils.dll +0 -0
- qt/6.8.1/msvc2022_64/bin/Qt6QuickVectorImage.dll +0 -0
- qt/6.8.1/msvc2022_64/bin/Qt6SvgWidgets.dll +0 -0
- qt/6.8.1/msvc2022_64/bin/androidtestrunner.exe +0 -0
- qt/6.8.1/msvc2022_64/bin/ensure_pro_file.cmake +19 -0
- qt/6.8.1/msvc2022_64/bin/lrelease-pro.exe +0 -0
- qt/6.8.1/msvc2022_64/bin/lupdate-pro.exe +0 -0
- qt/6.8.1/msvc2022_64/bin/pixeltool.exe +0 -0
- qt/6.8.1/msvc2022_64/bin/qdbus.exe +0 -0
- qt/6.8.1/msvc2022_64/bin/qdbusxml2cpp.exe +0 -0
- qt/6.8.1/msvc2022_64/bin/qmlaotstats.exe +0 -0
- qt/6.8.1/msvc2022_64/bin/qmlcachegen.exe +0 -0
- qt/6.8.1/msvc2022_64/bin/qmljsrootgen.exe +0 -0
- qt/6.8.1/msvc2022_64/bin/qmllint.exe +0 -0
- qt/6.8.1/msvc2022_64/bin/qmlscene.exe +0 -0
- qt/6.8.1/msvc2022_64/bin/qmltestrunner.exe +0 -0
- qt/6.8.1/msvc2022_64/bin/qmltime.exe +0 -0
- qt/6.8.1/msvc2022_64/bin/qt-android-runner.py +205 -0
- qt/6.8.1/msvc2022_64/bin/qt-cmake-create.bat +19 -0
- qt/6.8.1/msvc2022_64/bin/qt-cmake-private-install.cmake +29 -0
- qt/6.8.1/msvc2022_64/bin/qt-cmake-private.bat +11 -0
- qt/6.8.1/msvc2022_64/bin/qt-cmake-standalone-test.bat +4 -0
- qt/6.8.1/msvc2022_64/bin/qt-cmake.bat +11 -0
- qt/6.8.1/msvc2022_64/bin/qt-configure-module.bat +34 -0
- qt/6.8.1/msvc2022_64/bin/qt-internal-configure-examples.bat +34 -0
- qt/6.8.1/msvc2022_64/bin/qt-internal-configure-tests.bat +34 -0
- qt/6.8.1/msvc2022_64/bin/qt-testrunner.py +395 -0
- qt/6.8.1/msvc2022_64/bin/qt.conf +2 -0
- qt/6.8.1/msvc2022_64/bin/qtdiag.exe +0 -0
- qt/6.8.1/msvc2022_64/bin/qtdiag6.exe +0 -0
- qt/6.8.1/msvc2022_64/bin/qtenv2.bat +5 -0
- qt/6.8.1/msvc2022_64/bin/qtpaths.exe +0 -0
- qt/6.8.1/msvc2022_64/bin/qtpaths6.exe +0 -0
- qt/6.8.1/msvc2022_64/bin/qtplugininfo.exe +0 -0
- qt/6.8.1/msvc2022_64/bin/qvkgen.exe +0 -0
- qt/6.8.1/msvc2022_64/bin/sanitizer-testrunner.py +51 -0
- qt/6.8.1/msvc2022_64/bin/svgtoqml.exe +0 -0
qt/6.8.1/msvc2022_64/bin/Qt6Concurrent.dll
ADDED
|
Binary file (35.5 kB). View file
|
|
|
qt/6.8.1/msvc2022_64/bin/Qt6Concurrentd.dll
ADDED
|
Binary file (100 kB). View file
|
|
|
qt/6.8.1/msvc2022_64/bin/Qt6LabsAnimation.dll
ADDED
|
Binary file (54.9 kB). View file
|
|
|
qt/6.8.1/msvc2022_64/bin/Qt6LabsSettings.dll
ADDED
|
Binary file (62.6 kB). View file
|
|
|
qt/6.8.1/msvc2022_64/bin/Qt6LabsSharedImage.dll
ADDED
|
Binary file (56.5 kB). View file
|
|
|
qt/6.8.1/msvc2022_64/bin/Qt6LabsWavefrontMesh.dll
ADDED
|
Binary file (60.1 kB). View file
|
|
|
qt/6.8.1/msvc2022_64/bin/Qt6OpenGLWidgets.dll
ADDED
|
Binary file (64.2 kB). View file
|
|
|
qt/6.8.1/msvc2022_64/bin/Qt6QmlLocalStorage.dll
ADDED
|
Binary file (62.6 kB). View file
|
|
|
qt/6.8.1/msvc2022_64/bin/Qt6QmlWorkerScript.dll
ADDED
|
Binary file (75.4 kB). View file
|
|
|
qt/6.8.1/msvc2022_64/bin/Qt6QuickControls2.dll
ADDED
|
Binary file (97.9 kB). View file
|
|
|
qt/6.8.1/msvc2022_64/bin/Qt6QuickControls2BasicStyleImpl.dll
ADDED
|
Binary file (62.6 kB). View file
|
|
|
qt/6.8.1/msvc2022_64/bin/Qt6QuickControls2ImagineStyleImpl.dll
ADDED
|
Binary file (48.3 kB). View file
|
|
|
qt/6.8.1/msvc2022_64/bin/Qt6QuickControls2WindowsStyleImpl.dll
ADDED
|
Binary file (71.3 kB). View file
|
|
|
qt/6.8.1/msvc2022_64/bin/Qt6QuickDialogs2Utils.dll
ADDED
|
Binary file (47.8 kB). View file
|
|
|
qt/6.8.1/msvc2022_64/bin/Qt6QuickVectorImage.dll
ADDED
|
Binary file (56 kB). View file
|
|
|
qt/6.8.1/msvc2022_64/bin/Qt6SvgWidgets.dll
ADDED
|
Binary file (58.5 kB). View file
|
|
|
qt/6.8.1/msvc2022_64/bin/androidtestrunner.exe
ADDED
|
Binary file (90.3 kB). View file
|
|
|
qt/6.8.1/msvc2022_64/bin/ensure_pro_file.cmake
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Copyright (C) 2022 The Qt Company Ltd.
|
| 2 |
+
# SPDX-License-Identifier: BSD-3-Clause
|
| 3 |
+
|
| 4 |
+
# CMake script to ensure that a qmake project file exists.
|
| 5 |
+
#
|
| 6 |
+
# Usage: cmake -DPRO_FILE=.../project.pro -P .../ensure_pro_file.cmake
|
| 7 |
+
#
|
| 8 |
+
# This script checks for existence of ${PRO_FILE} and creates a fake one, if needed.
|
| 9 |
+
#
|
| 10 |
+
|
| 11 |
+
if(NOT EXISTS "${PRO_FILE}")
|
| 12 |
+
get_filename_component(dir "${PRO_FILE}" DIRECTORY)
|
| 13 |
+
if(NOT IS_DIRECTORY "${dir}")
|
| 14 |
+
file(MAKE_DIRECTORY "${dir}")
|
| 15 |
+
endif()
|
| 16 |
+
|
| 17 |
+
file(WRITE "${PRO_FILE}" "TEMPLATE = aux
|
| 18 |
+
")
|
| 19 |
+
endif()
|
qt/6.8.1/msvc2022_64/bin/lrelease-pro.exe
ADDED
|
Binary file (48.8 kB). View file
|
|
|
qt/6.8.1/msvc2022_64/bin/lupdate-pro.exe
ADDED
|
Binary file (48.8 kB). View file
|
|
|
qt/6.8.1/msvc2022_64/bin/pixeltool.exe
ADDED
|
Binary file (74.4 kB). View file
|
|
|
qt/6.8.1/msvc2022_64/bin/qdbus.exe
ADDED
|
Binary file (90.3 kB). View file
|
|
|
qt/6.8.1/msvc2022_64/bin/qdbusxml2cpp.exe
ADDED
|
Binary file (98.5 kB). View file
|
|
|
qt/6.8.1/msvc2022_64/bin/qmlaotstats.exe
ADDED
|
Binary file (33.9 kB). View file
|
|
|
qt/6.8.1/msvc2022_64/bin/qmlcachegen.exe
ADDED
|
Binary file (62.6 kB). View file
|
|
|
qt/6.8.1/msvc2022_64/bin/qmljsrootgen.exe
ADDED
|
Binary file (69.8 kB). View file
|
|
|
qt/6.8.1/msvc2022_64/bin/qmllint.exe
ADDED
|
Binary file (99 kB). View file
|
|
|
qt/6.8.1/msvc2022_64/bin/qmlscene.exe
ADDED
|
Binary file (71.8 kB). View file
|
|
|
qt/6.8.1/msvc2022_64/bin/qmltestrunner.exe
ADDED
|
Binary file (24.7 kB). View file
|
|
|
qt/6.8.1/msvc2022_64/bin/qmltime.exe
ADDED
|
Binary file (43.7 kB). View file
|
|
|
qt/6.8.1/msvc2022_64/bin/qt-android-runner.py
ADDED
|
@@ -0,0 +1,205 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/usr/bin/env python3
|
| 2 |
+
# Copyright (C) 2024 The Qt Company Ltd.
|
| 3 |
+
# SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0
|
| 4 |
+
|
| 5 |
+
import os
|
| 6 |
+
import subprocess
|
| 7 |
+
import sys
|
| 8 |
+
import base64
|
| 9 |
+
import time
|
| 10 |
+
import signal
|
| 11 |
+
import argparse
|
| 12 |
+
|
| 13 |
+
from datetime import datetime
|
| 14 |
+
|
| 15 |
+
def status(msg):
|
| 16 |
+
print(f"\n-- {msg}")
|
| 17 |
+
|
| 18 |
+
def error(msg):
|
| 19 |
+
print(f"Error: {msg}", file=sys.stderr)
|
| 20 |
+
|
| 21 |
+
def die(msg):
|
| 22 |
+
error(msg)
|
| 23 |
+
sys.exit(1)
|
| 24 |
+
|
| 25 |
+
# Define and parse arguments
|
| 26 |
+
parser = argparse.ArgumentParser(description="Qt for Android app runner.",
|
| 27 |
+
epilog=f'''
|
| 28 |
+
This is a helper script to run Qt for Android apps directly from the terminal.
|
| 29 |
+
It supports starting apps with parameters and forwards environment variables to
|
| 30 |
+
the device. It prints live logcat messages as the app is running. The script exits
|
| 31 |
+
once the app has exited on the device and terminates the app on the device if the
|
| 32 |
+
script is terminated.
|
| 33 |
+
|
| 34 |
+
If an APK path is provided, it will first be installed to the device only if the
|
| 35 |
+
--install parameter is passed.
|
| 36 |
+
|
| 37 |
+
Use --serial parameter or adb's ANDROID_SERIAL environment variable to specify an
|
| 38 |
+
Android target serial number (obtained from "adb devices" command) on which to run
|
| 39 |
+
the app or test.
|
| 40 |
+
''', formatter_class=argparse.RawTextHelpFormatter)
|
| 41 |
+
|
| 42 |
+
parser.add_argument('-a', '--adb', metavar='path', type=str, help='Path to adb executable.')
|
| 43 |
+
parser.add_argument('-b', '--build-path', metavar='path', type=str,
|
| 44 |
+
help='Path to the Android build directory.')
|
| 45 |
+
parser.add_argument('-i', '--install', action='store_true', help='Install the APK.')
|
| 46 |
+
parser.add_argument('-s', '--serial', type=str, metavar='serial',
|
| 47 |
+
help='Android device serial (override $ANDROID_SERIAL).')
|
| 48 |
+
parser.add_argument('-p', '--apk', type=str, metavar='path', help='Path to the APK file.')
|
| 49 |
+
|
| 50 |
+
|
| 51 |
+
args, remaining_args = parser.parse_known_args()
|
| 52 |
+
|
| 53 |
+
# Validate required arguments
|
| 54 |
+
if not args.build_path:
|
| 55 |
+
die("App build path is not provided")
|
| 56 |
+
|
| 57 |
+
adb = args.adb
|
| 58 |
+
if not adb:
|
| 59 |
+
adb = 'adb'
|
| 60 |
+
null_dev = subprocess.DEVNULL
|
| 61 |
+
if subprocess.call(['command', '-v', adb], stdout=null_dev, stderr=null_dev) != 0:
|
| 62 |
+
die("adb tool path is not provided and is not found in PATH")
|
| 63 |
+
|
| 64 |
+
try:
|
| 65 |
+
devices = []
|
| 66 |
+
output = subprocess.check_output(f"{adb} devices", shell=True).decode().strip()
|
| 67 |
+
for line in output.splitlines():
|
| 68 |
+
if '\tdevice' in line:
|
| 69 |
+
serial = line.split('\t')[0]
|
| 70 |
+
devices.append(serial)
|
| 71 |
+
if not devices:
|
| 72 |
+
die(f"No devices are connected.")
|
| 73 |
+
|
| 74 |
+
if args.serial and not args.serial in devices:
|
| 75 |
+
die(f"No connected devices with the specified serial number.")
|
| 76 |
+
except Exception as e:
|
| 77 |
+
die(f"Failed to check for running devices, received error: {e}")
|
| 78 |
+
|
| 79 |
+
if args.serial:
|
| 80 |
+
adb = f"{adb} -s {args.serial}"
|
| 81 |
+
|
| 82 |
+
if args.build_path is None:
|
| 83 |
+
die("App build path is not provided")
|
| 84 |
+
|
| 85 |
+
if args.apk and args.install:
|
| 86 |
+
status(f"Installing the app APK {args.apk}")
|
| 87 |
+
try:
|
| 88 |
+
subprocess.run(f"{adb} install \"{args.apk}\"", check=True, shell=True)
|
| 89 |
+
except Exception as e:
|
| 90 |
+
error(f"Failed to install the APK, received error: {e}")
|
| 91 |
+
|
| 92 |
+
|
| 93 |
+
def get_package_name(build_path):
|
| 94 |
+
try:
|
| 95 |
+
manifest_file = os.path.join(args.build_path, "AndroidManifest.xml")
|
| 96 |
+
if os.path.isfile(manifest_file):
|
| 97 |
+
with open(manifest_file) as f:
|
| 98 |
+
for line in f:
|
| 99 |
+
if 'package="' in line:
|
| 100 |
+
return line.split('package="')[1].split('"')[0]
|
| 101 |
+
|
| 102 |
+
gradle_file = os.path.join(args.build_path, "build.gradle")
|
| 103 |
+
if os.path.isfile(gradle_file):
|
| 104 |
+
with open(gradle_file) as f:
|
| 105 |
+
for line in f:
|
| 106 |
+
if line.strip().startswith("namespace"):
|
| 107 |
+
return line.split('=')[1].strip().strip('"')
|
| 108 |
+
|
| 109 |
+
properties_file = os.path.join(args.build_path, "gradle.properties")
|
| 110 |
+
if os.path.isfile(properties_file):
|
| 111 |
+
with open(properties_file) as f:
|
| 112 |
+
for line in f:
|
| 113 |
+
if line.startswith("androidPackageName="):
|
| 114 |
+
return line.split('=')[1].strip()
|
| 115 |
+
except Exception as e:
|
| 116 |
+
error(f"Failed to retrieve the app's package name, received error: {e}")
|
| 117 |
+
|
| 118 |
+
return None
|
| 119 |
+
|
| 120 |
+
# Get app details
|
| 121 |
+
package_name = get_package_name(args.build_path)
|
| 122 |
+
if not package_name:
|
| 123 |
+
die("Failed to retrieve the package name of the app")
|
| 124 |
+
|
| 125 |
+
activity_name = "org.qtproject.qt.android.bindings.QtActivity"
|
| 126 |
+
start_cmd = f"{adb} shell am start -n {package_name}/{activity_name}"
|
| 127 |
+
|
| 128 |
+
# Get environment variables
|
| 129 |
+
env_vars = " ".join(f"{key}={value}" for key, value in os.environ.items())
|
| 130 |
+
encoded_env_vars = base64.b64encode(env_vars.encode()).decode()
|
| 131 |
+
start_cmd += f" -e extraenvvars \"{encoded_env_vars}\""
|
| 132 |
+
|
| 133 |
+
# Get app arguments
|
| 134 |
+
if remaining_args:
|
| 135 |
+
start_cmd += f" -e applicationArguments \"{' '.join(remaining_args)}\""
|
| 136 |
+
|
| 137 |
+
# Get formatted time from device
|
| 138 |
+
start_timestamp = ""
|
| 139 |
+
try:
|
| 140 |
+
start_timestamp = subprocess.check_output(f"{adb} shell \"date +'%Y-%m-%d %H:%M:%S.%3N'\"",
|
| 141 |
+
shell=True).decode().strip()
|
| 142 |
+
except Exception as e:
|
| 143 |
+
die(f"Failed to get formatted time from the device, received error: {e}")
|
| 144 |
+
|
| 145 |
+
try:
|
| 146 |
+
subprocess.run(start_cmd, check=True, shell=True)
|
| 147 |
+
except Exception as e:
|
| 148 |
+
die(f"Failed to start the app {package_name}, received error: {e}")
|
| 149 |
+
|
| 150 |
+
# Wait for the app to start and retrieve its pid
|
| 151 |
+
start_timeout = 5
|
| 152 |
+
time_limit = time.time() + start_timeout
|
| 153 |
+
pid = None
|
| 154 |
+
while pid is None:
|
| 155 |
+
if time.time() > time_limit:
|
| 156 |
+
die(f"Couldn't retrieve the app's PID within {start_timeout} seconds")
|
| 157 |
+
time.sleep(0.5)
|
| 158 |
+
try:
|
| 159 |
+
pidof_output = subprocess.check_output(f"{adb} shell pidof {package_name}", shell=True)
|
| 160 |
+
pid = pidof_output.decode().strip().split()[0]
|
| 161 |
+
except subprocess.CalledProcessError:
|
| 162 |
+
continue
|
| 163 |
+
|
| 164 |
+
# Add a signal handler to stop the app if the script is terminated
|
| 165 |
+
interrupted = False
|
| 166 |
+
def terminate_app(signum, frame):
|
| 167 |
+
global interrupted
|
| 168 |
+
interrupted = True
|
| 169 |
+
|
| 170 |
+
signal.signal(signal.SIGINT, terminate_app)
|
| 171 |
+
|
| 172 |
+
# Show app's logs
|
| 173 |
+
try:
|
| 174 |
+
format_arg = "-v brief -v color"
|
| 175 |
+
time_arg = f"-T '{start_timestamp}'"
|
| 176 |
+
# escape char and color followed with fatal tag
|
| 177 |
+
fatal_regex = f"-e $'^\x1b\\[[0-9]*mF/'"
|
| 178 |
+
pid_regex = f"-e '([ ]*{pid}):'"
|
| 179 |
+
logcat_cmd = f"{adb} shell \"logcat {time_arg} {format_arg} | grep {pid_regex} {fatal_regex}\""
|
| 180 |
+
logcat_process = subprocess.Popen(logcat_cmd, shell=True)
|
| 181 |
+
except Exception as e:
|
| 182 |
+
die(f"Failed to get logcat for the app {package_name}, received error: {e}")
|
| 183 |
+
|
| 184 |
+
# Monitor the app's pid
|
| 185 |
+
try:
|
| 186 |
+
while not interrupted:
|
| 187 |
+
time.sleep(1)
|
| 188 |
+
try:
|
| 189 |
+
pidof_output = subprocess.check_output(f"{adb} shell pidof {package_name}", shell=True)
|
| 190 |
+
pid = pidof_output.decode().strip()
|
| 191 |
+
if not pid:
|
| 192 |
+
status(f"The app \"{package_name}\" has exited")
|
| 193 |
+
break
|
| 194 |
+
except subprocess.CalledProcessError:
|
| 195 |
+
status(f"The app \"{package_name}\" has exited")
|
| 196 |
+
break
|
| 197 |
+
finally:
|
| 198 |
+
logcat_process.terminate()
|
| 199 |
+
|
| 200 |
+
if interrupted:
|
| 201 |
+
try:
|
| 202 |
+
subprocess.Popen(f"{adb} shell am force-stop {package_name}", shell=True)
|
| 203 |
+
status(f"The app \"{package_name}\" with {pid} has been terminated")
|
| 204 |
+
except Exception as e:
|
| 205 |
+
error(f"Failed to terminate the app {package_name}, received error: {e}")
|
qt/6.8.1/msvc2022_64/bin/qt-cmake-create.bat
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
@echo off
|
| 2 |
+
setlocal
|
| 3 |
+
:: The directory of this script is the expanded absolute path of the "$qt_prefix/bin" directory.
|
| 4 |
+
set script_dir_path=%~dp0
|
| 5 |
+
|
| 6 |
+
:: Try to use original cmake, otherwise to make it relocatable, use any cmake found in PATH.
|
| 7 |
+
set cmake_path=C:/CMake/bin/cmake.exe
|
| 8 |
+
if not exist "%cmake_path%" set cmake_path=cmake
|
| 9 |
+
|
| 10 |
+
if NOT "%~2" == "" goto :showhelp
|
| 11 |
+
if NOT "%~1" == "" (set PROJECT_DIR=%~1) else (set PROJECT_DIR=%cd%)
|
| 12 |
+
|
| 13 |
+
"%cmake_path%" -DPROJECT_DIR="%PROJECT_DIR%" -P "%script_dir_path%\../lib/cmake/Qt6\QtInitProject.cmake"
|
| 14 |
+
exit /b %errorlevel%
|
| 15 |
+
|
| 16 |
+
:showhelp
|
| 17 |
+
echo Usage
|
| 18 |
+
echo. qt-cmake-create <path/to/project>
|
| 19 |
+
exit /b 1
|
qt/6.8.1/msvc2022_64/bin/qt-cmake-private-install.cmake
ADDED
|
@@ -0,0 +1,29 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Calls cmake --install ${QT_BUILD_DIR} --config <config> for each config
|
| 2 |
+
# with which Qt was built with.
|
| 3 |
+
# This is required to enable installation of all configurations of
|
| 4 |
+
# a Qt built with Ninja Multi-Config until the following issues are fixed:
|
| 5 |
+
# https://gitlab.kitware.com/cmake/cmake/-/issues/20713
|
| 6 |
+
# https://gitlab.kitware.com/cmake/cmake/-/issues/21475
|
| 7 |
+
set(configs "RelWithDebInfo;Debug")
|
| 8 |
+
set(should_skip_strip "TRUE")
|
| 9 |
+
|
| 10 |
+
if(NOT QT_BUILD_DIR)
|
| 11 |
+
message(FATAL_ERROR "No QT_BUILD_DIR value provided to qt-cmake-private-install.")
|
| 12 |
+
endif()
|
| 13 |
+
|
| 14 |
+
if(should_skip_strip)
|
| 15 |
+
unset(strip_arg)
|
| 16 |
+
else()
|
| 17 |
+
set(strip_arg --strip)
|
| 18 |
+
endif()
|
| 19 |
+
|
| 20 |
+
foreach(config ${configs})
|
| 21 |
+
message(STATUS "Installing configuration: '${config}'")
|
| 22 |
+
set(args "${CMAKE_COMMAND}" --install ${QT_BUILD_DIR} --config "${config}" ${strip_arg})
|
| 23 |
+
execute_process(COMMAND ${args}
|
| 24 |
+
COMMAND_ECHO STDOUT
|
| 25 |
+
RESULT_VARIABLE result)
|
| 26 |
+
if(NOT "${result}" STREQUAL "0")
|
| 27 |
+
message(FATAL_ERROR "Installing configuration '${config}' failed with exit code: ${result}.")
|
| 28 |
+
endif()
|
| 29 |
+
endforeach()
|
qt/6.8.1/msvc2022_64/bin/qt-cmake-private.bat
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
@echo off
|
| 2 |
+
setlocal
|
| 3 |
+
:: The directory of this script is the expanded absolute path of the "$qt_prefix/bin" directory.
|
| 4 |
+
set script_dir_path=%~dp0
|
| 5 |
+
|
| 6 |
+
:: Try to use original cmake, otherwise to make it relocatable, use any cmake found in PATH.
|
| 7 |
+
set cmake_path=C:/CMake/bin/cmake.exe
|
| 8 |
+
if not exist "%cmake_path%" set cmake_path=cmake
|
| 9 |
+
|
| 10 |
+
set toolchain_path=%script_dir_path%\../lib/cmake/Qt6\qt.toolchain.cmake
|
| 11 |
+
"%cmake_path%" -DCMAKE_TOOLCHAIN_FILE="%toolchain_path%" -G"Ninja Multi-Config" -DQT_USE_ORIGINAL_COMPILER=ON %*
|
qt/6.8.1/msvc2022_64/bin/qt-cmake-standalone-test.bat
ADDED
|
@@ -0,0 +1,4 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
@echo off
|
| 2 |
+
|
| 3 |
+
set SCRIPT_DIR=%~dp0
|
| 4 |
+
%SCRIPT_DIR%qt-cmake-private.bat %SCRIPT_DIR%../lib/cmake/Qt6BuildInternals/QtStandaloneTestTemplateProject -DQT_BUILD_STANDALONE_TESTS=ON -DQT_STANDALONE_TEST_PATH=%* -DPWD="%CD%"
|
qt/6.8.1/msvc2022_64/bin/qt-cmake.bat
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
@echo off
|
| 2 |
+
setlocal
|
| 3 |
+
:: The directory of this script is the expanded absolute path of the "$qt_prefix/bin" directory.
|
| 4 |
+
set script_dir_path=%~dp0
|
| 5 |
+
|
| 6 |
+
:: Try to use original cmake, otherwise to make it relocatable, use any cmake found in PATH.
|
| 7 |
+
set cmake_path=C:/CMake/bin/cmake.exe
|
| 8 |
+
if not exist "%cmake_path%" set cmake_path=cmake
|
| 9 |
+
|
| 10 |
+
set toolchain_path=%script_dir_path%\../lib/cmake/Qt6\qt.toolchain.cmake
|
| 11 |
+
"%cmake_path%" -DCMAKE_TOOLCHAIN_FILE="%toolchain_path%" %*
|
qt/6.8.1/msvc2022_64/bin/qt-configure-module.bat
ADDED
|
@@ -0,0 +1,34 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
@echo off
|
| 2 |
+
setlocal ENABLEDELAYEDEXPANSION ENABLEEXTENSIONS
|
| 3 |
+
set script_dir_path=%~dp0
|
| 4 |
+
set script_dir_path=%script_dir_path:~0,-1%
|
| 5 |
+
|
| 6 |
+
if "%1" == "" (
|
| 7 |
+
call :print_usage
|
| 8 |
+
exit /b 1
|
| 9 |
+
)
|
| 10 |
+
|
| 11 |
+
set module_root=%1
|
| 12 |
+
set module_root=%module_root:\=/%
|
| 13 |
+
shift
|
| 14 |
+
if not exist "%module_root%\CMakeLists.txt" (
|
| 15 |
+
echo Error: %module_root% is not a valid Qt module source directory. >&2
|
| 16 |
+
call :print_usage
|
| 17 |
+
exit /b 1
|
| 18 |
+
)
|
| 19 |
+
|
| 20 |
+
set cmake_scripts_dir=%script_dir_path%\..\lib\cmake\Qt6
|
| 21 |
+
echo %*>config.opt.in
|
| 22 |
+
call "%script_dir_path%\qt-cmake.bat" -DSKIP_ARGS=1 -DIN_FILE=config.opt.in -DOUT_FILE=config.opt ^
|
| 23 |
+
-P "%cmake_scripts_dir%\QtWriteArgsFile.cmake"
|
| 24 |
+
call "%script_dir_path%\qt-cmake-private.bat" -DOPTFILE=config.opt -DMODULE_ROOT="%module_root%" ^
|
| 25 |
+
-DCMAKE_COMMAND="%script_dir_path%\qt-cmake-private.bat" ^
|
| 26 |
+
-P "%cmake_scripts_dir%\QtProcessConfigureArgs.cmake"
|
| 27 |
+
goto :eof
|
| 28 |
+
|
| 29 |
+
:print_usage
|
| 30 |
+
echo Usage: qt-configure-module ^<module-source-dir^> [options]
|
| 31 |
+
echo.
|
| 32 |
+
echo To display the available options for a Qt module, run
|
| 33 |
+
echo qt-configure-module ^<module-source-dir^> -help
|
| 34 |
+
goto :eof
|
qt/6.8.1/msvc2022_64/bin/qt-internal-configure-examples.bat
ADDED
|
@@ -0,0 +1,34 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
@echo off
|
| 2 |
+
setlocal ENABLEDELAYEDEXPANSION ENABLEEXTENSIONS
|
| 3 |
+
set script_dir_path=%~dp0
|
| 4 |
+
set script_dir_path=%script_dir_path:~0,-1%
|
| 5 |
+
|
| 6 |
+
rem Extracts the source path, make it native, and put it
|
| 7 |
+
rem back again. This is a workaround on Windows LLVM/MINGW
|
| 8 |
+
rem to help CMake find source files when doing Unity Build.
|
| 9 |
+
set args=%*
|
| 10 |
+
set source_dir_path=
|
| 11 |
+
set native_source_dir_path=
|
| 12 |
+
for %%i in (%args%) do (
|
| 13 |
+
if "%%i"=="-S" (
|
| 14 |
+
set found=true
|
| 15 |
+
) else if defined found (
|
| 16 |
+
set source_dir_path=%%i
|
| 17 |
+
set native_source_dir_path=%%~dpnxi
|
| 18 |
+
set found=
|
| 19 |
+
)
|
| 20 |
+
)
|
| 21 |
+
|
| 22 |
+
if NOT "%native_source_dir_path%" == "" (
|
| 23 |
+
set args=!args:%source_dir_path%=%native_source_dir_path%!
|
| 24 |
+
)
|
| 25 |
+
|
| 26 |
+
set cmake_scripts_dir=%script_dir_path%
|
| 27 |
+
|
| 28 |
+
set relative_bin_dir=
|
| 29 |
+
if NOT "%relative_bin_dir%" == "" (
|
| 30 |
+
set relative_bin_dir="%relative_bin_dir%"\
|
| 31 |
+
)
|
| 32 |
+
|
| 33 |
+
call "%script_dir_path%"\%relative_bin_dir%"qt-cmake.bat" ^
|
| 34 |
+
-DQT_BUILD_STANDALONE_EXAMPLES=ON -DQT_BUILD_TESTS=OFF -DQT_USE_ORIGINAL_COMPILER=ON %args%
|
qt/6.8.1/msvc2022_64/bin/qt-internal-configure-tests.bat
ADDED
|
@@ -0,0 +1,34 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
@echo off
|
| 2 |
+
setlocal ENABLEDELAYEDEXPANSION ENABLEEXTENSIONS
|
| 3 |
+
set script_dir_path=%~dp0
|
| 4 |
+
set script_dir_path=%script_dir_path:~0,-1%
|
| 5 |
+
|
| 6 |
+
rem Extracts the source path, make it native, and put it
|
| 7 |
+
rem back again. This is a workaround on Windows LLVM/MINGW
|
| 8 |
+
rem to help CMake find source files when doing Unity Build.
|
| 9 |
+
set args=%*
|
| 10 |
+
set source_dir_path=
|
| 11 |
+
set native_source_dir_path=
|
| 12 |
+
for %%i in (%args%) do (
|
| 13 |
+
if "%%i"=="-S" (
|
| 14 |
+
set found=true
|
| 15 |
+
) else if defined found (
|
| 16 |
+
set source_dir_path=%%i
|
| 17 |
+
set native_source_dir_path=%%~dpnxi
|
| 18 |
+
set found=
|
| 19 |
+
)
|
| 20 |
+
)
|
| 21 |
+
|
| 22 |
+
if NOT "%native_source_dir_path%" == "" (
|
| 23 |
+
set args=!args:%source_dir_path%=%native_source_dir_path%!
|
| 24 |
+
)
|
| 25 |
+
|
| 26 |
+
set cmake_scripts_dir=%script_dir_path%
|
| 27 |
+
|
| 28 |
+
set relative_bin_dir=
|
| 29 |
+
if NOT "%relative_bin_dir%" == "" (
|
| 30 |
+
set relative_bin_dir="%relative_bin_dir%"\
|
| 31 |
+
)
|
| 32 |
+
|
| 33 |
+
call "%script_dir_path%"\%relative_bin_dir%"qt-cmake.bat" ^
|
| 34 |
+
-DQT_BUILD_STANDALONE_TESTS=ON -DQT_BUILD_EXAMPLES=OFF -DQT_USE_ORIGINAL_COMPILER=ON %args%
|
qt/6.8.1/msvc2022_64/bin/qt-testrunner.py
ADDED
|
@@ -0,0 +1,395 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/usr/bin/env python3
|
| 2 |
+
# Copyright (C) 2021 The Qt Company Ltd.
|
| 3 |
+
# SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0
|
| 4 |
+
|
| 5 |
+
|
| 6 |
+
# !!!IMPORTANT!!! If you change anything to this script, run the testsuite
|
| 7 |
+
# manually and make sure it still passes, as it doesn't run automatically.
|
| 8 |
+
# Just execute the command line as such:
|
| 9 |
+
#
|
| 10 |
+
# ./util/testrunner/tests/tst_testrunner.py -v [--debug]
|
| 11 |
+
#
|
| 12 |
+
# ======== qt-testrunner ========
|
| 13 |
+
#
|
| 14 |
+
# This script wraps the execution of a Qt test executable, for example
|
| 15 |
+
# tst_whatever, and tries to iron out unpredictable test failures.
|
| 16 |
+
# In particular:
|
| 17 |
+
#
|
| 18 |
+
# + Appends output argument to it: "-o tst_whatever.xml,xml"
|
| 19 |
+
# + Checks the exit code. If it is zero, the script exits with zero,
|
| 20 |
+
# otherwise proceeds.
|
| 21 |
+
# + Reads the XML test log and Understands exactly which function
|
| 22 |
+
# of the test failed.
|
| 23 |
+
# + If no XML file is found or was invalid, the test executable
|
| 24 |
+
# probably CRASHed, so we *re-run the full test once again*.
|
| 25 |
+
# + If some testcases failed it executes only those individually
|
| 26 |
+
# until they pass, or until max-repeats times is reached.
|
| 27 |
+
#
|
| 28 |
+
# The regular way to use is to set the environment variable TESTRUNNER to
|
| 29 |
+
# point to this script before invoking ctest.
|
| 30 |
+
#
|
| 31 |
+
# NOTE: this script is crafted specifically for use with Qt tests and for
|
| 32 |
+
# using it in Qt's CI. For example it detects and acts specially if test
|
| 33 |
+
# executable is "tst_selftests" or "androidtestrunner". It also detects
|
| 34 |
+
# env var "COIN_CTEST_RESULTSDIR" and uses it as log-dir.
|
| 35 |
+
#
|
| 36 |
+
# TODO implement --dry-run.
|
| 37 |
+
|
| 38 |
+
# Exit codes of this script:
|
| 39 |
+
# 0: PASS. Either no test failed, or failed initially but passed
|
| 40 |
+
# in the re-runs (FLAKY PASS).
|
| 41 |
+
# 1: Some unexpected error of this script.
|
| 42 |
+
# 2: FAIL! for at least one test, even after the individual re-runs.
|
| 43 |
+
# 3: CRASH! for the test executable even after re-running it once.
|
| 44 |
+
# Or when we can't re-run individual functions for any reason.
|
| 45 |
+
|
| 46 |
+
|
| 47 |
+
import sys
|
| 48 |
+
if sys.version_info < (3, 6):
|
| 49 |
+
sys.stderr.write(
|
| 50 |
+
"Error: this test wrapper script requires Python version 3.6 at least\n")
|
| 51 |
+
sys.exit(1)
|
| 52 |
+
|
| 53 |
+
import argparse
|
| 54 |
+
import subprocess
|
| 55 |
+
import os
|
| 56 |
+
import traceback
|
| 57 |
+
import time
|
| 58 |
+
import timeit
|
| 59 |
+
import xml.etree.ElementTree as ET
|
| 60 |
+
import logging as L
|
| 61 |
+
|
| 62 |
+
from pprint import pprint
|
| 63 |
+
from typing import NamedTuple, Tuple, List, Optional
|
| 64 |
+
|
| 65 |
+
# Define a custom type for returning a fail incident
|
| 66 |
+
class WhatFailed(NamedTuple):
|
| 67 |
+
func: str
|
| 68 |
+
tag: Optional[str] = None
|
| 69 |
+
|
| 70 |
+
|
| 71 |
+
# In the last test re-run, we add special verbosity arguments, in an attempt
|
| 72 |
+
# to log more information about the failure
|
| 73 |
+
VERBOSE_ARGS = ["-v2", "-maxwarnings", "0"]
|
| 74 |
+
VERBOSE_ENV = {
|
| 75 |
+
"QT_LOGGING_RULES": "*=true",
|
| 76 |
+
"QT_MESSAGE_PATTERN": "[%{time process} %{if-debug}D%{endif}%{if-warning}W%{endif}%{if-critical}C%{endif}%{if-fatal}F%{endif}] %{category} %{file}:%{line} %{function}() - %{message}",
|
| 77 |
+
}
|
| 78 |
+
# The following special function names can not re-run individually.
|
| 79 |
+
NO_RERUN_FUNCTIONS = {
|
| 80 |
+
"initTestCase", "init", "cleanup", "cleanupTestCase"
|
| 81 |
+
}
|
| 82 |
+
# The following tests do not write XML log files properly. qt-testrunner will
|
| 83 |
+
# not try to append "-o" to their command-line or re-run failed testcases.
|
| 84 |
+
# Only add tests here if absolutely necessary!
|
| 85 |
+
NON_XML_GENERATING_TESTS = {
|
| 86 |
+
"tst_selftests", # qtestlib's selftests are using an external test framework (Catch) that does not support -o argument
|
| 87 |
+
"tst_QDoc", # Some of QDoc's tests are using an external test framework (Catch) that does not support -o argument
|
| 88 |
+
"tst_QDoc_Catch_Generators", # Some of QDoc's tests are using an external test framework (Catch) that does not support -o argument
|
| 89 |
+
}
|
| 90 |
+
|
| 91 |
+
|
| 92 |
+
def parse_args():
|
| 93 |
+
parser = argparse.ArgumentParser(formatter_class=argparse.RawDescriptionHelpFormatter,
|
| 94 |
+
description="""
|
| 95 |
+
Wrap Qt test execution. This is intended to be invoked via the TESTRUNNER
|
| 96 |
+
environment variable before running ctest in the CI environment. The purpose
|
| 97 |
+
of the script is to repeat failed tests in order to iron out transient errors
|
| 98 |
+
caused by unpredictable factors. Individual test functions that failed are
|
| 99 |
+
retried up to max-repeats times until the test passes.
|
| 100 |
+
""",
|
| 101 |
+
epilog="""
|
| 102 |
+
Default flags: --max-repeats 5 --passes-needed 1
|
| 103 |
+
"""
|
| 104 |
+
)
|
| 105 |
+
parser.add_argument("testargs", metavar="TESTARGS", nargs="+",
|
| 106 |
+
help="Test executable and arguments")
|
| 107 |
+
parser.add_argument("--log-dir", metavar="DIR",
|
| 108 |
+
help="Where to write the XML log files with the test results of the primary test run;"
|
| 109 |
+
" by default write to CWD")
|
| 110 |
+
parser.add_argument("--max-repeats", type=int, default=5, metavar='N',
|
| 111 |
+
help="In case the test FAILs, repeat the failed cases this many times")
|
| 112 |
+
parser.add_argument("--passes-needed", type=int, default=1, metavar='M',
|
| 113 |
+
help="Number of repeats that need to succeed in order to return an overall PASS")
|
| 114 |
+
parser.add_argument("--parse-xml-testlog", metavar="file.xml",
|
| 115 |
+
help="Do not run the full test the first time, but parse this XML test log;"
|
| 116 |
+
" if the test log contains failures, then re-run the failed cases normally,"
|
| 117 |
+
" as indicated by the other flags")
|
| 118 |
+
parser.add_argument("--dry-run", action="store_true",
|
| 119 |
+
help="(TODO - not implemented yet) Do not run anything, just describe what would happen")
|
| 120 |
+
parser.add_argument("--timeout", metavar="T",
|
| 121 |
+
help="Timeout for each test execution in seconds")
|
| 122 |
+
parser.add_argument("--no-extra-args", action="store_true",
|
| 123 |
+
help="Do not append any extra arguments to the test command line, like"
|
| 124 |
+
" -o log_file.xml -v2 -vs. This will disable some functionality like the"
|
| 125 |
+
" failed test repetition and the verbose output on failure. This is"
|
| 126 |
+
" activated by default when TESTARGS is tst_selftests.")
|
| 127 |
+
args = parser.parse_args()
|
| 128 |
+
args.self_name = os.path.basename(sys.argv[0])
|
| 129 |
+
args.specific_extra_args = []
|
| 130 |
+
|
| 131 |
+
logging_format = args.self_name + " %(levelname)8s: %(message)s"
|
| 132 |
+
L.basicConfig(format=logging_format, level=L.DEBUG)
|
| 133 |
+
|
| 134 |
+
if args.log_dir is None:
|
| 135 |
+
if "COIN_CTEST_RESULTSDIR" in os.environ:
|
| 136 |
+
args.log_dir = os.environ["COIN_CTEST_RESULTSDIR"]
|
| 137 |
+
L.info("Will write XML test logs to directory"
|
| 138 |
+
" COIN_CTEST_RESULTSDIR=%s", args.log_dir)
|
| 139 |
+
else:
|
| 140 |
+
args.log_dir = "."
|
| 141 |
+
|
| 142 |
+
args.test_basename = os.path.basename(args.testargs[0])
|
| 143 |
+
|
| 144 |
+
if args.test_basename.endswith(".exe"):
|
| 145 |
+
args.test_basename = args.test_basename[:-4]
|
| 146 |
+
|
| 147 |
+
# QNX test wrapper just needs to be skipped to figure out test_basename
|
| 148 |
+
if args.test_basename == "coin_qnx_qemu_runner.sh":
|
| 149 |
+
args.test_basename = os.path.basename(args.testargs[1])
|
| 150 |
+
L.info("Detected coin_qnx_qemu_runner, test will be handled specially. Detected test basename: %s",
|
| 151 |
+
args.test_basename)
|
| 152 |
+
|
| 153 |
+
# On Android emulated platforms, "androidtestrunner" is invoked by CMake
|
| 154 |
+
# to wrap the tests. We have to append the test arguments to it after
|
| 155 |
+
# "--". Besides that we have to detect the basename to avoid saving the
|
| 156 |
+
# XML log as "androidtestrunner.xml" for all tests.
|
| 157 |
+
if args.test_basename == "androidtestrunner":
|
| 158 |
+
args.specific_extra_args = [ "--" ]
|
| 159 |
+
apk_arg = False
|
| 160 |
+
for a in args.testargs[1:]:
|
| 161 |
+
if a == "--apk":
|
| 162 |
+
apk_arg = True
|
| 163 |
+
elif apk_arg:
|
| 164 |
+
apk_arg = False
|
| 165 |
+
if a.endswith(".apk"):
|
| 166 |
+
args.test_basename = os.path.basename(a)[:-4]
|
| 167 |
+
break
|
| 168 |
+
L.info("Detected androidtestrunner, test will be handled specially. Detected test basename: %s",
|
| 169 |
+
args.test_basename)
|
| 170 |
+
|
| 171 |
+
if args.test_basename in NON_XML_GENERATING_TESTS:
|
| 172 |
+
L.info("Detected special test not able to generate XML log! Will not parse it and will not repeat individual testcases")
|
| 173 |
+
args.no_extra_args = True
|
| 174 |
+
args.max_repeats = 0
|
| 175 |
+
|
| 176 |
+
return args
|
| 177 |
+
|
| 178 |
+
|
| 179 |
+
def parse_log(results_file) -> List[WhatFailed]:
|
| 180 |
+
"""Parse the XML test log file. Return the failed testcases, if any.
|
| 181 |
+
|
| 182 |
+
Failures are considered the "fail" and "xpass" incidents.
|
| 183 |
+
A testcase is a function with an optional data tag."""
|
| 184 |
+
start_timer = timeit.default_timer()
|
| 185 |
+
|
| 186 |
+
try:
|
| 187 |
+
tree = ET.parse(results_file)
|
| 188 |
+
except FileNotFoundError:
|
| 189 |
+
L.error("XML log file not found: %s", results_file)
|
| 190 |
+
raise
|
| 191 |
+
except Exception as e:
|
| 192 |
+
L.error("Failed to parse the XML log file: %s", results_file)
|
| 193 |
+
with open(results_file, "rb") as f:
|
| 194 |
+
if os.stat(f.fileno()).st_size == 0:
|
| 195 |
+
L.error(" File is empty")
|
| 196 |
+
else:
|
| 197 |
+
L.error(" File Contents:\n%s\n\n",
|
| 198 |
+
f.read().decode("utf-8", "ignore"))
|
| 199 |
+
raise
|
| 200 |
+
|
| 201 |
+
root = tree.getroot()
|
| 202 |
+
if root.tag != "TestCase":
|
| 203 |
+
raise AssertionError(
|
| 204 |
+
f"The XML test log must have <TestCase> as root tag, but has: <{root.tag}>")
|
| 205 |
+
|
| 206 |
+
failures = []
|
| 207 |
+
n_passes = 0
|
| 208 |
+
for e1 in root:
|
| 209 |
+
if e1.tag == "TestFunction":
|
| 210 |
+
for e2 in e1: # every <TestFunction> can have many <Incident>
|
| 211 |
+
if e2.tag == "Incident":
|
| 212 |
+
if e2.attrib["type"] in ("fail", "xpass"):
|
| 213 |
+
func = e1.attrib["name"]
|
| 214 |
+
e3 = e2.find("DataTag") # every <Incident> might have a <DataTag>
|
| 215 |
+
if e3 is not None:
|
| 216 |
+
failures.append(WhatFailed(func, tag=e3.text))
|
| 217 |
+
else:
|
| 218 |
+
failures.append(WhatFailed(func))
|
| 219 |
+
else:
|
| 220 |
+
n_passes += 1
|
| 221 |
+
|
| 222 |
+
end_timer = timeit.default_timer()
|
| 223 |
+
t = end_timer - start_timer
|
| 224 |
+
L.info(f"Parsed XML file {results_file} in {t:.3f} seconds")
|
| 225 |
+
L.info(f"Found {n_passes} passes and {len(failures)} failures")
|
| 226 |
+
|
| 227 |
+
return failures
|
| 228 |
+
|
| 229 |
+
|
| 230 |
+
def run_test(arg_list: List[str], **kwargs):
|
| 231 |
+
L.debug("Running test command line: %s", arg_list)
|
| 232 |
+
proc = subprocess.run(arg_list, **kwargs)
|
| 233 |
+
L.info("Test process exited with code: %d", proc.returncode)
|
| 234 |
+
|
| 235 |
+
return proc
|
| 236 |
+
|
| 237 |
+
def unique_filename(test_basename: str) -> str:
|
| 238 |
+
timestamp = round(time.time() * 1000)
|
| 239 |
+
return f"{test_basename}-{timestamp}"
|
| 240 |
+
|
| 241 |
+
# Returns tuple: (exit_code, xml_logfile)
|
| 242 |
+
def run_full_test(test_basename, testargs: List[str], output_dir: str,
|
| 243 |
+
no_extra_args=False, dryrun=False,
|
| 244 |
+
timeout=None, specific_extra_args=[]) \
|
| 245 |
+
-> Tuple[int, Optional[str]]:
|
| 246 |
+
|
| 247 |
+
results_files = []
|
| 248 |
+
output_testargs = []
|
| 249 |
+
|
| 250 |
+
# Append arguments to write log to qtestlib XML file,
|
| 251 |
+
# and text to stdout.
|
| 252 |
+
if not no_extra_args:
|
| 253 |
+
filename_base = unique_filename(test_basename)
|
| 254 |
+
pathname_stem = os.path.join(output_dir, filename_base)
|
| 255 |
+
xml_output_file = f"{pathname_stem}.xml"
|
| 256 |
+
|
| 257 |
+
results_files.append(xml_output_file)
|
| 258 |
+
output_testargs.extend([
|
| 259 |
+
"-o", f"{xml_output_file},xml",
|
| 260 |
+
"-o", f"{pathname_stem}.junit.xml,junitxml",
|
| 261 |
+
"-o", f"{pathname_stem}.txt,txt",
|
| 262 |
+
"-o", "-,txt"
|
| 263 |
+
])
|
| 264 |
+
|
| 265 |
+
proc = run_test(testargs + specific_extra_args + output_testargs,
|
| 266 |
+
timeout=timeout)
|
| 267 |
+
|
| 268 |
+
return (proc.returncode, results_files[0] if results_files else None)
|
| 269 |
+
|
| 270 |
+
|
| 271 |
+
def rerun_failed_testcase(test_basename, testargs: List[str], output_dir: str,
|
| 272 |
+
what_failed: WhatFailed,
|
| 273 |
+
max_repeats, passes_needed,
|
| 274 |
+
dryrun=False, timeout=None) -> bool:
|
| 275 |
+
"""Run a specific function:tag of a test, until it passes enough times, or
|
| 276 |
+
until max_repeats is reached.
|
| 277 |
+
|
| 278 |
+
Return True if it passes eventually, False if it fails.
|
| 279 |
+
"""
|
| 280 |
+
assert passes_needed <= max_repeats
|
| 281 |
+
failed_arg = what_failed.func
|
| 282 |
+
if what_failed.tag:
|
| 283 |
+
failed_arg += ":" + what_failed.tag
|
| 284 |
+
|
| 285 |
+
|
| 286 |
+
n_passes = 0
|
| 287 |
+
for i in range(max_repeats):
|
| 288 |
+
# For the individual testcase re-runs, we log to file since Coin needs
|
| 289 |
+
# to parse it. That is the reason we use unique filename every time.
|
| 290 |
+
filename_base = unique_filename(test_basename)
|
| 291 |
+
pathname_stem = os.path.join(output_dir, filename_base)
|
| 292 |
+
|
| 293 |
+
output_args = [
|
| 294 |
+
"-o", f"{pathname_stem}.xml,xml",
|
| 295 |
+
"-o", f"{pathname_stem}.junit.xml,junitxml",
|
| 296 |
+
"-o", f"{pathname_stem}.txt,txt",
|
| 297 |
+
"-o", "-,txt"]
|
| 298 |
+
L.info("Re-running testcase: %s", failed_arg)
|
| 299 |
+
if i < max_repeats - 1:
|
| 300 |
+
proc = run_test(testargs + output_args + [failed_arg],
|
| 301 |
+
timeout=timeout)
|
| 302 |
+
else: # last re-run
|
| 303 |
+
proc = run_test(testargs + output_args + VERBOSE_ARGS + [failed_arg],
|
| 304 |
+
timeout=timeout,
|
| 305 |
+
env={**os.environ, **VERBOSE_ENV})
|
| 306 |
+
if proc.returncode == 0:
|
| 307 |
+
n_passes += 1
|
| 308 |
+
if n_passes == passes_needed:
|
| 309 |
+
L.info("Test has PASSed as FLAKY after re-runs:%d, passes:%d, failures:%d",
|
| 310 |
+
i+1, n_passes, i+1-n_passes)
|
| 311 |
+
return True
|
| 312 |
+
|
| 313 |
+
assert n_passes < passes_needed
|
| 314 |
+
assert n_passes <= max_repeats
|
| 315 |
+
n_failures = max_repeats - n_passes
|
| 316 |
+
L.info("Test has FAILed despite all repetitions! re-runs:%d failures:%d",
|
| 317 |
+
max_repeats, n_failures)
|
| 318 |
+
return False
|
| 319 |
+
|
| 320 |
+
|
| 321 |
+
def main():
|
| 322 |
+
args = parse_args()
|
| 323 |
+
n_full_runs = 1 if args.parse_xml_testlog else 2
|
| 324 |
+
|
| 325 |
+
for i in range(n_full_runs + 1):
|
| 326 |
+
|
| 327 |
+
if 0 < i < n_full_runs:
|
| 328 |
+
L.info("Will re-run the full test executable")
|
| 329 |
+
elif i == n_full_runs: # Failed on the final run
|
| 330 |
+
L.error("Full test run failed repeatedly, aborting!")
|
| 331 |
+
sys.exit(3)
|
| 332 |
+
|
| 333 |
+
try:
|
| 334 |
+
failed_functions = []
|
| 335 |
+
if args.parse_xml_testlog: # do not run test, just parse file
|
| 336 |
+
failed_functions = parse_log(args.parse_xml_testlog)
|
| 337 |
+
# Pretend the test returned correct exit code
|
| 338 |
+
retcode = len(failed_functions)
|
| 339 |
+
else: # normal invocation, run test
|
| 340 |
+
(retcode, results_file) = \
|
| 341 |
+
run_full_test(args.test_basename, args.testargs, args.log_dir,
|
| 342 |
+
args.no_extra_args, args.dry_run, args.timeout,
|
| 343 |
+
args.specific_extra_args)
|
| 344 |
+
if results_file:
|
| 345 |
+
failed_functions = parse_log(results_file)
|
| 346 |
+
|
| 347 |
+
if retcode == 0:
|
| 348 |
+
if failed_functions:
|
| 349 |
+
L.warning("The test executable returned success but the logfile"
|
| 350 |
+
f" contains FAIL for function: {failed_functions[0].func}")
|
| 351 |
+
continue
|
| 352 |
+
sys.exit(0) # PASS
|
| 353 |
+
|
| 354 |
+
if len(failed_functions) == 0:
|
| 355 |
+
L.warning("No failures listed in the XML test log!"
|
| 356 |
+
" Did the test CRASH right after all its testcases PASSed?")
|
| 357 |
+
continue
|
| 358 |
+
|
| 359 |
+
cant_rerun = [ f.func for f in failed_functions if f.func in NO_RERUN_FUNCTIONS ]
|
| 360 |
+
if cant_rerun:
|
| 361 |
+
L.warning(f"Failure detected in the special test function '{cant_rerun[0]}'"
|
| 362 |
+
" which can not be re-run individually")
|
| 363 |
+
continue
|
| 364 |
+
|
| 365 |
+
assert len(failed_functions) > 0 and retcode != 0
|
| 366 |
+
break # all is fine, goto re-running individual failed testcases
|
| 367 |
+
|
| 368 |
+
except Exception as e:
|
| 369 |
+
L.error("exception:%s %s", type(e).__name__, e)
|
| 370 |
+
L.error("The test executable probably crashed, see above for details")
|
| 371 |
+
|
| 372 |
+
if args.max_repeats == 0:
|
| 373 |
+
sys.exit(2) # Some tests failed but no re-runs were asked
|
| 374 |
+
|
| 375 |
+
L.info("Some tests failed, will re-run at most %d times.\n",
|
| 376 |
+
args.max_repeats)
|
| 377 |
+
|
| 378 |
+
for what_failed in failed_functions:
|
| 379 |
+
try:
|
| 380 |
+
ret = rerun_failed_testcase(args.test_basename, args.testargs, args.log_dir,
|
| 381 |
+
what_failed, args.max_repeats, args.passes_needed,
|
| 382 |
+
dryrun=args.dry_run, timeout=args.timeout)
|
| 383 |
+
except Exception as e:
|
| 384 |
+
L.error("exception:%s %s", type(e).__name__, e)
|
| 385 |
+
L.error("The testcase re-run probably crashed, giving up")
|
| 386 |
+
sys.exit(3) # Test re-run CRASH
|
| 387 |
+
|
| 388 |
+
if not ret:
|
| 389 |
+
sys.exit(2) # Test re-run FAIL
|
| 390 |
+
|
| 391 |
+
sys.exit(0) # All testcase re-runs PASSed
|
| 392 |
+
|
| 393 |
+
|
| 394 |
+
if __name__ == "__main__":
|
| 395 |
+
main()
|
qt/6.8.1/msvc2022_64/bin/qt.conf
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
|
|
|
|
|
|
|
| 1 |
+
[Paths]
|
| 2 |
+
Prefix=..
|
qt/6.8.1/msvc2022_64/bin/qtdiag.exe
ADDED
|
Binary file (90.8 kB). View file
|
|
|
qt/6.8.1/msvc2022_64/bin/qtdiag6.exe
ADDED
|
Binary file (90.8 kB). View file
|
|
|
qt/6.8.1/msvc2022_64/bin/qtenv2.bat
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
@echo off
|
| 2 |
+
echo Setting up environment for Qt usage...
|
| 3 |
+
set PATH=D:\code\apps\devtools\qt\6.8.1\msvc2022_64\bin;%PATH%
|
| 4 |
+
cd /D D:\code\apps\devtools\qt\6.8.1\msvc2022_64
|
| 5 |
+
echo Remember to call vcvarsall.bat to complete environment setup!
|
qt/6.8.1/msvc2022_64/bin/qtpaths.exe
ADDED
|
Binary file (92.8 kB). View file
|
|
|
qt/6.8.1/msvc2022_64/bin/qtpaths6.exe
ADDED
|
Binary file (92.8 kB). View file
|
|
|
qt/6.8.1/msvc2022_64/bin/qtplugininfo.exe
ADDED
|
Binary file (40.6 kB). View file
|
|
|
qt/6.8.1/msvc2022_64/bin/qvkgen.exe
ADDED
|
Binary file (74.4 kB). View file
|
|
|
qt/6.8.1/msvc2022_64/bin/sanitizer-testrunner.py
ADDED
|
@@ -0,0 +1,51 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/usr/bin/env python3
|
| 2 |
+
# Copyright (C) 2022 The Qt Company Ltd.
|
| 3 |
+
# SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0
|
| 4 |
+
|
| 5 |
+
import os
|
| 6 |
+
import re
|
| 7 |
+
import sys
|
| 8 |
+
import logging as L
|
| 9 |
+
from subprocess import Popen, PIPE
|
| 10 |
+
|
| 11 |
+
|
| 12 |
+
# Thin testrunner that ignores failures in tests and only catches
|
| 13 |
+
# crashes or ASAN errors.
|
| 14 |
+
#
|
| 15 |
+
# It executes its arguments as a command line, and parses the stderr for the
|
| 16 |
+
# following regex:
|
| 17 |
+
detect_ASAN = re.compile(r"^==[0-9]+==ERROR: AddressSanitizer")
|
| 18 |
+
|
| 19 |
+
|
| 20 |
+
my_name = os.path.basename(sys.argv[0])
|
| 21 |
+
logging_format = my_name + " %(levelname)8s: %(message)s"
|
| 22 |
+
L.basicConfig(format=logging_format, level=L.DEBUG)
|
| 23 |
+
|
| 24 |
+
L.info("This test is wrapped with sanitizer-testrunner.py. FAIL results are being ignored! Only crashes and ASAN errors are caught.")
|
| 25 |
+
|
| 26 |
+
proc = None
|
| 27 |
+
if sys.argv[1] == "-f": # hidden option to parse pre-existing files
|
| 28 |
+
f = open(sys.argv[2], "r", errors="ignore")
|
| 29 |
+
else:
|
| 30 |
+
proc = Popen(sys.argv[1:], stderr=PIPE, universal_newlines=True, errors="ignore")
|
| 31 |
+
f = proc.stderr
|
| 32 |
+
|
| 33 |
+
issues_detected = False
|
| 34 |
+
for line in f:
|
| 35 |
+
if proc:
|
| 36 |
+
# We don't want the stderr of the subprocess to disappear, so print it.
|
| 37 |
+
print(line, file=sys.stderr, end="", flush=True)
|
| 38 |
+
if detect_ASAN.match(line):
|
| 39 |
+
issues_detected = True
|
| 40 |
+
f.close()
|
| 41 |
+
if proc:
|
| 42 |
+
proc.wait()
|
| 43 |
+
rc = proc.returncode
|
| 44 |
+
L.info("Test exit code was: %d", rc)
|
| 45 |
+
if not ( 0 <= rc <= 127 ):
|
| 46 |
+
L.error("Crash detected")
|
| 47 |
+
exit(1)
|
| 48 |
+
|
| 49 |
+
if issues_detected:
|
| 50 |
+
L.error("ASAN issues detected")
|
| 51 |
+
exit(1)
|
qt/6.8.1/msvc2022_64/bin/svgtoqml.exe
ADDED
|
Binary file (39.1 kB). View file
|
|
|