]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
mkosi: support mkosi's --without-tests switch
authorLennart Poettering <lennart@poettering.net>
Mon, 17 Jul 2017 18:54:16 +0000 (20:54 +0200)
committerLennart Poettering <lennart@poettering.net>
Thu, 20 Jul 2017 12:37:05 +0000 (14:37 +0200)
This adds support for the mkosi switch --without-tests that is
introduced by:

https://github.com/systemd/mkosi/pull/122

With this in place doing "mkosi -ifT shell" is the fastest way from a
git clone to a shell within a freshly compiled systemd system.

mkosi.build

index a36460c6f5aec3d288430b8967201e686a0b2472..c722e23192439bc27f25499e6c62209e5f24aacc 100755 (executable)
@@ -27,7 +27,7 @@
 export LC_CTYPE=C.UTF-8
 test -f "$BUILDDIR"/build.ninja || meson "$BUILDDIR"
 ninja -C "$BUILDDIR" all
-ninja -C "$BUILDDIR" test
+[ "$WITH_TESTS" = 0 ] || ninja -C "$BUILDDIR" test
 ninja -C "$BUILDDIR" install
 
 mkdir -p "$DESTDIR"/etc