Skip to contentSkip to conversation

devtools: silence meson install

PATCH In review David Marchand 3 participants 4 messages Mar 17, 2020 – Mar 23, 2020 Arm/Amlogic Meson SoC support

lore
Share & tools
lore
#0 lore raw

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.

---
 devtools/test-meson-builds.sh | 9 +++++++--
 1 file changed, 7 insertions(+), 2 deletions(-)
devtools/test-meson-builds.sh +7 -2
index c2d33b3b9f..c1ff2bb50a 100755
@@ -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
Acked-by on v1 1/1
#1 lore raw
Quoted 5 lines · David Marchand

Installing with ninja is quite verbose by default, hide ninja output under TEST_MESON_BUILD_VERBOSE and TEST_MESON_BUILD_VERY_VERBOSE options.

---

Quoted 26 lines
 devtools/test-meson-builds.sh | 9 +++++++--
 1 file changed, 7 insertions(+), 2 deletions(-)
devtools/test-meson-builds.sh +7 -2
index c2d33b3b9f..c1ff2bb50a 100755
@@ -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
author Applied
#3 lore raw
Quoted 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_VERBOSE and TEST_MESON_BUILD_VERY_VERBOSE options.

---

Applied.

Signature · 1 line
David Marchand