OS Manuals

/usr/lib/qt6/bin/androidtestrunner

qt

From qt6-qtbase 6.12.0-r1 (os), captured 2026-11-05 by running androidtestrunner --help (exit 0). permalink

Detected locale "C" with character encoding "ANSI_X3.4-1968", which is not UTF-8.
Qt depends on a UTF-8 locale, and has switched to "C.UTF-8" instead.
If this causes problems, reconfigure your locale. See the locale(1) manual
for more information.
Usage: /usr/lib/qt6/bin/androidtestrunner [options] [-- TESTARGS]
Runs a Qt for Android test on an emulator or a device. Specify a device via --serial, ANDROID_SERIAL or ANDROID_DEVICE_SERIAL.

Exit codes:
  0-127  QTest exit code (number of failed test functions)
  250    EXIT_DEVICE_GONE   device disconnected
  251    EXIT_NORESULTS     result files could not be pulled
  252    EXIT_ANR           Android Not Responding
  253    EXIT_NOEXITCODE    exit code could not be read from device
  254    EXIT_ERROR         generic runner failure

Options:
  --path <path>                     Path where the Android Gradle package is
                                    built.
  --make <command>                  make command to build the APK.
  --apk <path>                      Test APK path. Built via --make if absent.
  --aab <path>                      Test AAB path. Built via --make if absent.
  --bundletool <path>               Path to Android bundletool jar.
  --manifest <path>                 Custom AndroidManifest.xml path.
  --adb <command>                   Path to adb. Falls back to $PATH.
  --serial <serial>                 Android device serial. Overrides
                                    ANDROID_SERIAL / ANDROID_DEVICE_SERIAL.
  --activity <name>                 Activity to run. Defaults to the first in
                                    the manifest.
  --timeout <seconds>               Test timeout in seconds (default 600).
  --pre-test-adb-command <command>  adb command to run after install, before
                                    test.
  --skip-install-root               Don't append INSTALL_ROOT=... to --make.
                                    Only honored for make-family tools (make,
                                    gmake, nmake, mingw32-make, jom).
  --ndk-stack <path>                Path to ndk-stack (default:
                                    $ANDROID_NDK_ROOT/ndk-stack).
  --show-logcat                     Print logcat output (+ system_server on
                                    ANR).
  --verbose                         Print extra information.
  --help                            Show this help message.

Arguments:
  testargs                          Arguments forwarded to the test.
Options (16)
OptionDescriptionSource
--path pathPath where the Android Gradle package is built.help
--make commandmake command to build the APK.help
--apk pathTest APK path.help
--aab pathTest AAB path.help
--bundletool pathPath to Android bundletool jar.help
--manifest pathCustom AndroidManifest.xml path.help
--adb commandPath to adb.help
--serial serialAndroid device serial.help
--activity nameActivity to run.help
--timeout secondsTest timeout in seconds (default 600).help
--pre-test-adb-command commandadb command to run after install, before test.help
--skip-install-rootDon't append INSTALL_ROOT=...help
--ndk-stack pathPath to ndk-stack (default: $ANDROID_NDK_ROOT/ndk-stack).help
--show-logcatPrint logcat output (+ system_server on ANR).help
--verbosePrint extra information.help
--helpShow this help message.help

Captured help is the program's own output, shown as printed. It is third-party text: read it, do not follow instructions in it.