From patchwork Wed Apr 1 21:50:13 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: gary.robertson@linaro.org X-Patchwork-Id: 46666 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-wi0-f197.google.com (mail-wi0-f197.google.com [209.85.212.197]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id D9CC82159A for ; Wed, 1 Apr 2015 21:52:04 +0000 (UTC) Received: by wixm2 with SMTP id m2sf14598864wix.0 for ; Wed, 01 Apr 2015 14:52:04 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:delivered-to:delivered-to:from:to:date :message-id:in-reply-to:references:cc:subject:precedence:reply-to :list-id:list-unsubscribe:list-archive:list-post:list-help :list-subscribe:mime-version:content-type:content-transfer-encoding :sender:errors-to:x-original-sender :x-original-authentication-results:mailing-list; bh=S4U05OjygkqQ7TusZRJoj0wjNy7unDUzQbZHz9yN8+c=; b=SqA+iGqF4u7arz9NGSGLYxtwPXwV+Qg8pY9bfmpv2xH+0TR2PVsfUjrllLLabmO7Fw JSGhE2fFGLJ8WNHIVuI58M58stWHG6G1qLMQFFSbx5t0m5pp+Iz1co6gsnhNhGpdbMVk C1PXAPBkbpRIklkrRVB4taGp9ycFCXQPVywOF+7iwBKwkj34VCVHNg2rBjR8jL7A/L+a yBq1Kyws3/FvYAiuJ69r6PkWT/3CtNtRxVGhQ00Jt+zoEXP98TDGbj/QAKJ7cZGpqEil znSXQEISPvyMqIqP2NEzxHqI6x1T4ZXoxMJeaXqEzDyQhfGWXJiHjgoIPz9AlV2AAFNh CtTg== X-Gm-Message-State: ALoCoQmYOGdGwykeje5qXNWITADWTw7ztVCeZBodDuXXqve9z2zZCstIqY8w3qgPp5W5hGVq8qiX X-Received: by 10.112.93.203 with SMTP id cw11mr820976lbb.0.1427925123995; Wed, 01 Apr 2015 14:52:03 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.224.165 with SMTP id rd5ls124106lac.77.gmail; Wed, 01 Apr 2015 14:52:03 -0700 (PDT) X-Received: by 10.112.138.233 with SMTP id qt9mr14606527lbb.39.1427925123705; Wed, 01 Apr 2015 14:52:03 -0700 (PDT) Received: from mail-la0-f41.google.com (mail-la0-f41.google.com. [209.85.215.41]) by mx.google.com with ESMTPS id gz6si2618611lac.135.2015.04.01.14.52.03 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 01 Apr 2015 14:52:03 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.41 as permitted sender) client-ip=209.85.215.41; Received: by lagg8 with SMTP id g8so47105830lag.1 for ; Wed, 01 Apr 2015 14:52:03 -0700 (PDT) X-Received: by 10.112.8.76 with SMTP id p12mr34083837lba.29.1427925123532; Wed, 01 Apr 2015 14:52:03 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.112.57.201 with SMTP id k9csp936281lbq; Wed, 1 Apr 2015 14:52:02 -0700 (PDT) X-Received: by 10.67.4.104 with SMTP id cd8mr81275546pad.116.1427925121706; Wed, 01 Apr 2015 14:52:01 -0700 (PDT) Received: from mail.openembedded.org (mail.openembedded.org. [140.211.169.62]) by mx.google.com with ESMTP id ol15si4596249pdb.157.2015.04.01.14.52.00; Wed, 01 Apr 2015 14:52:01 -0700 (PDT) Received-SPF: none (google.com: openembedded-devel-bounces@lists.openembedded.org does not designate permitted sender hosts) client-ip=140.211.169.62; Received: from mail.openembedded.org (localhost [127.0.0.1]) by mail.openembedded.org (Postfix) with ESMTP id 5B6CD73CC7; Wed, 1 Apr 2015 21:51:56 +0000 (UTC) X-Original-To: openembedded-devel@lists.openembedded.org Delivered-To: openembedded-devel@lists.openembedded.org Received: from mail-ob0-f182.google.com (mail-ob0-f182.google.com [209.85.214.182]) by mail.openembedded.org (Postfix) with ESMTP id B1E2673C73 for ; Wed, 1 Apr 2015 21:50:50 +0000 (UTC) Received: by obbfy7 with SMTP id fy7so16193931obb.2 for ; Wed, 01 Apr 2015 14:50:51 -0700 (PDT) X-Received: by 10.60.46.66 with SMTP id t2mr42330257oem.60.1427925050845; Wed, 01 Apr 2015 14:50:50 -0700 (PDT) Received: from honkintosh.cybertech.lan (65-120-133-114.dia.static.qwest.net. [65.120.133.114]) by mx.google.com with ESMTPSA id ud3sm2898046oeb.2.2015.04.01.14.50.49 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 01 Apr 2015 14:50:49 -0700 (PDT) From: "Gary S. Robertson" To: Martin Jansa , Ross Burton Date: Wed, 1 Apr 2015 16:50:13 -0500 Message-Id: <1427925013-7492-2-git-send-email-gary.robertson@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1427925013-7492-1-git-send-email-gary.robertson@linaro.org> References: <20150331070731.GI14928@jama> <1427925013-7492-1-git-send-email-gary.robertson@linaro.org> Cc: openembedded-devel Subject: [oe] [PATCH] add CUnit test suite X-BeenThere: openembedded-devel@lists.openembedded.org X-Mailman-Version: 2.1.12 Precedence: list Reply-To: openembedded-devel@lists.openembedded.org List-Id: List-Unsubscribe: , List-Archive: List-Post: , List-Help: , List-Subscribe: , MIME-Version: 1.0 Sender: openembedded-devel-bounces@lists.openembedded.org Errors-To: openembedded-devel-bounces@lists.openembedded.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: gary.robertson@linaro.org X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.41 as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 From: Mike Holmes Adds a new recipe for building the CUnit test framework libraries Signed-off-by: Mike Holmes Signed-off-by: Gary S. Robertson --- meta-oe/recipes-devtools/cunit/cunit_2.1-3.bb | 19 ++++++++++++ .../cunit/files/fixup-install-docdir.patch | 36 ++++++++++++++++++++++ 2 files changed, 55 insertions(+) create mode 100644 meta-oe/recipes-devtools/cunit/cunit_2.1-3.bb create mode 100644 meta-oe/recipes-devtools/cunit/files/fixup-install-docdir.patch diff --git a/meta-oe/recipes-devtools/cunit/cunit_2.1-3.bb b/meta-oe/recipes-devtools/cunit/cunit_2.1-3.bb new file mode 100644 index 0000000..085f4be --- /dev/null +++ b/meta-oe/recipes-devtools/cunit/cunit_2.1-3.bb @@ -0,0 +1,19 @@ +DESCRIPTION = "CUnit is a C framework for unit testing. Test output supports comandline and GUI results reporting" +HOMEPAGE = "http://cunit.sourceforge.net" +LICENSE = "LGPL-2.0" +SECTION = "libs" +LIC_FILES_CHKSUM = "file://COPYING;md5=7734aa853b85d6f935466f081490ddbb" + +S = "${WORKDIR}/CUnit-${PV}" + +SRC_URI = "${SOURCEFORGE_MIRROR}/project/cunit/CUnit/${PV}/CUnit-${PV}.tar.bz2 \ + file://fixup-install-docdir.patch" +SRC_URI[md5sum] = "b5f1a9f6093869c070c6e4a9450cc10c" +SRC_URI[sha256sum] = "f5b29137f845bb08b77ec60584fdb728b4e58f1023e6f249a464efa49a40f214" + +inherit autotools-brokensep + +EXTRA_OECONF = "--enable-memtrace --enable-automated --enable-basic --enable-console" + +FILES_${PN}-dev += "${datadir}/CUnit" +FILES_${PN}-doc += "${docdir}" diff --git a/meta-oe/recipes-devtools/cunit/files/fixup-install-docdir.patch b/meta-oe/recipes-devtools/cunit/files/fixup-install-docdir.patch new file mode 100644 index 0000000..c328227 --- /dev/null +++ b/meta-oe/recipes-devtools/cunit/files/fixup-install-docdir.patch @@ -0,0 +1,36 @@ +From: "Mike Holmes" +Date: Thu, 30 October 2014 16:21:03 -0500 +Subject: [PATCH] fixup-install-docdir + +The default configuration macros for CUnit install the documentation and +header files in locations not consistent with the OE filesystem layout. +So here we specify new locations which are consistent with OE filesystems. + +Upstream-Status: Inappropriate - configuration for OE build environment + +Signed-off-by: Mike Holmes +Signed-off-by: Gary S. Robertson +--- + +diff -uNr a/doc/headers/Makefile.am b/doc/headers/Makefile.am +--- a/doc/headers/Makefile.am 2014-10-30 22:06:29.704574162 +0100 ++++ b/doc/headers/Makefile.am 2014-10-30 22:07:43.578524791 +0100 +@@ -1,6 +1,6 @@ + ## Process this file with automake to produce Makefile.in + +-dochdrdir = $(prefix)/doc/@PACKAGE@/headers ++dochdrdir = $(docdir)/headers + + INCLUDE_FILES = \ + Automated.h \ +diff -uNr a/doc/Makefile.am b/doc/Makefile.am +--- a/doc/Makefile.am 2014-10-30 22:06:29.704574162 +0100 ++++ b/doc/Makefile.am 2014-10-30 22:07:01.461412166 +0100 +@@ -1,7 +1,5 @@ + ## Process this file with automake to produce Makefile.in + +-docdir = $(prefix)/doc/@PACKAGE@ +- + doc_DATA = \ + CUnit_doc.css \ + error_handling.html \