Skip to contentSkip to conversation

devtools: allow to skip some build tests

PATCH In review Thomas Monjalon 1 participant 2 messages May 3, 2021 – Aug 8, 2021 Arm/Amlogic Meson SoC support

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 devtools: allow to skip some build tests

Inserting "return 1" in .develconfig file will allow to skip some build tests based on $DPDK_TARGET or other parameters.

---
 devtools/test-meson-builds.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
devtools/test-meson-builds.sh +1 -1
index daf817ac3e..d68d0e356e 100755
@@ -87,7 +87,7 @@ load_env () # <target compiler>
 	fi
 	echo "Using DPDK_TARGET $DPDK_TARGET" >&$verbose
 	# config input: $DPDK_TARGET
-	. $srcdir/devtools/load-devel-config
+	. $srcdir/devtools/load-devel-config || return 1
 	# config output: $DPDK_MESON_OPTIONS, $PATH, $PKG_CONFIG_PATH, etc
 	command -v $targetcc >/dev/null 2>&1 || return 1
 }
Signature · 1 line
2.31.1
#1 lore raw

03/05/2021 16:46, Thomas Monjalon:

Quoted 6 lines

Inserting "return 1" in .develconfig file will allow to skip some build tests based on $DPDK_TARGET or other parameters.

---

devtools/test-meson-builds.sh load_env () # <target compiler> · line 93

Quoted 8 lines
devtools/test-meson-builds.sh +1 -1
@@ -87,7 +87,7 @@ load_env () # <target compiler>
 	fi
 	echo "Using DPDK_TARGET $DPDK_TARGET" >&$verbose
 	# config input: $DPDK_TARGET
-	. $srcdir/devtools/load-devel-config
+	. $srcdir/devtools/load-devel-config || return 1
 	# config output: $DPDK_MESON_OPTIONS, $PATH, $PKG_CONFIG_PATH, etc
 	command -v $targetcc >/dev/null 2>&1 || return 1
 }

This technique does not work,
and it is possible to skip a build test
by inserting targetcc=SKIP in the development config file.