From patchwork Thu Oct 27 01:12:42 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: "yanxk.fnst@fujitsu.com" X-Patchwork-Id: 14572 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 aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id D690AFA3740 for ; Mon, 31 Oct 2022 07:59:39 +0000 (UTC) Received: from mail1.bemta34.messagelabs.com (mail1.bemta34.messagelabs.com [195.245.231.4]) by mx.groups.io with SMTP id smtpd.web11.6700.1667203174574921765 for ; Mon, 31 Oct 2022 00:59:35 -0700 Authentication-Results: mx.groups.io; dkim=fail reason="body hash did not verify" header.i=@fujitsu.com header.s=170520fj header.b=d5UlyXTk; spf=pass (domain: fujitsu.com, ip: 195.245.231.4, mailfrom: yanxk.fnst@fujitsu.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fujitsu.com; s=170520fj; t=1667203172; i=@fujitsu.com; bh=eFsVhAjNO4wg35Nm/V554nowh30klBWPum7Cfguox90=; h=From:To:CC:Subject:Date:Message-ID:MIME-Version:Content-Type: Content-Transfer-Encoding; b=d5UlyXTkUdN/XrP0V7b6UjomrSNd4Waiw/Z4kTT3haptxs9Q2fL61OsmxOyTAmO08 FtEt7zdzXZnZDnpf8sffZggCL42C6T2ueWqgha52HEX1MBSvp4cBsSY/LGFKxvhitL 4VFgwBopYefHHLtAMvzJzJfBGgV9lZXy7Y4J7XBGm6spaHfGJKouFJ1/Jl9z2TIwh2 PP9U7fEWugJwCJ00TtD//7XW6S45XgwyIyecH38lMXZj2K1PbkmjorsztMt3AP+4dS eAK/pDtcE3adBQzQBMInfiYOggcjSc1eBFfaBH4NqQihiqrdnNa+cX0R9W8FxEEqKK XKGggRSLKtBaw== X-Brightmail-Tracker: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A= X-Env-Sender: yanxk.fnst@fujitsu.com X-Msg-Ref: server-13.tower-565.messagelabs.com!1667203172!516434!1 X-Originating-IP: [62.60.8.98] X-SYMC-ESS-Client-Auth: outbound-route-from=pass X-StarScan-Received: X-StarScan-Version: 9.100.1; banners=-,-,- X-VirusChecked: Checked Received: (qmail 6635 invoked from network); 31 Oct 2022 07:59:32 -0000 Received: from unknown (HELO n03ukasimr03.n03.fujitsu.local) (62.60.8.98) by server-13.tower-565.messagelabs.com with ECDHE-RSA-AES256-GCM-SHA384 encrypted SMTP; 31 Oct 2022 07:59:32 -0000 Received: from n03ukasimr03.n03.fujitsu.local (localhost [127.0.0.1]) by n03ukasimr03.n03.fujitsu.local (Postfix) with ESMTP id F03DD1AD for ; Mon, 31 Oct 2022 07:59:31 +0000 (GMT) Received: from R01UKEXCASM126.r01.fujitsu.local (R01UKEXCASM126 [10.183.43.178]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by n03ukasimr03.n03.fujitsu.local (Postfix) with ESMTPS id E509E1AB for ; Mon, 31 Oct 2022 07:59:31 +0000 (GMT) Received: from localhost.localdomain (10.167.218.229) by R01UKEXCASM126.r01.fujitsu.local (10.183.43.178) with Microsoft SMTP Server (TLS) id 15.0.1497.32; Mon, 31 Oct 2022 07:59:29 +0000 From: To: CC: , Yan Xinkuan Subject: [meta-oe][PATCH V3] bc: Add ptest. Date: Thu, 27 Oct 2022 09:12:42 +0800 Message-ID: <1666833162-10154-1-git-send-email-yanxk.fnst@fujitsu.com> X-Mailer: git-send-email 1.7.1 MIME-Version: 1.0 X-Originating-IP: [10.167.218.229] X-ClientProxiedBy: G08CNEXCHPEKD07.g08.fujitsu.local (10.167.33.80) To R01UKEXCASM126.r01.fujitsu.local (10.183.43.178) X-Virus-Scanned: ClamAV using ClamSMTP List-Id: X-Webhook-Received: from li982-79.members.linode.com [45.33.32.79] by aws-us-west-2-korg-lkml-1.web.codeaurora.org with HTTPS for ; Mon, 31 Oct 2022 07:59:39 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/172291 From: Yan Xinkuan Add package test function for OSS 'bc', using bc in the system to do calculation jobs according to the .b files from the source code file of 'bc'. Test example as below: ...... .00673400673400673400 “PASS: bc/div.b” 99836408603283573660347145562829683495827909199408566065153345558783\ 9427595471.89114392327665123852 “PASS: bc/exp.b” length(b)= 1406 “PASS: bc/fact.b” ...... If bc runs the .b files and does not crash, it would 'PASS', otherwise it would 'FAIL'. I ran ptest with Intel CORE i5 4450, in qemux86-64, the whole test took up to 124 seconds, so it should be a slow test. Thanks to Ross Burton for the professional guidance. Signed-off-by: Yan Xinkuan --- meta/conf/distro/include/ptest-packagelists.inc | 1 + meta/recipes-extended/bc/bc/run-ptest | 9 +++++++++ meta/recipes-extended/bc/bc_1.07.1.bb | 9 +++++++-- 3 files changed, 17 insertions(+), 2 deletions(-) create mode 100644 meta/recipes-extended/bc/bc/run-ptest diff --git a/meta/conf/distro/include/ptest-packagelists.inc b/meta/conf/distro/include/ptest-packagelists.inc index 56088e4e66..5cbed54cc5 100644 --- a/meta/conf/distro/include/ptest-packagelists.inc +++ b/meta/conf/distro/include/ptest-packagelists.inc @@ -100,6 +100,7 @@ PTESTS_SLOW = "\ tcl-ptest \ util-linux-ptest \ valgrind-ptest \ + bc-ptest \ " PTESTS_SLOW:remove:riscv64 = "valgrind-ptest" diff --git a/meta/recipes-extended/bc/bc/run-ptest b/meta/recipes-extended/bc/bc/run-ptest new file mode 100644 index 0000000000..da2156f8cd --- /dev/null +++ b/meta/recipes-extended/bc/bc/run-ptest @@ -0,0 +1,9 @@ +#! /bin/sh + +for TEST in *.b; do + if bc -l $TEST