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=o1IS8Hxt; dkim-atps=neutral Received: from mail.ozlabs.org (gandalf.ozlabs.org [150.107.74.76]) by passt.top (Postfix) with ESMTPS id A8EB35A027A for ; Thu, 04 Sep 2025 04:50:08 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gibson.dropbear.id.au; s=202508; t=1756954205; bh=TtvqklaO2Ia/RxJ4DgY30SAXIJuEWJj3VeC3qd1ms5A=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=o1IS8HxtvBEVqLWDJCsj45b+1peu6r9I28f3wyLAP1LzYV0egIjkXCwOTg0cUXVaD OksHJWEjR8gkHek1S+2sm4c4N0VHijkVww17zPd8+55K/Gweuj7n9XYgzxfNYvjHrL 1csThywtw1VBTVHlG+3DJGhHYdhQpaJ5QJn8rXJCd8GaI9SoPM5RmUE66/+u7ZP9U6 sh+vbwPwYGGPRhe3UVStYdTs/9BMEb+pxiSuQocfmc/szMz25z0qsFEqnPSFBJ2kdc Ws1Ye+cb1lcjZ9r3RPnczJshrWPllT/Vd/ddJkv0kiFD7NwEh2x3PIolcQO0iHvW9G 2sM2sMwKGyH5g== Received: by gandalf.ozlabs.org (Postfix, from userid 1007) id 4cHP8s5bZRz4wB1; Thu, 4 Sep 2025 12:50:05 +1000 (AEST) From: David Gibson To: Stefano Brivio , passt-dev@passt.top Subject: [PATCH v7 2/4] test: Run static checkers as exeter tests Date: Thu, 4 Sep 2025 12:50:02 +1000 Message-ID: <20250904025004.491185-3-david@gibson.dropbear.id.au> X-Mailer: git-send-email 2.51.0 In-Reply-To: <20250904025004.491185-1-david@gibson.dropbear.id.au> References: <20250904025004.491185-1-david@gibson.dropbear.id.au> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Message-ID-Hash: Z7SS5NP3F6QTLJWKV4L27RNNEMUGXE43 X-Message-ID-Hash: Z7SS5NP3F6QTLJWKV4L27RNNEMUGXE43 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 | 26 ++++++++++++++++++++++++++ test/run | 3 +-- 4 files changed, 27 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..42806e79 --- /dev/null +++ b/test/build/static_checkers.sh @@ -0,0 +1,26 @@ +#! /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 + +exeter_register cppcheck make -C .. cppcheck +exeter_set_description cppcheck "passt sources pass cppcheck" + +exeter_register clang_tidy make -C .. clang-tidy +exeter_set_description clang_tidy "passt sources pass 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.51.0