From patchwork Thu Sep 28 14:38:10 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mark Brown X-Patchwork-Id: 13403169 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id 79D0CE732DB for ; Thu, 28 Sep 2023 14:38:28 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id E2E788D00B1; Thu, 28 Sep 2023 10:38:27 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id DB7AD8D0023; Thu, 28 Sep 2023 10:38:27 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id C329A8D00B1; Thu, 28 Sep 2023 10:38:27 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0013.hostedemail.com [216.40.44.13]) by kanga.kvack.org (Postfix) with ESMTP id B41858D0023 for ; Thu, 28 Sep 2023 10:38:27 -0400 (EDT) Received: from smtpin28.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay09.hostedemail.com (Postfix) with ESMTP id 8C99F8035E for ; Thu, 28 Sep 2023 14:38:27 +0000 (UTC) X-FDA: 81286261854.28.F266B40 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by imf26.hostedemail.com (Postfix) with ESMTP id C3C2F140015 for ; Thu, 28 Sep 2023 14:38:25 +0000 (UTC) Authentication-Results: imf26.hostedemail.com; dkim=pass header.d=kernel.org header.s=k20201202 header.b=m7zBIduf; spf=pass (imf26.hostedemail.com: domain of broonie@kernel.org designates 139.178.84.217 as permitted sender) smtp.mailfrom=broonie@kernel.org; dmarc=pass (policy=none) header.from=kernel.org ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1695911905; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:in-reply-to: references:dkim-signature; bh=NsxXveNcw8kf5OryIM22y4m7FSoVIiMCoieN12tq72w=; b=v+gNlihFDU0p4UJk9XTwm2c6AA7+DN7hcUVlLycQ183SJ+ytY7eDLeGcwPduqpg03FOWuT mJwmAIM4jOGiMBuF16zqZWXyn67Gz/lh34pRW5rX/UUgdpbx1aBzZN3i5/6HT+mB2cQrIt gqJKvFCDIwNhWrZCWSwylzUJVZaQw7k= ARC-Authentication-Results: i=1; imf26.hostedemail.com; dkim=pass header.d=kernel.org header.s=k20201202 header.b=m7zBIduf; spf=pass (imf26.hostedemail.com: domain of broonie@kernel.org designates 139.178.84.217 as permitted sender) smtp.mailfrom=broonie@kernel.org; dmarc=pass (policy=none) header.from=kernel.org ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1695911905; a=rsa-sha256; cv=none; b=jDHBbCeRnJnZJor5G5Avt0yrULnSv+voByfM2Fi//hUrq/Ongy5OvhoNsAEBPvEkVvdsvj i511MPymzEq0j9Na+6zyvkkPG/zsp+fOxRme8vOM0doJ8mkqBn5Pbdzr3p9pH6BrHDI/0n WqfbEdf54g7U3StoV52RcxM15WiPivY= Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by dfw.source.kernel.org (Postfix) with ESMTP id B0C3361C3C; Thu, 28 Sep 2023 14:38:24 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 18154C433C9; Thu, 28 Sep 2023 14:38:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1695911904; bh=aPoflz+0XfSplhDFdzkyq96yM+hmFL9PxAktgAzpKrM=; h=From:Subject:Date:To:Cc:From; b=m7zBIdufiFVl5zubjwGpmDbW86rNAggbRxyuoC/LLwpqLkV8ojvPCJPNIoNB3113V KWVkDapZkQuur/R9uWXYmhQ5qIti8OXN7aeoNQVeRAEl2dC9eWE5agCHidNC5oAQw1 YIr4HG+6gyDf5EBvwx/DFX23yseGaFFLSgQXPD4Of+YTmVoZGT61w02I1clPZFyMnR zPWoqDZOhLPcqM3X/uHdGLamim01BFq3sFaKiW7z/nnaqvTiCKrcokqEaLy0amXe/t wwFcniYEqrA451XMT9corveqxFzHxM7dKv9KhID9LAiAGcEvyHOR4wEjJAOJkLwXgN NoOd6rT2Rey+Q== From: Mark Brown Subject: [PATCH 0/2] kselftest/exec: Convert execveat test to KTAP output Date: Thu, 28 Sep 2023 16:38:10 +0200 Message-Id: <20230928-ktap-exec-v1-0-1013a2db0426@kernel.org> MIME-Version: 1.0 X-B4-Tracking: v=1; b=H4sIANKPFWUC/6tWKk4tykwtVrJSqFYqSi3LLM7MzwNyDHUUlJIzE vPSU3UzU4B8JSMDI2MDSyML3eySxALd1IrUZF0T09REixQjC6B4ohJQfUFRalpmBdis6NjaWgA RqwF3WwAAAA== To: Shuah Khan , Eric Biederman , Kees Cook Cc: linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org, linux-mm@kvack.org, Mark Brown X-Mailer: b4 0.13-dev-099c9 X-Developer-Signature: v=1; a=openpgp-sha256; l=1159; i=broonie@kernel.org; h=from:subject:message-id; bh=aPoflz+0XfSplhDFdzkyq96yM+hmFL9PxAktgAzpKrM=; b=owEBbQGS/pANAwAKASTWi3JdVIfQAcsmYgBlFY/dWFG8FGxG/6v4U0PpZeohtnjTM31BrEZdB icnAQTOAZKJATMEAAEKAB0WIQSt5miqZ1cYtZ/in+ok1otyXVSH0AUCZRWP3QAKCRAk1otyXVSH 0FyRB/0QZYXfur9oxSKrnSls6vqeoaiQUVX6WpdZ11nd7MA76sipOPl3/VPOBzs2DKNihLWVoXi knxP/hr9ScazTYOeUMsLjuZYRwkZuT2khR8HyQ5EA+WdHEP5rzCXsrXk66ex6OzCPo63KPwkWVs kGZiEf4y2hYRiLwcOb+U0cjHTCXz7/vavUMG2IMflBhLEoZEoWkNhaR8PnzrApYbtyKw/RWy31I u5hqkArOq4AS3qGVmZEvyvisumBlhs6knClvutQjMqP7GiMm4cmsIvjqrpMWaPRTIzznurqU4dP AHUuvsiX4v2v4t5YeukdEncGuv2yXghwoTTwIZBtyDRl63ME X-Developer-Key: i=broonie@kernel.org; a=openpgp; fpr=3F2568AAC26998F9E813A1C5C3F436CA30F5D8EB X-Rspamd-Queue-Id: C3C2F140015 X-Rspam-User: X-Stat-Signature: fkobwyeadx3ncgaz9kugz7ky5bndkcbd X-Rspamd-Server: rspam01 X-HE-Tag: 1695911905-598256 X-HE-Meta: U2FsdGVkX18iUm5kL77P9RN+MibMk3CQpBcDOppxYnf2ypC4bSz+auH4syNfNtKIwiHgGCcOPEGnQNDMJ0xRcHfENgGceJ6Uui+CgF0mXbBZiNtXSEmouDrt9/Ns8qleWpfYqj9YTieSWV8pWN0Iupap7pVu6PQ8F1W8tphsjE3+WDTNF9AMR6Z8v4gAdjmUo4H6+CeGsye05scdCr0hd23rnazL0Irr7APgYWIN7WOc2GENL2i06Zgl6uQHe1BvCkg7rXNFmDx3v7mZU3KLcG3c1m+Sp4aGotOTPSNG3bA3tBUZ/I0F3QvqvJVMXrtP4rcD9iOkSGUrHI1EyxRYUcZ3IZWxFnDKxzSlYExQEptD/BVYQPKGts6EpEYhblbLPhtQTO8U1nZjnanFeR/y7g79s4sNPB1M7JtRKSfrPhZXR6+USEAR+49SdKYt8skLC0g2l0rGMWIbTMX/dL/x5xtFEAUPmBVa0eaX2ehNQcMBMx4wlsRtvtaDG/iQMlL1fujM4jU5BPDAFnNiCpxinLku2beYNrYLsWzwTltqQZ9nqBXG2ViQSaRQi82rpN9tqQly3e/+i56TFVwj5BEROnIze2PNiVbAiGUftWBy34904lB9Wq9zpO/XyQ6FDYHUQtsxI+PVHmrliWG6xhMTtEBeeQ4IdTpiOMGDkXuo5gDjhu//r0AibbEgXKbB8jZ50ETof0qiMYojX0FGxvdXTO3Ybremi6UTRJ3UrWAmMqvJDxuoXw77YnFUM4fNk+XAWuK3ppfC/ijexA9yX4OPCKA44zPubkevE23+kmZIOToxNJe0kRXKJDIsRwu0tOMA2Jx/cJKVq9ZVkIMCvqbNTvqsg/1EjhS33dv0HJXDSUUGIkyelrPplY6pMR7h7j5zbnytms1dL7StpIKCW/GZrErRMgjX5qNMoppUAIG3GmlEOp0F414bdSDPAcdKnjc3g0aWtMihybFDGz7Po5y Z7BIcJrD yKnp8ZClTbwJyWWGgHTi1ENrcpQUn8Udlyf2XILbD6/kDe9HOm1Lo4TE/jBP13sdg7zNoqmFgRYbFy0DlHcY+tpNoFN92T6WnDojJ0zBtZFPSAZw3xG0tYGE+CZfcuRtfb2p+KF0znYJ0PeBxkqptLWhApR0w1YuS6l5tR4f0QgqyjG1R0O0aNoX7DHC1prgn6KNkEYq+ZObNEe/QC0UhWdlmddcm8HBZk4748j2JShjALO+VTaSRJrrL8dZRG/GscBdv X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: This series converts the execveat test to generate KTAP output so it plays a bit more nicely with automation, KTAP means that kselftest runners can track the individual tests in the suite rather than just an overall pass/fail for the suite as a whole. The first patch adding a perror() equivalent for kselftest was previously sent as part of a similar conversion for the timers tests: https://lore.kernel.org/linux-kselftest/8734yyfx00.ffs@tglx/T there's probably no harm in applying it twice or possibly these should both go via the kselftest tree - I'm not sure who usually applies timers test changes. Signed-off-by: Mark Brown --- Mark Brown (2): kselftest: Add a ksft_perror() helper selftests/exec: Convert execveat test to generate KTAP output tools/testing/selftests/exec/execveat.c | 87 ++++++++++++++++++++------------- tools/testing/selftests/kselftest.h | 14 ++++++ 2 files changed, 66 insertions(+), 35 deletions(-) --- base-commit: 6465e260f48790807eef06b583b38ca9789b6072 change-id: 20230928-ktap-exec-45ea8d28309a Best regards,