dbus-test-runner(1)

πŸ“¦
version 19.04.0 Β· 2 versions
, in debian bookworm, debian trixie, ubuntu jammy, ubuntu noble

✨ dbus-test-runner ✨

okay so welcome to the dbus-test-runner(1) manual page bestie, this is the one that runs a whole bunch of tasks under their own private DBus session bus and honestly? iconic. πŸ¦‹


🌸 NAME 🌸

dbus-test-runner β€” run multiple tasks under an independent DBus session bus πŸ’…


πŸŽ€ SYNOPSIS πŸŽ€

dbus-test-runner [ options ]

πŸ’– DESCRIPTION πŸ’–

dbus-test-runner is a simple little executable for running a couple of programs under a new DBus session. like, it's small, it's cute, it does one thing and it ATE. πŸ‘‘

Use this DBus tool for unit testing of code that accesses DBus at runtime. fr fr, that's the whole vibe.


πŸ™ˆ HELP OPTIONS πŸ™ˆ

dbus-test-runner accepts the following help options on the command line:

  • -h, --help β€” shows you a short help text with the application and help command line options, then dips. bye bestie πŸ‘‹
  • --help-all β€” shows the FULL list of available command line options (help, task control, application) and then exits. the whole menu, no gatekeeping ✨
  • --help-task-control β€” shows just the options that control how a task is handled by the test runner. the task-control-only corner πŸŽ€

🧚 TASK CONTROL OPTIONS 🧚

dbus-test-runner accepts the following task control options on the command line:

  • -t, --task=<executable> β€” defines a new task to run under our private DBus session. new task, who dis πŸ’…
  • -n, --task-name=<name> β€” a string to label the output from the previously defined task. defaults to taskN. name your babies 🍼
  • --task-bus={session|system|both} β€” configures which bus the task expects to connect to. Default: both
  • -r, --ignore-return β€” do not use the return value of the task to calculate whether the test passes or fails. like, we're not checking the receipts on this one πŸ™ˆ
  • -i, --invert β€” inverts the return value of the task before calculating whether the test passes or fails. plot twist energy πŸ”„
  • -p, --parameter β€” add a parameter to the call of this utility. may be called as many times as you'd like. go off, stack 'em 🫢
  • -f, --wait-for=<dbus-name> β€” a dbus-name that should appear on the bus before this task is started. we WAIT for our friends, periodt ⏳
  • -c, --wait-until-complete β€” signal that we should wait until this task exits even if we don't need the return value. main character stays till the end of the movie 🎬
ngl the original page has a lil stray fragment eturn hanging out in this section (a typo moment, it's giving copy-paste tragedy 😭). we're keeping it exactly as it is because the facts do not change. πŸ’€

🌈 APPLICATION OPTIONS 🌈

dbus-test-runner accepts the following application options on the command line:

  • --dbus-daemon=<executable> β€” path to the DBus daemon to use. defaults to 'dbus-daemon'.
  • -d, --dbus-config=<config_file> β€” configuration file for the newly created DBus server. defaults to '/usr/share/dbus-test-runner/session.conf'.
  • --bustle-monitor=<executable> β€” path to the Bustle DBus Monitor to use. defaults to 'bustle-dbus-monitor'.
  • -b, --bustle-data=<data_file> β€” a file to write out data from the bustle logger to. spill the tea into a file β˜•
  • -m, --max-wait=<seconds> β€” the maximum amount of time the test runner will wait for the test to complete. default is 30 seconds. tick tock bestie ⏰
  • --keep-env β€” whether to propagate the execution environment to the dbus-server and all the services activated by it. by default the environment is cleared. so if you want your env vars to come with you, you gotta ask πŸ₯Ί
  • --bus-type={session|system|both} β€” configures which buses are represented by the tool to the tasks. Default: session

πŸ‘€ SEE ALSO πŸ‘€


πŸ’œ AUTHOR πŸ’œ

This manual has been written for the Debian project by Mike Gabriel <mike.gabriel@das-netzwerkteam.de> and may be used by others. shoutout to Mike, absolute legend 🫢


Version 15.04.20141209 Β· Jan 2015

okay that's the whole page bestie, go forth and run your tasks under your own little DBus session, you're gonna slay πŸ’…βœ¨πŸŒΈπŸ¦‹

πŸ“¦ where this page comes from