From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: passt.top; dmarc=none (p=none dis=none) header.from=gibson.dropbear.id.au Authentication-Results: passt.top; dkim=pass (2048-bit key; secure) header.d=gibson.dropbear.id.au header.i=@gibson.dropbear.id.au header.a=rsa-sha256 header.s=202508 header.b=jliqdQxQ; dkim-atps=neutral Received: from mail.ozlabs.org (mail.ozlabs.org [IPv6:2404:9400:2221:ea00::3]) by passt.top (Postfix) with ESMTPS id A05635A027C for ; Wed, 20 Aug 2025 12:55:03 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gibson.dropbear.id.au; s=202508; t=1755687300; bh=JJCCEsvpsuRcMDaIcbjSVErQYIo++GTxRDpDqWvXw9Q=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=jliqdQxQKwtB/4dvQbPtpO4CrahNLtMKcMi1tWM5J2e/ZA2JbnbPw23cWiIlmfp91 UnzP2hepX2trTZaskbgjsrXnZgXJzW+anXs+5Nl3rcyTuP0BbSOSvXLnyARKv6v76I KZ5tE7jS7nHhFgFqJCGLx06YLeuoQILLKkx9yYJUftmt1MCMTPbns8WvCinlDz0cP5 OaTL0om2n/++aob3SYZqItvG3POiMf8XuKGp6D92HFVKbkQYT/Eg58cKIek8wy36tK B46JkaiLSGOYE/VYcDaZLozl0xAYfRI2FQJEdu7rxAMIhUsCuGR7Kq1TffRUjYIkR5 MzYETGuS+722A== Received: by gandalf.ozlabs.org (Postfix, from userid 1007) id 4c6NdJ2dQrz4xQP; Wed, 20 Aug 2025 20:55:00 +1000 (AEST) From: David Gibson To: Stefano Brivio , passt-dev@passt.top Subject: [PATCH v5 2/4] test: Run static checkers as exeter tests Date: Wed, 20 Aug 2025 20:54:54 +1000 Message-ID: <20250820105456.1281906-3-david@gibson.dropbear.id.au> X-Mailer: git-send-email 2.50.1 In-Reply-To: <20250820105456.1281906-1-david@gibson.dropbear.id.au> References: <20250820105456.1281906-1-david@gibson.dropbear.id.au> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Message-ID-Hash: XOQVRT6QV3IO4QHVOJ2BJUFJ7OJFQ5MD X-Message-ID-Hash: XOQVRT6QV3IO4QHVOJ2BJUFJ7OJFQ5MD X-MailFrom: dgibson@gandalf.ozlabs.org X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header CC: David Gibson X-Mailman-Version: 3.3.8 Precedence: list List-Id: Development discussion and patches for passt Archived-At: Archived-At: List-Archive: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: Move the static checkers from the current DSL to exeter. Signed-off-by: David Gibson --- test/build/clang_tidy | 17 ----------------- test/build/cppcheck | 17 ----------------- test/build/static_checkers.sh | 30 ++++++++++++++++++++++++++++++ test/run | 3 +-- 4 files changed, 31 insertions(+), 36 deletions(-) delete mode 100644 test/build/clang_tidy delete mode 100644 test/build/cppcheck create mode 100755 test/build/static_checkers.sh diff --git a/test/build/clang_tidy b/test/build/clang_tidy deleted file mode 100644 index 40573bfd..00000000 --- a/test/build/clang_tidy +++ /dev/null @@ -1,17 +0,0 @@ -# SPDX-License-Identifier: GPL-2.0-or-later -# -# PASST - Plug A Simple Socket Transport -# for qemu/UNIX domain socket mode -# -# PASTA - Pack A Subtle Tap Abstraction -# for network namespace/tap device mode -# -# test/build/clang_tidy - Run source through clang-tidy(1) linter -# -# Copyright (c) 2021 Red Hat GmbH -# Author: Stefano Brivio - -htools clang-tidy - -test Run clang-tidy -host make clang-tidy diff --git a/test/build/cppcheck b/test/build/cppcheck deleted file mode 100644 index 0e1dbced..00000000 --- a/test/build/cppcheck +++ /dev/null @@ -1,17 +0,0 @@ -# SPDX-License-Identifier: GPL-2.0-or-later -# -# PASST - Plug A Simple Socket Transport -# for qemu/UNIX domain socket mode -# -# PASTA - Pack A Subtle Tap Abstraction -# for network namespace/tap device mode -# -# test/build/cppcheck - Run source through cppcheck(1) linter -# -# Copyright (c) 2021 Red Hat GmbH -# Author: Stefano Brivio - -htools cppcheck - -test Run cppcheck -host make cppcheck diff --git a/test/build/static_checkers.sh b/test/build/static_checkers.sh new file mode 100755 index 00000000..e6e1e729 --- /dev/null +++ b/test/build/static_checkers.sh @@ -0,0 +1,30 @@ +#! /bin/sh +# +# SPDX-License-Identifier: GPL-2.0-or-later +# +# PASST - Plug A Simple Socket Transport +# for qemu/UNIX domain socket mode +# +# PASTA - Pack A Subtle Tap Abstraction +# for network namespace/tap device mode +# +# test/build/static_checkers.sh - Run static checkers +# +# Copyright Red Hat +# Author: David Gibson + +. $(dirname $0)/../exeter/sh/exeter.sh + +cppcheck () { + make -C .. cppcheck +} +exeter_register cppcheck + +clang_tidy () { + make -C .. clang-tidy +} +exeter_register clang_tidy + +exeter_main "$@" + + diff --git a/test/run b/test/run index 745a09fa..9e26952c 100755 --- a/test/run +++ b/test/run @@ -69,11 +69,10 @@ run() { [ ${CI} -eq 1 ] && video_start ci exeter smoke/smoke.sh + exeter build/static_checkers.sh setup build test build/all - test build/cppcheck - test build/clang_tidy teardown build setup pasta -- 2.50.1