From patchwork Thu Jul 6 09:08:16 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Zhangjin Wu X-Patchwork-Id: 116578 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:9f45:0:b0:3ea:f831:8777 with SMTP id v5csp2422705vqx; Thu, 6 Jul 2023 02:21:38 -0700 (PDT) X-Google-Smtp-Source: APBJJlHmofNrLt9z84hlCfjsrMx+HTR7Wfapw5xAyK/7p90r3K/Fnx3CGPnVdECliX/Vbwm3Dj04 X-Received: by 2002:a05:6a20:96cb:b0:12e:32e2:2645 with SMTP id hq11-20020a056a2096cb00b0012e32e22645mr507378pzc.15.1688635298427; Thu, 06 Jul 2023 02:21:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688635298; cv=none; d=google.com; s=arc-20160816; b=LQS1Q0U5OyRW6ibE3o4BxfRW8Wc/GaH3b01GaG8bVHOzkmlFohmwKu/pBmxrrwmhe3 yyoJPm+tquY5xbJ0YRWK3njgQIbfQPqZeV4f2ZIX0jy6g8jPt5JJD/+mIXDNjNH/ZX4q InmDkj8NuV9tYgVCESKzVm3oo0KmSgVoKTih7a7APvKwKzF+0oIKoVpx4iEGNcjQINvz dqv7gEzbqmfo9ht8m+Pntn2cj9QICnzRU18y4rREhU9ujvu49CpwMMH76SNKjpvVh5d8 tQ+lu64zlYPRdKLfhDfOVcC9m0AgiXHvRgp5NHPKAkxeSN/clC2q82JSX610sPUUDfwZ ut/g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:feedback-id:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from; bh=q95TDDbSjhQVS1qM9YMCe52Ec4clzNErMTfGa/kWn2Y=; fh=kgRNfNE6xRCHBUX3iUlrLhv5pQPglsdZFzOkxo2Fhpc=; b=OrwQ6d2kJ+tLsQBuINWUy98sOkTuYRbi+S6B7FmwrG4PkK3d+oZ8Yq2YKsdvopvwy6 dR5LBlFEcU2mcPrWjFyr15LSL5f/ku4I2boahtVMpo4TvhSJXhNhqasN+9VVUhqgUBhS ptMqn2ywp76zBEi1DIqlS+o2WM7zkpXyqqgt664GjYvhInbnPTgGE4e1DxbWRkQX9C4I SyzPWYg60BGCqRybMYxJmj+Z7U/F/rN4XlQsw1AXz9/ziBexxCQtaqKDMC8Fn+i5+Kee NTX6hDGQ+9nO1p0d5BGLya8JHkuKipxEkn328vtgIge9gr97TssN5phs7cQMk1F7QF7x 45rQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id c28-20020a631c5c000000b005537d2a84fdsi1088986pgm.41.2023.07.06.02.21.23; Thu, 06 Jul 2023 02:21:38 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231851AbjGFJJT (ORCPT + 99 others); Thu, 6 Jul 2023 05:09:19 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57880 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231802AbjGFJJP (ORCPT ); Thu, 6 Jul 2023 05:09:15 -0400 Received: from bg4.exmail.qq.com (bg4.exmail.qq.com [43.155.65.254]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 651921BD6; Thu, 6 Jul 2023 02:09:13 -0700 (PDT) X-QQ-mid: bizesmtp80t1688634544tzw1dfgq Received: from linux-lab-host.localdomain ( [116.30.131.119]) by bizesmtp.qq.com (ESMTP) with id ; Thu, 06 Jul 2023 17:09:02 +0800 (CST) X-QQ-SSF: 01200000000000D0W000000A0000000 X-QQ-FEAT: z3fUwT6ITpvQJtKJFntzr+v2DtfIaW5KgRkd/rkN5GZYpqpEsPysfSUogpnFG UONU+yid/rMV1/tzEJqTV0VAEIyNNoCAFM1TQJR/xQhxcGMQ9XT/kDy+tGEyaTm9JxIKdC+ 31ZSDLlFs6bTJfkakq9xg6wKYtdbqqkRtyL/vgt6YKgsCkR1m0l7WwMGXtS1zANiWEMn/H+ GH8OIkSE6dwEAqYTE/koCzlZmfUPCLK78WQO5SJorwletzGNpgpYIKIIDcTTKv4iHO/Y6UZ RTOJsQi7zwle/SSPN+t5W1v8oDsCwPTSpOph6VIgFBRJ/0CmOdzK64Md6RrktFzIyIYDEt1 K3FyBFczgiPdJR5bKYvAoBwrV0xTfDVstN+pCVT5mCdmGPyCWZhzWExSisB2w== X-QQ-GoodBg: 0 X-BIZMAIL-ID: 12299753033176172041 From: Zhangjin Wu To: w@1wt.eu Cc: falcon@tinylab.org, arnd@arndb.de, linux-kernel@vger.kernel.org, linux-kselftest@vger.kernel.org, thomas@t-8ch.de Subject: [PATCH v1 2/5] selftests/nolibc: report: print total tests Date: Thu, 6 Jul 2023 17:08:16 +0800 Message-Id: <6397c1e3ff7ad95ddf9d12fb429310e57aed8d79.1688633188.git.falcon@tinylab.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: References: MIME-Version: 1.0 X-QQ-SENDSIZE: 520 Feedback-ID: bizesmtp:tinylab.org:qybglogicsvrgz:qybglogicsvrgz5a-1 X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1770662446863080649?= X-GMAIL-MSGID: =?utf-8?q?1770662446863080649?= Let's count and print the total number of tests, now, the data of passed, skipped and failed have the same format. Signed-off-by: Zhangjin Wu --- tools/testing/selftests/nolibc/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/testing/selftests/nolibc/Makefile b/tools/testing/selftests/nolibc/Makefile index 84b9a46ad678..a02be8b0a569 100644 --- a/tools/testing/selftests/nolibc/Makefile +++ b/tools/testing/selftests/nolibc/Makefile @@ -85,7 +85,7 @@ CFLAGS ?= -Os -fno-ident -fno-asynchronous-unwind-tables -std=c89 \ LDFLAGS := -s REPORT ?= awk '/\[OK\][\r]*$$/{p++} /\[FAIL\][\r]*$$/{f++;print} /\[SKIPPED\][\r]*$$/{s++} \ - END{ printf("%d test(s) passed, %d skipped, %d failed => status: ", p, s, f); \ + END{ printf("%d test(s): %d passed, %d skipped, %d failed => status: ", p+s+f, p, s, f); \ if (f) printf("failure\n"); else if (s) printf("warning\n"); else printf("success\n");; \ printf("See all results in %s\n", ARGV[1]); }'