From: Daan De Meyer Date: Thu, 20 Feb 2025 09:31:02 +0000 (+0100) Subject: docs: Document how to run the unit tests in HACKING.md X-Git-Tag: v258-rc1~1296^2~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=75ace9fd84a1bd0ae25774d581276e77477b9ccd;p=thirdparty%2Fsystemd.git docs: Document how to run the unit tests in HACKING.md --- diff --git a/docs/HACKING.md b/docs/HACKING.md index fab5ae07b97..431c1eb4af8 100644 --- a/docs/HACKING.md +++ b/docs/HACKING.md @@ -36,12 +36,13 @@ or via your distribution's package manager. Note that systemd regularly adopts newer mkosi features that are not in an official release yet so there's a good chance that your distribution's packaged version of mkosi will be too old. -Then, you can build and run systemd executables as follows: +Then, you can build, run and test systemd executables as follows: ```sh $ mkosi -f sandbox -- meson setup build $ mkosi -f sandbox -- meson compile -C build $ mkosi -f sandbox -- build/systemctl --version +$ mkosi -f sandbox -- meson test -C build # Run the unit tests ``` To build and boot an OS image with the latest systemd installed: