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=k6QVhrhk; dkim-atps=neutral Received: from mail.ozlabs.org (gandalf.ozlabs.org [150.107.74.76]) by passt.top (Postfix) with ESMTPS id C34A55A0275 for ; Thu, 02 Oct 2025 07:04:40 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gibson.dropbear.id.au; s=202508; t=1759381478; bh=ZCUltS1XYdYwazpo0NGhucODjRWHENCheIIqsSRX9bs=; h=From:To:Cc:Subject:Date:From; b=k6QVhrhkB2FD5Wu18rYMYPeo+LtIra+3CWYxWlNo3AcxhyaYL6GINUCJnzmpoq28U HsYAkVPFWCw+HsJoVDAajfVeMw/FvJOu/HZP0HGUnrj0mWGfg/cYzK7PUcKBGKDtLo SKqKmo3OjZCqi0yE+rVzFdphR2nyosNhfZEbFQWOf5BkMIHaLfLMiEL+TmqUsaqv0W 9ANVIGoxeGjhnMaCiY+ywP89QikXEpJNHpxOmKzvP7YYm/4PV85jyOVoGNThpj/1vS zY4Qf3yLVlFdJ6uZxuUyRqeYiDA4OOiURGT9ZHmMF6TAZzJ6kh91xwIy18p3Aqv43g ErH8lqT5t22kg== Received: by gandalf.ozlabs.org (Postfix, from userid 1007) id 4ccfqB4TzXz4w1l; Thu, 2 Oct 2025 15:04:38 +1000 (AEST) From: David Gibson To: Stefano Brivio , passt-dev@passt.top Subject: [PATCH v3 0/6] Test and linter fixups Date: Thu, 2 Oct 2025 15:04:31 +1000 Message-ID: <20251002050437.4175553-1-david@gibson.dropbear.id.au> X-Mailer: git-send-email 2.51.0 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Message-ID-Hash: RAH4K5HFKJS7PSZIJSUSV45BHHCP7CEG X-Message-ID-Hash: RAH4K5HFKJS7PSZIJSUSV45BHHCP7CEG 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: Before starting to convert testcases to use tunbridge, I wanted to add linting for the Python test scripts. While doing that I discovered a new crop of cppcheck and clang-tidy false positives, and a Makefile bug. Here's a batch of fixes. I didn't manage to get through the whole testsuite with this. I keep getting hangs on rampstream_out, which I *think* are unrelated. v3: * Delete mypy's cache on make clean v2: * Actually understood why exetool was being deleted, and fixed it properly. David Gibson (6): clang-tidy: Suppress redundant expression warning cppcheck: Suppress the suppression of a suppression cppcheck: Suppress a buggy cppcheck warning cppcheck: Suppress variable scope warnings in dhcpv6() test: Don't delete exetool on make clean test: Add linting of Python test scripts dhcpv6.c | 8 ++++++++ linux_dep.h | 2 +- tcp.c | 5 +++++ test/Makefile | 20 ++++++++++++++++---- test/build/build.py | 5 +++-- test/build/static_checkers.sh | 6 +++++- vhost_user.c | 1 + 7 files changed, 39 insertions(+), 8 deletions(-) -- 2.51.0