From b5e9946227ceb0885199537c362dbddb89220d66 Mon Sep 17 00:00:00 2001 From: Martin Roth Date: Sat, 19 Nov 2022 16:41:18 -0700 Subject: util/testing: Add scanbuild test build to what-jenkins-does This tests building a single target with scanbuild so to make sure that option hasn't been broken. Since it's a different type of build, it hasn't previously been tested with what-jenkins-does. Signed-off-by: Martin Roth Change-Id: I8a74dac203f4d38c0cb30a0b64724e6f9095b9dd Reviewed-on: https://review.coreboot.org/c/coreboot/+/69861 Tested-by: build bot (Jenkins) Reviewed-by: Arthur Heymans --- util/testing/Makefile.inc | 2 ++ 1 file changed, 2 insertions(+) (limited to 'util') diff --git a/util/testing/Makefile.inc b/util/testing/Makefile.inc index f6bd20b851..ea35851d25 100644 --- a/util/testing/Makefile.inc +++ b/util/testing/Makefile.inc @@ -109,6 +109,7 @@ test-lint: util/lint/lint lint-extended $(JUNIT) test-abuild: + NAME=scanbuild; SCANBUILD_ARGS='-k -plist-html -maxloop 10' util/abuild/abuild -o $(COREBOOT_BUILD_DIR)/$${NAME} $(ABUILD_OPTIONS) -scan-build --target EMULATION_QEMU_X86_Q35 --exitcode --name $${NAME} NAME=gcc-chromeos; util/abuild/abuild -o $(COREBOOT_BUILD_DIR)/$${NAME} $(ABUILD_OPTIONS) -x --name $${NAME} NAME=gcc; util/abuild/abuild -o $(COREBOOT_BUILD_DIR)/$${NAME} $(ABUILD_OPTIONS) --name $${NAME} NAME=clang-chromeos; util/abuild/abuild -o $(COREBOOT_BUILD_DIR)/$${NAME} $(ABUILD_OPTIONS) -L -x --name $${NAME} @@ -143,6 +144,7 @@ test-tools: test-cleanup: rm -rf $(COREBOOT_BUILD_DIR)/chromeos $(COREBOOT_BUILD_DIR)/default rm -rf $(COREBOOT_BUILD_DIR)/chromeos-clang $(COREBOOT_BUILD_DIR)/default-clang + rm -rf $(COREBOOT_BUILD_DIR)/scanbuild $(MAKE) clean $(foreach tool, $(TOOLLIST), $(MAKE) -C util/$(tool) clean ; ) $(MAKE) -C src/soc/nvidia/tegra124/lp0 clean -- cgit v1.2.3