(2a10ca17f11ee8003d20817742a4dd197885a54b)
#include <QtCore/QCoreApplication>
#include <QtCore/QDeadlineTimer>
#include <QtCore/qdebug.h>
#include <QtCore/QDir>
#include <QtCore/QHash>
#include <QtCore/QProcess>
#include <QtCore/QProcessEnvironment>
#include <QtCore/QRegularExpression>
#include <QtCore/QSystemSemaphore>
#include <QtCore/QThread>
#include <QtCore/QXmlStreamReader>
#include <QtCore/QFileInfo>
#include <QtCore/QSysInfo>
#include <QtCore/QTemporaryFile>
#include <atomic>
#include <csignal>
#include <functional>
#include <optional>
#include <unistd.h>
Go to the source code of this file.
|
| static bool | isTestExitCodeNormal (const int ec) |
| static bool | execCommand (const QString &program, const QStringList &args, QByteArray *output=nullptr, bool verbose=false) |
| static bool | execAdbCommand (const QStringList &args, QByteArray *output=nullptr, bool verbose=true) |
| static bool | execBundletoolCommand (const QStringList &args, QByteArray *output=nullptr, bool verbose=true) |
| static void | setPackagePath (const QString &path) |
| static bool | execCommand (const QString &command, QByteArray *output=nullptr, bool verbose=true) |
| static bool | parseOptions () |
| static void | printHelp () |
| static QString | gradleInitScriptPath () |
| static QString | getGradleProjectProperty (const QString &androidBuildDir, const QString &property) |
| static bool | processAndroidManifest () |
| static QStringList | queryDangerousPermissions () |
| static void | setOutputFile (QString file, QString format) |
| static bool | parseTestArgs () |
| static int | getPid (const QString &package) |
| static QString | runCommandAsUserArgs (const QString &cmd) |
| static bool | isRunning () |
| static void | waitForStarted () |
| static void | waitForLoggingStarted () |
| static bool | setupStdoutLogger () |
| static bool | stopStdoutLogger () |
| static void | waitForFinished () |
| static void | obtainSdkVersion () |
| static QString | userId () |
| static QStringList | runningDevices () |
| static bool | pullResults () |
| static QString | getAbiLibsPath () |
| void | printLogcatCrash (const QByteArray &logcat) |
| void | analyseLogcat (const QString &timeStamp, int *exitCode) |
| static QString | getCurrentTimeString () |
| static int | testExitCode () |
| static bool | uninstallTestPackage () |
| void | sigHandler (int signal) |
| int | main (int argc, char *argv[]) |
◆ analyseLogcat()
| void analyseLogcat |
( |
const QString & | timeStamp, |
|
|
int * | exitCode ) |
◆ execAdbCommand()
◆ execBundletoolCommand()
◆ execCommand() [1/2]
◆ execCommand() [2/2]
◆ getAbiLibsPath()
◆ getCurrentTimeString()
◆ getGradleProjectProperty()
◆ getPid()
| int getPid |
( |
const QString & | package | ) |
|
|
static |
◆ gradleInitScriptPath()
◆ isRunning()
◆ isTestExitCodeNormal()
| bool isTestExitCodeNormal |
( |
const int | ec | ) |
|
|
static |
◆ main()
| int main |
( |
int | argc, |
|
|
char * | argv[] ) |
Definition at line 999 of file main.cpp.
References TestRunnerSystemSemaphore::acquire(), EXIT_ERROR, EXIT_NORESULTS, g_options, g_testInfo, isTestExitCodeNormal(), obtainSdkVersion(), parseOptions(), parseTestArgs(), printHelp(), processAndroidManifest(), pullResults(), TestRunnerSystemSemaphore::release(), setupStdoutLogger(), Options::showLogcatOutput, sigHandler(), stopStdoutLogger(), testExitCode(), testRunnerLock, uninstallTestPackage(), waitForFinished(), waitForLoggingStarted(), and waitForStarted().
◆ obtainSdkVersion()
| void obtainSdkVersion |
( |
| ) |
|
|
static |
◆ parseOptions()
◆ parseTestArgs()
◆ printHelp()
◆ printLogcatCrash()
◆ processAndroidManifest()
| bool processAndroidManifest |
( |
| ) |
|
|
static |
◆ pullResults()
◆ queryDangerousPermissions()
◆ runCommandAsUserArgs()
◆ runningDevices()
◆ setOutputFile()
◆ setPackagePath()
◆ setupStdoutLogger()
| bool setupStdoutLogger |
( |
| ) |
|
|
static |
◆ sigHandler()
| void sigHandler |
( |
int | signal | ) |
|
◆ stopStdoutLogger()
| bool stopStdoutLogger |
( |
| ) |
|
|
static |
◆ testExitCode()
◆ uninstallTestPackage()
| bool uninstallTestPackage |
( |
| ) |
|
|
static |
◆ userId()
◆ waitForFinished()
◆ waitForLoggingStarted()
| void waitForLoggingStarted |
( |
| ) |
|
|
static |
◆ waitForStarted()
◆ EXIT_ANR
| constexpr int EXIT_ANR = 252 |
|
staticconstexpr |
◆ EXIT_ERROR
| constexpr int EXIT_ERROR = 254 |
|
staticconstexpr |
◆ EXIT_NOEXITCODE
| constexpr int EXIT_NOEXITCODE = 253 |
|
staticconstexpr |
◆ EXIT_NORESULTS
| constexpr int EXIT_NORESULTS = 251 |
|
staticconstexpr |
◆ g_options
Definition at line 70 of file main.cpp.
Referenced by analyseLogcat(), execCommand(), isRunning(), main(), parseOptions(), parseTestArgs(), printLogcatCrash(), processAndroidManifest(), pullResults(), setOutputFile(), setPackagePath(), setupStdoutLogger(), stopStdoutLogger(), and waitForFinished().
◆ g_testInfo
◆ HIGHEST_QTEST_EXITCODE
| constexpr int HIGHEST_QTEST_EXITCODE = 127 |
|
staticconstexpr |
◆ testRunnerLock