devtools: silence meson install
PATCH 1/1 devtools: silence meson install
Installing with ninja is quite verbose by default, hide ninja output under TEST_MESON_BUILD_VERBOSE and TEST_MESON_BUILD_VERY_VERBOSE options.
Signed-off-by David Marchand <[email protected]>
--- devtools/test-meson-builds.sh | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-)
devtools/test-meson-builds.sh +7 -2
@@ -104,8 +104,13 @@ compile () # <builddir> install_target () # <builddir> <installdir> { rm -rf $2 - echo "DESTDIR=$2 $ninja_cmd -C $1 install" - DESTDIR=$2 $ninja_cmd -C $1 install + if [ -n "$TEST_MESON_BUILD_VERY_VERBOSE$TEST_MESON_BUILD_VERBOSE" ]; then + echo "DESTDIR=$2 $ninja_cmd -C $1 install" + DESTDIR=$2 $ninja_cmd -C $1 install + else + echo "DESTDIR=$2 $ninja_cmd -C $1 install >/dev/null" + DESTDIR=$2 $ninja_cmd -C $1 install >/dev/null + fi } build () # <directory> <target compiler> <meson options>
Signature · 1 line
2.23.0
Quoted 5 lines · David Marchand
Installing with ninja is quite verbose by default, hide ninja output under
TEST_MESON_BUILD_VERBOSEandTEST_MESON_BUILD_VERY_VERBOSEoptions.Signed-off-by David Marchand <[email protected]>---
Acked-by Bruce Richardson <[email protected]>
Quoted 26 lines
devtools/test-meson-builds.sh | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-)devtools/test-meson-builds.sh +7
-2@@ -104,8 +104,13 @@ compile () # <builddir> install_target () # <builddir> <installdir> { rm -rf $2 - echo "DESTDIR=$2 $ninja_cmd -C $1 install" - DESTDIR=$2 $ninja_cmd -C $1 install + if [ -n "$TEST_MESON_BUILD_VERY_VERBOSE$TEST_MESON_BUILD_VERBOSE" ]; then + echo "DESTDIR=$2 $ninja_cmd -C $1 install" + DESTDIR=$2 $ninja_cmd -C $1 install + else + echo "DESTDIR=$2 $ninja_cmd -C $1 install >/dev/null" + DESTDIR=$2 $ninja_cmd -C $1 install >/dev/null + fi } build () # <directory> <target compiler> <meson options>Signature · 1 line
2.23.0
Thomas Monjalon
Acked-by18/03/2020 11:02, Bruce Richardson:
Quoted 7 lines · David Marchand
Quoted 5 lines
Installing with ninja is quite verbose by default, hide ninja output under
TEST_MESON_BUILD_VERBOSEandTEST_MESON_BUILD_VERY_VERBOSEoptions.Signed-off-by David Marchand <[email protected]>---
Acked-by Bruce Richardson <[email protected]>
Acked-by Thomas Monjalon <[email protected]>
David Marchand
AppliedQuoted 11 lines · Thomas Monjalon
18/03/2020 11:02, Bruce Richardson:
Quoted 7 lines · David Marchand
Quoted 5 lines
Installing with ninja is quite verbose by default, hide ninja output under
TEST_MESON_BUILD_VERBOSEandTEST_MESON_BUILD_VERY_VERBOSEoptions.Signed-off-by David Marchand <[email protected]>---
Acked-by Bruce Richardson <[email protected]>Acked-by Thomas Monjalon <[email protected]>
Applied.
Signature · 1 line
David Marchand