From patchwork Tue Mar 31 04:10:41 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: 46565 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-lb0-f198.google.com (mail-lb0-f198.google.com [209.85.217.198]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 8778A2159A for ; Tue, 31 Mar 2015 04:13:03 +0000 (UTC) Received: by lbbug6 with SMTP id ug6sf954233lbb.3 for ; Mon, 30 Mar 2015 21:13:02 -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=olN2mIk0/auLdf4DOhWVWXB/tw25n81IUrurq8hsjYM=; b=OYQcTubufGAwnprmJvQTjJxW8yU2mO48TIBSgOIfBELfIk11yQBmTseahhkhCzwdsO QZLNxLE0q5E1obsemcBKgzx/1Shd/b3QP2ayyTc1QASIe+j6Xwlbl1Rkk5MhJ1ZQ7c3E CkQMXc0SITavv5UQByjyLzEp93/x2bTNJr283CYyCCzjpS+Bf26mHxWVaYccr0leUDAd vmy5u4wKwxyIBSlXOtq68vcwexA9IqdUXOzhvp5CwnU/tQOxXYIU0zMsMvH+wTfDgIQJ WLABHaGU+cNuPW2w+PaYvpLCUjK6BMdrg6L1QhuBKB0YFdcyJhi1gDypbbZQJ9U91BFt +uAA== X-Gm-Message-State: ALoCoQkIcqyHHslgrhWBJWK40Eh0ic0iVyEKsSV+4kxk+TfuUmRqZ+mH1Yh9kyU0zCIPpcaOPKE7 X-Received: by 10.112.118.203 with SMTP id ko11mr695862lbb.15.1427775182278; Mon, 30 Mar 2015 21:13:02 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.178.225 with SMTP id db1ls534683lac.78.gmail; Mon, 30 Mar 2015 21:13:02 -0700 (PDT) X-Received: by 10.152.10.66 with SMTP id g2mr29186364lab.44.1427775182090; Mon, 30 Mar 2015 21:13:02 -0700 (PDT) Received: from mail-lb0-f170.google.com (mail-lb0-f170.google.com. [209.85.217.170]) by mx.google.com with ESMTPS id mz5si8379294lbb.71.2015.03.30.21.13.01 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 30 Mar 2015 21:13:01 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.170 as permitted sender) client-ip=209.85.217.170; Received: by lbbug6 with SMTP id ug6so3562336lbb.3 for ; Mon, 30 Mar 2015 21:13:01 -0700 (PDT) X-Received: by 10.152.8.161 with SMTP id s1mr20429772laa.41.1427775181781; Mon, 30 Mar 2015 21:13:01 -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 k9csp1547385lbq; Mon, 30 Mar 2015 21:13:00 -0700 (PDT) X-Received: by 10.68.180.195 with SMTP id dq3mr15342567pbc.39.1427775180013; Mon, 30 Mar 2015 21:13:00 -0700 (PDT) Received: from mail.openembedded.org (mail.openembedded.org. [140.211.169.62]) by mx.google.com with ESMTP id iu1si17496824pbb.218.2015.03.30.21.12.59; Mon, 30 Mar 2015 21:12:59 -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 08C5D73C86; Tue, 31 Mar 2015 04:12:57 +0000 (UTC) X-Original-To: openembedded-devel@lists.openembedded.org Delivered-To: openembedded-devel@lists.openembedded.org Received: from mail-ob0-f170.google.com (mail-ob0-f170.google.com [209.85.214.170]) by mail.openembedded.org (Postfix) with ESMTP id 45302736B6 for ; Tue, 31 Mar 2015 04:11:35 +0000 (UTC) Received: by obbgh1 with SMTP id gh1so8735294obb.1 for ; Mon, 30 Mar 2015 21:11:36 -0700 (PDT) X-Received: by 10.60.133.82 with SMTP id pa18mr30842370oeb.63.1427775096238; Mon, 30 Mar 2015 21:11:36 -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 v10sm8025488obo.19.2015.03.30.21.11.34 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 30 Mar 2015 21:11:35 -0700 (PDT) From: "Gary S. Robertson" To: Martin Jansa , Ross Burton Date: Mon, 30 Mar 2015 23:10:41 -0500 Message-Id: <1427775041-9330-2-git-send-email-gary.robertson@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1427775041-9330-1-git-send-email-gary.robertson@linaro.org> References: <1413992945-33655-1-git-send-email-mike.holmes@linaro.org> <1427775041-9330-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.217.170 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 This patch adds a recipe for building the CUnit test framework libraries Upstream Status - not applicable - recipe addition only 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..246a121 --- /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 = "http://downloads.sourceforge.net/project/cunit/CUnit/${PV}/CUnit-${PV}.tar.bz2 \ + file://fixup-install-docdir.patch;patch=1" +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..a9dc4bc --- /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. +This patch specifies new locations which are consistent with OE filesystems. + +Upstream Status - not applicable - customizes configs 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 \