]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
tree-wide: Use meson test -q
authorDaan De Meyer <daan.j.demeyer@gmail.com>
Thu, 11 Dec 2025 16:21:08 +0000 (17:21 +0100)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Fri, 12 Dec 2025 10:45:58 +0000 (11:45 +0100)
meson test output is extremely verbose, printing
a separate line for each successful test. Let's
add -q/--quiet everywhere so it only prints full
lines for skipped and failed tests.

.github/workflows/coverage.yml
.github/workflows/linter.yml
.github/workflows/mkosi.yml
.github/workflows/unit-tests-musl.sh
.github/workflows/unit-tests.sh
README
docs/HACKING.md

index 3e1ffffb7469092019a63bc6493d373aad829367..d3c9c12127ff45c0e316320cab63120ca0ef0b45 100644 (file)
@@ -124,7 +124,8 @@ jobs:
             --no-stdsplit \
             --num-processes "$(($(nproc) - 1))" \
             --timeout-multiplier 2 \
-            --max-lines 300
+            --max-lines 300 \
+            --quiet
 
       - name: Archive failed test journals
         uses: actions/upload-artifact@v4
index 1a0bc39172013c401f2ad02a6461e944e6719067..fda63e5bf3b2ddcbef22d0d72b791c08ec7c2799 100644 (file)
@@ -80,7 +80,7 @@ jobs:
         run: mkosi box -- env CC=clang CXX=clang++ meson setup -Dlocalegen-path=/usr/bin/locale-gen -Dcompat-mutable-uid-boundaries=true build
 
       - name: Run clang-tidy
-        run: mkosi box -- meson test -C build --suite=clang-tidy --print-errorlogs --no-stdsplit
+        run: mkosi box -- meson test -C build --suite=clang-tidy --print-errorlogs --no-stdsplit --quiet
 
       - name: Build with musl
         run: mkosi box -- .github/workflows/build-test-musl.sh
index 5a5ea8d4f76c886c306ed162cce697074e4df613..da9e730d470d36bfc5e00c5df850e7bd9d313030 100644 (file)
@@ -308,6 +308,7 @@ jobs:
             --print-errorlogs \
             --no-stdsplit \
             --num-processes "$(($(nproc) - 1))" \
+            --quiet \
             "${MAX_LINES[@]}"
 
       - name: Archive failed test journals
index ab7cdf0a702e6bad1be064cf520df40550f474a3..5a9e68710a294f4eb15a5dbe04abfa3f07789634 100755 (executable)
@@ -47,7 +47,7 @@ for phase in "${PHASES[@]}"; do
             # correctly detect the environment.
             env \
                 SYSTEMD_IN_CHROOT=yes \
-                meson test -C build --print-errorlogs --no-stdsplit
+                meson test -C build --print-errorlogs --no-stdsplit --quiet
             ;;
         CLEANUP)
             info "Cleanup phase"
index c119a86011a4da88a67f79763620e399f59fbaff..c87b7d2e9a366011411f01f1d1284935e3a88fc8 100755 (executable)
@@ -109,7 +109,7 @@ for phase in "${PHASES[@]}"; do
             run_meson -Dnobody-group=nogroup --werror -Dtests=unsafe -Dslow-tests=true -Dfuzz-tests=true "${MESON_ARGS[@]}" build
             ninja -C build -v
             # Ensure setting a timezone (like the reproducible build tests do) does not break time/date unit tests
-            TZ=GMT+12 meson test "${MESON_TEST_ARGS[@]}" -C build --print-errorlogs --no-stdsplit
+            TZ=GMT+12 meson test "${MESON_TEST_ARGS[@]}" -C build --print-errorlogs --no-stdsplit --quiet
             ;;
         RUN_ASAN_UBSAN|RUN_GCC_ASAN_UBSAN|RUN_CLANG_ASAN_UBSAN|RUN_CLANG_ASAN_UBSAN_NO_DEPS)
             # TODO: drop after we switch to ubuntu 26.04
@@ -151,7 +151,7 @@ for phase in "${PHASES[@]}"; do
             # during debugging, wonderful), so let's at least keep a workaround
             # here to make the builds stable for the time being.
             (set +x; while :; do echo -ne "\n[WATCHDOG] $(date)\n"; sleep 30; done) &
-            meson test --timeout-multiplier=3 -C build --print-errorlogs --no-stdsplit
+            meson test --timeout-multiplier=3 -C build --print-errorlogs --no-stdsplit --quiet
             ;;
         CLEANUP)
             info "Cleanup phase"
diff --git a/README b/README
index e81367434388fae4b318ed2696cfc8c8f1355df1..84f2b3ae41f255f0d0af17f44cd2ac9debae86c2 100644 (file)
--- a/README
+++ b/README
@@ -290,7 +290,7 @@ REQUIREMENTS:
 
         Useful commands:
           ninja -C build -v some/target
-          meson test -C build/
+          meson test -C build/ -q
           sudo meson install -C build/ --no-rebuild
           DESTDIR=... meson install -C build/
 
index 2825a4e3f098122cfc01586cd09f6e34413d2297..aa226445e7b1d413ddb1d44a065dee44794081ed 100644 (file)
@@ -43,7 +43,7 @@ $ mkosi -f genkey                                            # Generate signing
 $ mkosi -f box -- meson setup -Dbpf-framework=disabled build # bpftool detection inside mkosi box is broken on Ubuntu Noble and older
 $ mkosi -f box -- meson compile -C build
 $ mkosi -f box -- build/systemctl --version
-$ mkosi -f box -- meson test -C build --print-errorlogs      # Run the unit tests
+$ mkosi -f box -- meson test -C build --print-errorlogs -q   # Run the unit tests
 ```
 
 To build and boot an OS image with the latest systemd installed: