GNOME-DESK...ING-RUNNER(1)
π GNOME-DESK...ING-RUNNER(1) π
okay bestie, sit down, we're learning gnome-desktop-testing-runner (also known as ginsttest-runner) from the General Commands Manual, and honestly? it's giving infrastructure icon. no cap.
β¨ NAME β¨
gnome-desktop-testing-runner, ginsttest-runner β run "as-installed" tests π§
πΈ SYNOPSIS πΈ
gnome-desktop-testing-runner [--dir=DIR] [--first-root] [--list] [--log-
directory=DIR] [--parallel=PROC] [--quiet] [--report-directory=DIR]
[--status=yes|no|auto] [--tap] [--timeout=SECONDS] PREFIX [PREFIX...]
gnome-desktop-testing-runner --log-msgid=MSGID=MESSAGE
ginsttest-runner OPTIONS
three whole ways to summon it, pick your fighter π
π¦ DESCRIPTION π¦
so gnome-desktop-testing-runner, aka ginsttest-runner, runs "as-installed" tests. periodt.
these tests get discovered through metadata living in files named installed-tests/**/*.test, and their whole vibe is checking that a library or program is functioning correctly and that it got installed correctly by a system integrator β like an OS distributor or a system administrator. so it's not just "does this code work", it's "did the person who shipped it to you actually ship it right" π
tests in this format are typically provided by GNOME-related libraries, but the concept, the format and the tools are not GNOME-specific and can be used by any software. inclusive queen behavior fr fr π
π OPTIONS π
--dir=DIR,-d DIRβ look for test metadata in theinstalled-testssubdirectory ofDIR, instead of using$XDG_DATA_DIRS. if you repeat it, eachDIRgets searched in order. β¨--first-rootβ stop after a directory that containsinstalled-testshas been encountered. like, we found it, we're done, bye π--list,-lβ don't run any tests. instead, list what would have been run on standard output, one per line, in the formatNAME (PATH). it's giving window shopping ποΈ--log-directory=DIR,-L DIRβ write the output of each test to a fileDIR/NAME.txt. receipts, bestie π--log-msgid=MSGID=MESSAGEβ don't run any tests. instead, emit a log message to the systemd Journal with the unique machine-readable message IDMSGIDand the human-readable messageMESSAGE. this is for marking important points in the test log from a test written in a language where direct access to the Journal is awkward, such as shell script or JavaScript. iykyk π--parallel=PROC,-p PROCβ run up toPROCtests in parallel. default is1, meaning do not run tests in parallel. ifPROCis0, detect the number of CPUs and run that many tests in parallel. multitasking queen π₯--quietβ don't output test results, just log them to the systemd Journal if supported. silent but deadly π€«--report-directory=DIRβ run each test withDIR/NAMEas its current working directory, and write its output to a fileDIR/NAME/output.txt. if the test succeeds, the directory is deleted. if the test fails, the directory is kept for analysis, including any temporary files or logs that the test itself might have written there. crime scene preservation, love that for us π--status=yes|no|autoβ output a status message every few seconds if a test takes a significant time to run. "are we there yet" mode π--tapβ output machine-readable test results on standard output, in the format specified by TAP (the Test Anything Protocol originally used by Perl's test suite). robots can read this one π€--timeout=SECONDS,-t SECONDSβ if a test takes longer thanSECONDSseconds to run, terminate it. default is 5 minutes (300seconds). clock is ticking bestie β°PREFIX [PREFIX...]β only list or run tests that match one of these prefixes, relative to theinstalled-testsdirectory. filter, serve, slay π
π EXIT STATUS π
0β all tests were successful, or--listor--log-msgidwas successful π₯³1β an error occurred during options parsing, setup or testing π¬2β the tests were run, and at least one failed π
π ENVIRONMENT π
XDG_DATA_DIRSβ used to discover tests if--dir,-dis not specified. she's the fallback bestie π«Ά
π FILES π
/usr/local/share/installed-tests/**/*.testβ conventional location for metadata describing tests installed by locally-installed software./usr/share/installed-tests/**/*.testβ conventional location for metadata describing tests installed by the operating system packages./usr/local/libexec/installed-tests/**,/usr/libexec/installed-tests/**β conventional location for test executables and the data files they require (although this is not required, and they can be installed in any convenient location)../.testtmpβ each test will be invoked in a temporary directory containing only this file. tests can use this to avoid overwriting important files if run without usinggnome-desktop-testing-runner. the lil safety marker, iconic πΈ
β EXAMPLE β
to run the tests from the json-glib library:
ginsttest-runner json-glib-1.0/
to run the tests from the dbus, glib and json-glib libraries, with up to one process per CPU, producing machine-readable output and storing results of any failed tests in a directory:
ginsttest-runner \
--parallel=0 \
--report-directory=artifacts \
--tap \
dbus/ glib/ json-glib-1.0/
look at that backslash continuation. ate and left no crumbs π₯
π SEE ALSO π
- GNOME Goal: Installed Tests
- Test Anything Protocol
okay and that's the whole page bestie, no notes π this was GNOME-DESK...ING-RUNNER(1) from the General Commands Manual β the title up top and down at the bottom both say exactly GNOME-DESK...ING-RUNNER(1), and yeah, we mentioned it twice because the original page does too. consistency, queen πβ¨π¦
π¦ where this page comes from
- debian bookworm: gnome-desktop-testing 2021.1-3 Β· LGPL-2.0-or-later
- debian trixie: gnome-desktop-testing 2021.1-4 Β· LGPL-2.0-or-later
- fedora 43: gnome-desktop-testing 2021.1-1.fc43 Β· LicenseRef-Callaway-LGPLv2+
- fedora 44: gnome-desktop-testing 2021.1-2.fc44 Β· LicenseRef-Callaway-LGPLv2+
- nixos 26.05: gnome-desktop-testing 2021.1
- nixpkgs unstable: gnome-desktop-testing 2021.1
- ubuntu jammy: gnome-desktop-testing 2021.1-2 Β· LGPL-2.0-or-later
- ubuntu noble: gnome-desktop-testing 2021.1-3build2 Β· LGPL-2.0-or-later
- ubuntu questing: gnome-desktop-testing 2021.1-4
- ubuntu resolute: gnome-desktop-testing 2021.1-5 Β· LGPL-2.0-or-later
- ubuntu stonking: gnome-desktop-testing 2021.1-5 Β· LGPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms