Received: by 2002:a05:7412:419a:b0:f3:1519:9f41 with SMTP id i26csp1207955rdh; Fri, 24 Nov 2023 07:22:45 -0800 (PST) X-Google-Smtp-Source: AGHT+IGqp7XoI5nNfiiZvzkw/lwfggsK1xtX9pnhEK5WMjM9DL8oYRePT0LF58xXO3v8+ldacEZw X-Received: by 2002:a17:90b:1e47:b0:27d:420:7b34 with SMTP id pi7-20020a17090b1e4700b0027d04207b34mr3397175pjb.37.1700839364334; Fri, 24 Nov 2023 07:22:44 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700839364; cv=none; d=google.com; s=arc-20160816; b=LtGUk7leylUx1ubJNY0kj69pPuzycxudtCh2z2FkMkkHrSlgrk1+gp2dKmTHmf/fol w6efSS/L9npt2+P4BErhgF3VWEA2oqbqoWIZHonT7ntbV8nVJpxKoAx34Dcvr2sP8ydX e7oXiCr289871LQhxqxPPVHGW1LFUq9x4Jd9YjatVorpSm3nfxGlOT+1XSaSgU6Ghlva h7Wn4LwYXrxzgEhYJSh0ZhC8njS2KPKFw9ChPCUchh57isqKlcuPfgm8BWJWXPXnZx5T h3TCYgsC/D/1vo8QNyng3fl1xPA1eo1Mbldm7e0QNoIQCBDQ1jxjumqvdooNrnVTSxVO PctA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:message-id:content-transfer-encoding :mime-version:subject:date:from:dkim-signature; bh=4aJ3Tjnm+J/aP1EGkK+K+x0EO7q7QpjRfICJSRurab4=; fh=NV4WoD5lmKZeVMGiCvPuc5fRgKl9gJAeLk9L4BmvLGQ=; b=ceeFsZjA5bN4FG6olIeaYBR68d9FtXwlaEmBi/OYnTq+FSkbZPO+9YuzTO+2jjCCXl Kjq0afS1DwwwWJW9WmJpFT8+qMpNG33m+i11tJDQTGzQEJBPdcn09Mcw60kuvZjkYIwj u0t5o7ETRLJrhXTAelCTObztzSULhaDiSV+lGBCT75xoClaJOgjVUoHxXTNnvuqEezSI wFVjkevjV4xv41yRHcDg42+cWkysIbcKy8Q1BsUq1XYEk21+N9XIvda+dF3zQuiHTLh5 FPsxI/Xem/hBM/PP9dSkWetwqyKH1pZaue1XFiJ8eQJOe+8oQ+/TzOFYcXi3nkiBu416 uK4A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=tP47FDox; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from pete.vger.email (pete.vger.email. [2620:137:e000::3:6]) by mx.google.com with ESMTPS id bz42-20020a056a02062a00b005c219415020si3744206pgb.262.2023.11.24.07.22.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 24 Nov 2023 07:22:44 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) client-ip=2620:137:e000::3:6; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=tP47FDox; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by pete.vger.email (Postfix) with ESMTP id D2A8E80BC135; Fri, 24 Nov 2023 07:22:40 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at pete.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345717AbjKXPWZ (ORCPT + 99 others); Fri, 24 Nov 2023 10:22:25 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59110 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1345599AbjKXPWY (ORCPT ); Fri, 24 Nov 2023 10:22:24 -0500 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EBBDC171D for ; Fri, 24 Nov 2023 07:22:30 -0800 (PST) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 20744C433C8; Fri, 24 Nov 2023 15:22:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1700839350; bh=eOmzk2kjD2qGLqrF6Q6BvgazwN+efxPGwLtAu031LrQ=; h=From:Date:Subject:To:Cc:From; b=tP47FDox6zvAd0CAisIZRgXBpQCvZESDI7nmtsqnX5rpS9X14SPmYq3DKU9hGYYpy WBKHLU1KG6r+IYhrBRvY2i7ay6+aTe3qh/l6d0vQHg2GkRJniyEDu23gp/sUsQtFnZ niUdeGlNbe8iOsrI0Q69m3LRBHTzoJnXx7yiFekJgMHx/WYSw4sx4E1R6fi7Yfsela QtaRYn9x9yWujw8qHgwyv0Kmzy6MAUHxAMvI0W5aY8y7uUezDwfXY0rxOOuffRJ9Ez RqmQzrwBdGEL5FvBUrXxTMxI/+m56CT06eclwqPywdjOU5exVi3wqechoNNDsPp6bT ntcEpiE3lLj+w== From: Mark Brown Date: Fri, 24 Nov 2023 15:22:21 +0000 Subject: [PATCH] kselftest/arm64: Improve output for skipped TPIDR2 ABI test MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20231124-kselftest-arm64-tpidr2-skip-v1-1-e05d0ccef101@kernel.org> X-B4-Tracking: v=1; b=H4sIAKy/YGUC/x3MQQqEMAxA0atI1gZsGxTmKoML0VSDjlOSIoJ4d 4vwN2/zLzBWYYNPdYHyISb/vcDVFYzLsM+MMhWDb3xwzhOuxlvMbBkH/bWEOcmkHm2VhBS6liL FEkE5JOUo53v/9vf9AMcLRtZtAAAA To: Catalin Marinas , Will Deacon , Shuah Khan Cc: linux-arm-kernel@lists.infradead.org, linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org, Mark Brown X-Mailer: b4 0.13-dev-0438c X-Developer-Signature: v=1; a=openpgp-sha256; l=1888; i=broonie@kernel.org; h=from:subject:message-id; bh=eOmzk2kjD2qGLqrF6Q6BvgazwN+efxPGwLtAu031LrQ=; b=owEBbQGS/pANAwAKASTWi3JdVIfQAcsmYgBlYL+yR76ZEEXIOFVMLt4fDAAXcrbLJgL1eipot DPjYuPlK9eJATMEAAEKAB0WIQSt5miqZ1cYtZ/in+ok1otyXVSH0AUCZWC/sgAKCRAk1otyXVSH 0OiIB/480+RDhxLSMZRDkXaICXSlMATxrxDQzBvISYnkBsX9mAimgnYPxYSvswfOuVOSNptdQUL YSu/myNZqWhILtJrob4ms7vuGMDaT4+6b4sbeyKNpxwSRPM1q/DR083SZrJDFtn2dO/UGpK/HRo siI831FLOYphc7jzTgNqh9+NDtkor31dauF4UydCccFKiNVv5ckAzjCh3kO/XUDOlglNbRv2ZQI Qr/C1EHYMfPhCBLsWAlQJ+ZzydqhYs5PZIaFehUHlHuhuayaXJcOylB5DzCiqaoUhkBt88uO8pN riuyMfH7wY2q8X0J+L2s6pndHqVNNTPI5GHmtFsjZX8uo2aA X-Developer-Key: i=broonie@kernel.org; a=openpgp; fpr=3F2568AAC26998F9E813A1C5C3F436CA30F5D8EB X-Spam-Status: No, score=-1.2 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on pete.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (pete.vger.email [0.0.0.0]); Fri, 24 Nov 2023 07:22:41 -0800 (PST) When TPIDR2 is not supported the tpidr2 ABI test prints the same message for each skipped test: ok 1 skipped, TPIDR2 not supported which isn't ideal for test automation software since it tracks kselftest results based on the string used to describe the test. This is also not standard KTAP output, the expected format is: ok 1 # SKIP default_value Updated the program to generate this, using the same set of test names that we would run if the test actually executed. Signed-off-by: Mark Brown --- tools/testing/selftests/arm64/abi/tpidr2.c | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) diff --git a/tools/testing/selftests/arm64/abi/tpidr2.c b/tools/testing/selftests/arm64/abi/tpidr2.c index 351a098b503a..02ee3a91b780 100644 --- a/tools/testing/selftests/arm64/abi/tpidr2.c +++ b/tools/testing/selftests/arm64/abi/tpidr2.c @@ -254,6 +254,12 @@ static int write_clone_read(void) putnum(++tests_run); \ putstr(" " #name "\n"); +#define skip_test(name) \ + tests_skipped++; \ + putstr("ok "); \ + putnum(++tests_run); \ + putstr(" # SKIP " #name "\n"); + int main(int argc, char **argv) { int ret, i; @@ -283,13 +289,11 @@ int main(int argc, char **argv) } else { putstr("# SME support not present\n"); - for (i = 0; i < EXPECTED_TESTS; i++) { - putstr("ok "); - putnum(i); - putstr(" skipped, TPIDR2 not supported\n"); - } - - tests_skipped += EXPECTED_TESTS; + skip_test(default_value); + skip_test(write_read); + skip_test(write_sleep_read); + skip_test(write_fork_read); + skip_test(write_clone_read); } print_summary(); --- base-commit: 98b1cc82c4affc16f5598d4fa14b1858671b2263 change-id: 20231124-kselftest-arm64-tpidr2-skip-43764f4ff4f4 Best regards, -- Mark Brown