From patchwork Thu Oct 27 03:09:12 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: 14585 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 60E6DC38A02 for ; Mon, 31 Oct 2022 09:56:00 +0000 (UTC) Received: from mail1.bemta37.messagelabs.com (mail1.bemta37.messagelabs.com [85.158.142.112]) by mx.groups.io with SMTP id smtpd.web09.7372.1667210154038193605 for ; Mon, 31 Oct 2022 02:55:55 -0700 Authentication-Results: mx.groups.io; dkim=fail reason="body hash did not verify" header.i=@fujitsu.com header.s=170520fj header.b=tFebZQoj; spf=pass (domain: fujitsu.com, ip: 85.158.142.112, mailfrom: yanxk.fnst@fujitsu.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fujitsu.com; s=170520fj; t=1667210151; i=@fujitsu.com; bh=O4djf1GDe8bA6ALJLQPOnKt2Uem03Teyqx7BRf/y8Kk=; h=From:To:CC:Subject:Date:Message-ID:MIME-Version:Content-Type: Content-Transfer-Encoding; b=tFebZQojyaLC7++2F+kpTILlfVdG8urFnl39ZLCW1Dnli3WGyXI4ySPnDd0X46K33 qDpOg7edMGQdBgfPocGrNlxdjgBpkLAmdFn7PZbDjEW3tEMoSme6YeElR84XtijBs7 dy2Xb5TrNGTOF6kxLdX8aqwPRG/KTZx3ZYhUxjm0ycVEsLqUVZBQcb+fzsj//cPI0J qC0F5OBkbv3GaIlIvnNCLMI1d0mGlBieu2tKQStDRICIsNLQddNW8dy4OsdlyZCg+m y0I9gIg4APKBSpyZo38t3YluA7bSXHj5OggpXu1VYqS+8y+Y79meFFdnL6dMm7i0+8 iBaDerIGA7YKw== X-Bright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fujitsu.com X-Msg-Ref: server-10.tower-732.messagelabs.com!1667210150!115357!1 X-Originating-IP: [62.60.8.146] X-SYMC-ESS-Client-Auth: outbound-route-from=pass X-StarScan-Received: X-StarScan-Version: 9.100.1; banners=-,-,- X-VirusChecked: Checked Received: (qmail 9598 invoked from network); 31 Oct 2022 09:55:51 -0000 Received: from unknown (HELO n03ukasimr02.n03.fujitsu.local) (62.60.8.146) by server-10.tower-732.messagelabs.com with ECDHE-RSA-AES256-GCM-SHA384 encrypted SMTP; 31 Oct 2022 09:55:51 -0000 Received: from n03ukasimr02.n03.fujitsu.local (localhost [127.0.0.1]) by n03ukasimr02.n03.fujitsu.local (Postfix) with ESMTP id 8DEF91000D7 for ; Mon, 31 Oct 2022 09:55:50 +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 n03ukasimr02.n03.fujitsu.local (Postfix) with ESMTPS id 817C31000C1 for ; Mon, 31 Oct 2022 09:55:50 +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 09:55:48 +0000 From: To: CC: , Yan Xinkuan Subject: [meta-oe][oe-core][PATCH V4] bc: Add ptest. Date: Thu, 27 Oct 2022 11:09:12 +0800 Message-ID: <1666840152-10530-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 09:56:00 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/172300 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” 9983640860328357366034714556282968349582 7909199408566065153345558783\ 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'. Tested in qemux86-64, with kvm enabled, test cost 12 secs, so it should be a fast test. Thanks to Ross Burton and Alexander Kanavin 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..0a52a48ef1 100644 --- a/meta/conf/distro/include/ptest-packagelists.inc +++ b/meta/conf/distro/include/ptest-packagelists.inc @@ -69,6 +69,7 @@ PTESTS_FAST = "\ slang-ptest \ wayland-ptest \ zlib-ptest \ + bc-ptest \ " PTESTS_FAST:append:libc-glibc = " glibc-tests-ptest" PTESTS_PROBLEMS:remove:libc-glibc = "glibc-tests-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