Message ID | 835e118943d257b7a83066fb4fb77c0e5cf71534.1685936428.git.falcon@tinylab.org |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:994d:0:b0:3d9:f83d:47d9 with SMTP id k13csp2446352vqr; Sun, 4 Jun 2023 21:25:16 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ642ScTMb2dj/v7FJkUdpxDBcDJcWRNDRIPUkgpjVsXUUa4H6m/zRZM0BupdUK9iBqRXE/Q X-Received: by 2002:a05:6358:611b:b0:129:bf53:b892 with SMTP id 27-20020a056358611b00b00129bf53b892mr245134rws.22.1685939115912; Sun, 04 Jun 2023 21:25:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685939115; cv=none; d=google.com; s=arc-20160816; b=iOx7mrAb4t7gU8GjbepId/xeZT4onY6VoNSRGZfBy5HyGydspdnKr8WadBl9ZvUe6Z d2V89ytPuuX9IGed4A8dsqgG6FeoEKb/0UdZMUQKN6wIbJMrAuGRE2OWVKk7F27r5hvx shFig7ORaKm8sCrV1qCOGH8aO42RHBYkpPHCm8wsoaxzFLiwNpD7aZCPhMnbtD3/b90Y Y2VlwjsosgHtAuPhnzV2ZEb3qQUcS4D7XfS3VfrbP8HNwcom5m7mr3U1dIgXuFAu62WW p/AVUxIulwxfoB6VfO7YWX/ORX9eKEFxhq0G88aGYwdu2rpsUtvAOVrSYj6zQOepg7Bf sTUw== 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=NB1qbYZQy04WXiObKTAsl0OLETWaMwuPKXc2xR/O56Y=; b=JITOb+s0bVUTqB/wVxVYJotNYBEuKbLQde8V965SaACLkDKXXTqSXrdNN9DW5xa2YU 4E1fTXaAnIaCNtD9nTlYGmdD0EBPxUK5foYZH5xuEgqPdQxtBbuhckLSz23wzRjDffXx UEXDbDcsLQaeEiSA1U2WukzIwDWJrvEDrvRy7qyd7z86j+qeeftLF4Hef2dNAQfSShcj GmMFlQJ5eDiqXSaTZbFUd3s3U6OVQ2wjwP17Yp2/iyItTwdQWPj2mznJvwzwtrpZajnn AanehgLyA8/sBiEk12QwskP2+S5N+mVVrMLkB4mXblLM4Pcp7bewTuZin8jUD2f+u5s1 zpIQ== 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 o11-20020a63730b000000b0054294720d56si5086855pgc.387.2023.06.04.21.25.03; Sun, 04 Jun 2023 21:25:15 -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 S232838AbjFED6F (ORCPT <rfc822;pfffrao@gmail.com> + 99 others); Sun, 4 Jun 2023 23:58:05 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41178 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230374AbjFED6D (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Sun, 4 Jun 2023 23:58:03 -0400 Received: from bg4.exmail.qq.com (bg4.exmail.qq.com [43.154.54.12]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 858E4A6; Sun, 4 Jun 2023 20:57:59 -0700 (PDT) X-QQ-mid: bizesmtp89t1685937468tqznavd2 Received: from linux-lab-host.localdomain ( [61.141.77.49]) by bizesmtp.qq.com (ESMTP) with id ; Mon, 05 Jun 2023 11:57:47 +0800 (CST) X-QQ-SSF: 01200000000000D0V000000A0000000 X-QQ-FEAT: dKvkn8qoLrGXN8h42NRMms+7urQ9WLIQF9jRVidEDJkV0vebFHsuJOValBm6o C3EIJxwfkS/a6CpLXS6bvhkA8SoIR1mt3nnZIMpbGaF3twWVbG9DPbwawMfrPT12NcT0xVy xxNaUL0PXRcrUQlpm8LPUUvB7Dkgd9ZBgsnt7GRinn9m0wQjnptaR3GWLjyfb5vdEny1J4r F4gXLkQBHKu9v1ynmmr7AROd+QdNG66n1ZBKVVI+JGuyNStZawuednjxkv98BAXHYs3JsvE FrgTtDwUxyzrgkjN9v6YQAGfJyW1gnxEUkatJDGzoncqAoREl4aTkk/RSNL5x9xWOWXNK93 yDz01PwbYdrwhRDrKfO6HDEyPbNya71Pu7D/TIflfmDDAfhUCwlPPoDVdNefg== X-QQ-GoodBg: 0 X-BIZMAIL-ID: 2171116470520406675 From: Zhangjin Wu <falcon@tinylab.org> To: w@1wt.eu Cc: falcon@tinylab.org, arnd@arndb.de, linux-kernel@vger.kernel.org, linux-kselftest@vger.kernel.org, linux-riscv@lists.infradead.org, thomas@t-8ch.de Subject: [PATCH 3/4] selftests/nolibc: always print the log file Date: Mon, 5 Jun 2023 11:57:44 +0800 Message-Id: <835e118943d257b7a83066fb4fb77c0e5cf71534.1685936428.git.falcon@tinylab.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <cover.1685936428.git.falcon@tinylab.org> References: <cover.1685936428.git.falcon@tinylab.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-QQ-SENDSIZE: 520 Feedback-ID: bizesmtp:tinylab.org:qybglogicsvrsz:qybglogicsvrsz3a-3 X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL,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: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1767835294165843318?= X-GMAIL-MSGID: =?utf-8?q?1767835294165843318?= |
Series | selftests/nolibc: fix up and improve test report | |
Commit Message
Zhangjin Wu
June 5, 2023, 3:57 a.m. UTC
This allows to check the other issues of the output file manually even
when all of them passed.
Signed-off-by: Zhangjin Wu <falcon@tinylab.org>
---
tools/testing/selftests/nolibc/Makefile | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
Comments
On Mon, Jun 05, 2023 at 11:57:44AM +0800, Zhangjin Wu wrote: > This allows to check the other issues of the output file manually even > when all of them passed. Till now I preferred not to see it when everything was OK since it was useless and permitted a quick visual check in the reports. Do you really think it's useful ? If others prefer it that way we can change it but I purposely added this test to "improve" the output (for me at least). I'm interested in opinions here. Willy
> On Mon, Jun 05, 2023 at 11:57:44AM +0800, Zhangjin Wu wrote: > > This allows to check the other issues of the output file manually even > > when all of them passed. > > Till now I preferred not to see it when everything was OK since it was > useless and permitted a quick visual check in the reports. Do you > really think it's useful ? If others prefer it that way we can change > it but I purposely added this test to "improve" the output (for me at > least). I'm interested in opinions here. > I planed to add detailed potential issues to check in the commit message, but didn't do that eventually. The potential 'issues' may be: 1. string alignment, I found one character offset in the user-space 'efault' handler patchset 2. duplicated print, the one like '30 fork' we have fixed up 3. kernel messages (may provide some important info) I did add this manually several times in the past weeks, so, if the path is there, I can simply copy it and cat it, hope we can print the path by default ;-) The commit message may be changed to something like this: This allows us to check the details in the log file even when all of them passed, from the log details, we can check the string alignment, duplicated print and kernel messages. Best regards, Zhangjin > Willy
diff --git a/tools/testing/selftests/nolibc/Makefile b/tools/testing/selftests/nolibc/Makefile index 5b0af8d8f5f3..518f85c77fe3 100644 --- a/tools/testing/selftests/nolibc/Makefile +++ b/tools/testing/selftests/nolibc/Makefile @@ -130,7 +130,7 @@ libc-test: nolibc-test.c test-report: $(Q)[ -f $(CURDIR)/run.out ] && awk '/\[OK\]$$/{p++} /\[FAIL\]$$/{f++} /\[SKIPPED\]$$/{s++} \ END{ printf("%d test(s) passed, %d skipped, %d failed.", p, s, f); \ - if (s+f > 0) printf(" See all results in %s\n", ARGV[1]); else print; }' \ + printf(" See all results in %s\n", ARGV[1]); }' \ $(CURDIR)/run.out || : # qemu user-land test