From patchwork Thu Jul 6 09:03:34 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Zhangjin Wu X-Patchwork-Id: 116573 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:9f45:0:b0:3ea:f831:8777 with SMTP id v5csp2419023vqx; Thu, 6 Jul 2023 02:13:17 -0700 (PDT) X-Google-Smtp-Source: APBJJlFt2CZTDIh5r+xZk/vS2Hz+Q1/Dvn+Lr/BIRyidy95tlGPQhx/BSo5WsezIUWaNnV4b6b/R X-Received: by 2002:a05:6358:440e:b0:134:ed86:1a75 with SMTP id z14-20020a056358440e00b00134ed861a75mr1359180rwc.28.1688634796833; Thu, 06 Jul 2023 02:13:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688634796; cv=none; d=google.com; s=arc-20160816; b=s6I1iMtGSsoXy75n4V0CMIV8n1EWwcLk8i75yxof0iBgzAxh5n6a/h/qcgSWzvMgc8 t52pRGV+hj7WcTZUd6aUpz793s9m6IFf/XHpQUCuvOs0ycX42lSghNeYPwQDnEfko5/s rIiobZNefJRfUEUyeczaRYKOHSACa+TSbkeG/X4Lzi/oB48jCB7mKYcGHNE1E7+c2Foo wEhlVqNH5dK+7/ko50ffqMqwLNKlyqT5NDdkCZbzSTztW4IX3vLdRtUDkIOaCaETlUa6 /srPMqzBMuUIvUlVS3mFkKIYlQwkwaQz7jGgWiY+hP0REKo+EjHdq1G3fu/FyABFD18P IcyQ== 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=FZX+9xg1QgMtmmEJcmUKD9NuI1zB3h2BEpuREy7jKhw=; fh=kgRNfNE6xRCHBUX3iUlrLhv5pQPglsdZFzOkxo2Fhpc=; b=JaRGhET1OYQQutM6BZ8+bsjq97IiUu/4Wwoe81nfw6+pxsR7DewH4SKugCpF/C80Ym obBMtBTBFzKLF3QU/nVSq9XG/4uWAs+d51ZR4bIMCKNLayeDRgGKh+dAEwZWROKwWv/a TB0ys+l9Bf6kM8xx6KFDBww72MlvRX45vM+wxwmSNTQpuqSrgFfCKDXobH5i7h5EhFvq RAqN+wu6XBbje8lxct9THiqdtIvo65CJvnBFPTDbjizJJmUJbTpGQin3OtY8Zbgwd0T8 eivsmp1MrQo6MtvKA4M5b+Gx/m5e0SuAl+xqmENbGWDueDI7uCdPh1jupcqz4Q7gpLsM RTtw== 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 v202-20020a6361d3000000b0054fd53f37dcsi1120054pgb.380.2023.07.06.02.13.01; Thu, 06 Jul 2023 02:13:16 -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 S231522AbjGFJHa (ORCPT + 99 others); Thu, 6 Jul 2023 05:07:30 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57406 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229793AbjGFJH1 (ORCPT ); Thu, 6 Jul 2023 05:07:27 -0400 Received: from bg4.exmail.qq.com (bg4.exmail.qq.com [43.155.65.254]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 352AFDB; Thu, 6 Jul 2023 02:07:23 -0700 (PDT) X-QQ-mid: bizesmtp81t1688634431tedi2oin Received: from linux-lab-host.localdomain ( [116.30.131.119]) by bizesmtp.qq.com (ESMTP) with id ; Thu, 06 Jul 2023 17:07:10 +0800 (CST) X-QQ-SSF: 01200000000000D0W000000A0000000 X-QQ-FEAT: PKnEab4175v+t9CqYTAo/O5JuaceUrnTpb45AqS6cHrDzyHh9WlVMKU4Hg/mI Ekyw94GRP2P4lGGTZULGJJ5Hg2zzd3bANHqDruHw4zV9IA+8YXPwa4tOy1QDVZOwDerWXrm 1SiNE6YUekjIgrAcXNvftkWhk4GDBnYMp+8ajIhiRvyQeOIr9+uFcGm+OT7t0skyo91zKKP lAsFkE5jgxOrJ82UGI3iBP6LS8WcBjX2EpHCgeu7MlFoh22YIYIJSnE6JVmMBQvmREop4/4 1DVoeDad4eGPJ97ZfibuQuwDzdeYB/pWXkQ/4t2fpkK+pI0bzBDYYxjhBROice3i0v4XRtg od9CDlJRmD8FXf3+MPZRMG8oECmPlcnfUiCzOC2kErvw1Mcj4w5CvxFUZKyGAGHHkwg+O66 X-QQ-GoodBg: 0 X-BIZMAIL-ID: 8347753171439475927 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 1/5] selftests/nolibc: report: print a summarized test status Date: Thu, 6 Jul 2023 17:03:34 +0800 Message-Id: <3ed850006b76a2ca9a07d30cd82bc881690a7098.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?1770661920818105036?= X-GMAIL-MSGID: =?utf-8?q?1770661920818105036?= one of the test status: success, warning and failure is printed to summarize the passed, skipped and failed values. - "success" means no skipped and no failed. - "warning" means has at least one skipped and no failed. - "failure" means all tests are failed. Suggested-by: Willy Tarreau Link: https://lore.kernel.org/lkml/20230702164358.GB16233@1wt.eu/ Signed-off-by: Zhangjin Wu --- tools/testing/selftests/nolibc/Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tools/testing/selftests/nolibc/Makefile b/tools/testing/selftests/nolibc/Makefile index d408b688b291..84b9a46ad678 100644 --- a/tools/testing/selftests/nolibc/Makefile +++ b/tools/testing/selftests/nolibc/Makefile @@ -85,7 +85,8 @@ 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.\n", p, s, f); \ + END{ printf("%d test(s) passed, %d skipped, %d failed => status: ", 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]); }' help: 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]); }' From patchwork Thu Jul 6 09:10:08 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Zhangjin Wu X-Patchwork-Id: 116576 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:9f45:0:b0:3ea:f831:8777 with SMTP id v5csp2422179vqx; Thu, 6 Jul 2023 02:20:21 -0700 (PDT) X-Google-Smtp-Source: APBJJlHrcmcA9GybtKb7e68+ra4RhWT4GutoVUnxMubcU872S5w/TsjNwMvR6aMsSPSPN+lbqVv2 X-Received: by 2002:a17:903:1247:b0:1b6:6625:d3a8 with SMTP id u7-20020a170903124700b001b66625d3a8mr1528402plh.16.1688635221125; Thu, 06 Jul 2023 02:20:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688635221; cv=none; d=google.com; s=arc-20160816; b=nWNf7Mvk6LCKgHuVD72nNL8K6Ror1FWSZvH8m1PHkPntpPyvVCBaE2Q/Y71LekPtVH rVtPdicZN4Ky1skCZyE8DkngScyP9OhlLa8F+A303akk86NTxe2fiWWfYQ79QTk5YNC/ y0ItISPpgwK4n62cPs/OQi5xLM7NTC6/6K8NeqTOe5BkgrGZOLd58h5Fo0YNfd/jYlJV 98b8WsVGZ4D1fuyoOyA1afXYQwDB3pAK53GG/UVENI54T7/RIE9TG8qBl0Ga5GjEjT02 krl9pLqs5Pj2GtWnLXQALU1wwB5LkEwXw4TbUNN29pOBBxxK6MbRdi3b6rTd60MiZS7x ZF+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=UOhx2BdgGb2OicwVMw0CtcRZ45GkRFF1aa/fErN6iMY=; fh=kgRNfNE6xRCHBUX3iUlrLhv5pQPglsdZFzOkxo2Fhpc=; b=re0aBFXXLYJ31+mhbQPPA65ZM9NMeH88DdteoXYRmIanHwl3QHOFRACkqQ3bP6JvYN ym8jWLFEYRxy3rKYygNaqceQT/jkUeuCEOeJJOgcnUZMh2YKreDnVNMegGeLYXjER54+ /mAK8HCsbLX+k8ebGP0ZePigRxYoERESi3EWO81egLj9RpRIQFbQ4jgGk6iBdQFGA9pt z8Mzu/JiK9kZFoWm77WXL6MhHa7x3ozUzNBZzRGtHxUJ6YMTozyV5RAjS1DMbs1Dnazu 1HibQj8gDa5SmNIhoC7iiv9OxFdl4C7gbsqFPWj2jSbai8RqKHKhfUYJoXH4/JG92kxh ws8w== 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 u5-20020a170902e20500b001b829a32f2dsi840319plb.457.2023.07.06.02.20.04; Thu, 06 Jul 2023 02:20:21 -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 S231867AbjGFJKZ (ORCPT + 99 others); Thu, 6 Jul 2023 05:10:25 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58260 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230159AbjGFJKX (ORCPT ); Thu, 6 Jul 2023 05:10:23 -0400 Received: from bg4.exmail.qq.com (bg4.exmail.qq.com [43.155.65.254]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 76B5EDB; Thu, 6 Jul 2023 02:10:22 -0700 (PDT) X-QQ-mid: bizesmtp80t1688634613ts83xwgr Received: from linux-lab-host.localdomain ( [116.30.131.119]) by bizesmtp.qq.com (ESMTP) with id ; Thu, 06 Jul 2023 17:10:11 +0800 (CST) X-QQ-SSF: 01200000000000D0W000000A0000000 X-QQ-FEAT: znfcQSa1hKZ0tbn8MHp6xFgP1iCflF/1wRHbbM/MX29g0UPfyXKPGv7UuxKRc o+VMYE/xIBRFYN6vNLhFVe25N4UPDV6vCrk5TNaJaQRJPK4UANWpvCMQvmt4xX+IY0r1p5o hFAHSJeAGBUMoaP7tyPaChYBWxv5UXyjaRofqIXHcbOUssCCQX5acT4O1BlJ3JeZgwH7If3 XtzumcHZU61a2mgPs6BbIFukdhH5VKoDPIr2cIeEqnvasg8/8O8bk546SpKWS43woGClCbE 357R8kSWQ+LeRSFMHIlVh/PyZY/ECFXt+VkpwZsUKziVn93RlyBAmoBR4GgO+yUZ43RxH9a MVatrs3slDMmIoTtZ2PyptUL1kDEgK0+5zMQly/izoXLhRVVWeLxwF2T3382A== X-QQ-GoodBg: 0 X-BIZMAIL-ID: 13378550366425220871 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 3/5] selftests/nolibc: report: align passed, skipped and failed Date: Thu, 6 Jul 2023 17:10:08 +0800 Message-Id: <9620a07294e4c099587170e84aba167bf849e841.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?1770662365712997313?= X-GMAIL-MSGID: =?utf-8?q?1770662365712997313?= align the test values for different runs and different architectures. Since the total number of tests is not bigger than 1000 currently, let's align them with "%03d". 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 a02be8b0a569..2c53bf41967b 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): %d passed, %d skipped, %d failed => status: ", p+s+f, p, s, f); \ + END{ printf("%03d test(s): %03d passed, %03d skipped, %03d 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]); }' From patchwork Thu Jul 6 09:11:17 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Zhangjin Wu X-Patchwork-Id: 116577 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:9f45:0:b0:3ea:f831:8777 with SMTP id v5csp2422400vqx; Thu, 6 Jul 2023 02:20:53 -0700 (PDT) X-Google-Smtp-Source: APBJJlFxA6H8NyH1WbArFnRo5xPPQ1qcDNbof7+hTDvoo+qGw9ixD7IQZdILd1iF8tj1s8wRi4Gh X-Received: by 2002:a17:90a:8406:b0:261:1141:b70d with SMTP id j6-20020a17090a840600b002611141b70dmr795735pjn.45.1688635253111; Thu, 06 Jul 2023 02:20:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688635253; cv=none; d=google.com; s=arc-20160816; b=x7xaBS4yqHUN79A8RJimRUZGnJ3LKeoetw9730c2vg3bKrFXnB8Cmh2SKQ11rzcR/i flr6ZGmcKZoacGTywa9xMaWXXBsNn6C9Xxr4hzpkZH9eyqlyXikwpQumsgNW8mJPV2JO czVwZ62jHgtqqSc8+JZ2DmqAPoVmK+quC+W9nfYLL9MWF/JX0QdzXYeCHhWM3nByGHVo 0EbDuyYy4JRKt8F7/nWhkP7HoRh/pFhxNgOmK1tSQJK6gFJQt1bw9jgkxBLPPr606dTV QLnk3Ve9cO1xbLCptr/EgveYUh25TqvxwCIPNFb/9Q7Z5dtjUSQCcMdGCvk0qaKbJUwl Ck4Q== 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=7zOxsL2zDCsrcei7qD9PemrmLV/4Pogqqyq24xizynE=; fh=kgRNfNE6xRCHBUX3iUlrLhv5pQPglsdZFzOkxo2Fhpc=; b=b82h/F3pgRH6mHTd2yVNOTswi7VHWHNwu5Qhwi9U4k/2ATI6QvtQuEKn8AWxEIk3Qa fa52MI1EHX/NcZgGErtSiUY7t1/MSWtE0VvKekX53/jznpZHusgonp+e3Fhs8lHRdOge 5Wc3NBUXS9cqAfIQaliMiqnV6ceFbJ5LL4/b594a/xb15zXCLgTndemXPZmRB+n6JEdT whmfazQGrdarErsePDxiJPwIA6u5ABtLgZ5as2x82Q7mOq6zr7jGfNst3DkaFn0YYv+h 3Up+f0nGnxJvH0tEph0jfB1JQ4rp5cY62nkv8UiSD+JM5b6d5CS0/JqP4GOoli3aqcKg Enyg== 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 bj12-20020a17090b088c00b0025bdaaf0d17si1190652pjb.33.2023.07.06.02.20.38; Thu, 06 Jul 2023 02:20:53 -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 S231902AbjGFJLj (ORCPT + 99 others); Thu, 6 Jul 2023 05:11:39 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58644 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229528AbjGFJLg (ORCPT ); Thu, 6 Jul 2023 05:11:36 -0400 Received: from bg4.exmail.qq.com (bg4.exmail.qq.com [43.155.65.254]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 65484DB; Thu, 6 Jul 2023 02:11:34 -0700 (PDT) X-QQ-mid: bizesmtp80t1688634683tlze7x0a Received: from linux-lab-host.localdomain ( [116.30.131.119]) by bizesmtp.qq.com (ESMTP) with id ; Thu, 06 Jul 2023 17:11:22 +0800 (CST) X-QQ-SSF: 01200000000000D0W000000A0000000 X-QQ-FEAT: 1U/NVTUyJNRxt0P5nSwuMLL2FGvAjGF+dkHW2Y/MJag7QbharIuxgGfpjt2s2 tlCqyBfgiEUyRn4LJfDaZ2WIOF/af919RI9ktDUb7l5FJVo0Ba8w8GVh/l0tQPj1z6QcN8a 1N6nAaSHLzyR5FDxWP56pQimBWiHZCM40Pdv53FIYwzo4yoL2XIzET4qDKsDpHJkLC2xznd VyJF8LRWJedFUt3y/4XngpJkppYB5OGdHjOyFlOPM0xoP0L69LoBxkdXDX8BGhNHayPRN1v QsORCI1YSIqNj8XwlWWlBJvH/mWzEOwwFGR0nEf7/k0cfZCryyZhNXzqpFfCbz2ggWvb+jM aawzVAHqisghajm85ohCE0jA8/AKUKaymEyIHXIb2Dupvf3fA9LzJnsFKv0Jw== X-QQ-GoodBg: 0 X-BIZMAIL-ID: 1037799378191978913 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 4/5] selftests/nolibc: report: extrude the test status line Date: Thu, 6 Jul 2023 17:11:17 +0800 Message-Id: <89f3668f48d01fdac847bdfa085867cb641bad27.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?1770662398923145339?= X-GMAIL-MSGID: =?utf-8?q?1770662398923145339?= two newlines are added around the test summary line to extrude the test status. Signed-off-by: Zhangjin Wu --- tools/testing/selftests/nolibc/Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/testing/selftests/nolibc/Makefile b/tools/testing/selftests/nolibc/Makefile index 2c53bf41967b..10e9e5c1bdd0 100644 --- a/tools/testing/selftests/nolibc/Makefile +++ b/tools/testing/selftests/nolibc/Makefile @@ -85,9 +85,9 @@ 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("%03d test(s): %03d passed, %03d skipped, %03d failed => status: ", p+s+f, p, s, f); \ + END{ printf("\n%03d test(s): %03d passed, %03d skipped, %03d 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]); }' + printf("\nSee all results in %s\n", ARGV[1]); }' help: @echo "Supported targets under selftests/nolibc:" From patchwork Thu Jul 6 09:12:28 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Zhangjin Wu X-Patchwork-Id: 116585 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:9f45:0:b0:3ea:f831:8777 with SMTP id v5csp2426702vqx; Thu, 6 Jul 2023 02:31:02 -0700 (PDT) X-Google-Smtp-Source: APBJJlFNA7ctuZ/Ad+tDx8By4AgaZV9TVmIry+wKYoktGHzDnIGYakR4mAmHfsnU2+fVZyRXcAbi X-Received: by 2002:a05:6a00:3a04:b0:677:c9da:14b0 with SMTP id fj4-20020a056a003a0400b00677c9da14b0mr1010506pfb.32.1688635862522; Thu, 06 Jul 2023 02:31:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688635862; cv=none; d=google.com; s=arc-20160816; b=z08yjzI/LS4GjXVuOo79q+mfTSa13OCqHcxVEi4aIgvUGohLfZaJyNJymr/a8WvRiJ ekwblqereQfah9ZDGnnRH6yMDiN4kv+sgPNnrHRaVAMDNm2GiDWqqGxPC1MzYPR2T4p+ qqYh2SxWkSJxSaRBnmn65gftaKccGbxuvpJQbqjELcmwq4M+BdM+LQZ4/o3B9zbjZ2bL UZWAbD5tj1mcGp23XjdccPgNsbhA+ikBDkV2IdiHZ0KPzYDabdsayauT8D5ChASq3aro rXB/w5EAdK8H2VlztiD/81LqdkIgqdA15t94ZQWrO7V27GvYlD49qfdDeem8ieIcfCU+ nZVQ== 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=nEX0Pq9z2m/l5u0E7KDrOr7wf1tJkYyWEv2z5j2o42g=; fh=kgRNfNE6xRCHBUX3iUlrLhv5pQPglsdZFzOkxo2Fhpc=; b=X0YOZ25M3/rc53eI1h3lrvMmK5gk8VafoXhOSXEmGHO40jBlFzND4FuLrepILO4t+7 ET8/unRoceWUqMpBxvu5CvDGQjmUydDeeiVIVUnipfe3RP6mlJJ1ghGkGNqZX0h5r0yO xe/Q7djfRO4980er0ANil1f/F3dm+Dq0bGJJZ5WLinrtr7Vaiv0o8sDRca0DUGPDtR21 KjPc9vUmogUWPcDrdRlfiIHigBw+nML7JbESJoeHWLZ2MAHs4dzTXgdIh41uexfNjR5z SHdNrDY/QAR1yp+6VgVbmhARS+BUVEPIKGfKnvme5OJKiFUc+EnBBQ2BK8tvR/5wM2jz 1wDQ== 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 ca23-20020a056a00419700b0066a48cbde7asi1033547pfb.190.2023.07.06.02.30.49; Thu, 06 Jul 2023 02:31:02 -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 S231592AbjGFJMy (ORCPT + 99 others); Thu, 6 Jul 2023 05:12:54 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59628 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231492AbjGFJMt (ORCPT ); Thu, 6 Jul 2023 05:12:49 -0400 Received: from bg4.exmail.qq.com (bg4.exmail.qq.com [43.155.65.254]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9D0FA1BD3; Thu, 6 Jul 2023 02:12:46 -0700 (PDT) X-QQ-mid: bizesmtp82t1688634755t8dggjlm Received: from linux-lab-host.localdomain ( [116.30.131.119]) by bizesmtp.qq.com (ESMTP) with id ; Thu, 06 Jul 2023 17:12:34 +0800 (CST) X-QQ-SSF: 01200000000000D0W000000A0000000 X-QQ-FEAT: zW5H9jc4KG4l/DMqLN9WXyfKzcgb9HFj0KUXFkALbSbvd9xbR4isjJVslxBTC WRbeHFlS7pVHtZkY74+edO+7cXK6Pz/vL5wgDHSPAj3U+R6PYeN8Pza4By3MvmOxDrDZwxH idXyhTsJ8k85LBuRoGdNdkNQn9xpWrtlVf4ADs1Z9lIX4mfRbLNbrkISXaLCe2zapniR1WE BwqN6xDSngEemBdfLrMVhjh+hSCRd6l/r9tcYnp6lazn9R5eaGsJzlTr9xDNxNtE8kF+nDC M4iN7TfLE/ReSoGM3mUXDB26rRgqdFGhMffij5I+HPBfTc3aE9NvlxrbtQYRknLhFamntyk jGPzJuRtHkHBbSXy2hYYz9qzCexFRaZWlCT54kx9y9zGjD62RRmoPJSE08ltw== X-QQ-GoodBg: 0 X-BIZMAIL-ID: 17950684982473940166 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 5/5] selftests/nolibc: report: add newline before test failures Date: Thu, 6 Jul 2023 17:12:28 +0800 Message-Id: <38d32aa5c477c45a0802b84926f165f82db103c4.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?1770663038102636683?= X-GMAIL-MSGID: =?utf-8?q?1770663038102636683?= a newline is inserted just before the test failures to avoid mixing the test failures with the raw test log. 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 10e9e5c1bdd0..f5c9c6bf7a19 100644 --- a/tools/testing/selftests/nolibc/Makefile +++ b/tools/testing/selftests/nolibc/Makefile @@ -84,7 +84,7 @@ CFLAGS ?= -Os -fno-ident -fno-asynchronous-unwind-tables -std=c89 \ $(CFLAGS_$(ARCH)) $(CFLAGS_STACKPROTECTOR) LDFLAGS := -s -REPORT ?= awk '/\[OK\][\r]*$$/{p++} /\[FAIL\][\r]*$$/{f++;print} /\[SKIPPED\][\r]*$$/{s++} \ +REPORT ?= awk '/\[OK\][\r]*$$/{p++} /\[FAIL\][\r]*$$/{if (!f) printf("\n"); f++; print;} /\[SKIPPED\][\r]*$$/{s++} \ END{ printf("\n%03d test(s): %03d passed, %03d skipped, %03d failed => status: ", p+s+f, p, s, f); \ if (f) printf("failure\n"); else if (s) printf("warning\n"); else printf("success\n");; \ printf("\nSee all results in %s\n", ARGV[1]); }'