Skip to contentSkip to conversation

add CUnit test suite

PATCH Superseded Mike Holmes 4 participants 10 messages Oct 22, 2014 – Apr 1, 2015

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 add CUnit test suite

---
 meta-oe/recipes-devtools/cunit/cunit_2.1-3.bb | 18 ++++++++++++++++++
 1 file changed, 18 insertions(+)
 create mode 100644 meta-oe/recipes-devtools/cunit/cunit_2.1-3.bb
meta-oe/recipes-devtools/cunit/cunit_2.1-3.bb new file +18 -0
new file mode 100644
index 0000000..e869852
@@ -0,0 +1,18 @@
+DESCRIPTION = "CUnit is a C framework for unit testing. Test output supports comandline and GUI reults 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"
+SRC_URI[md5sum] = "b5f1a9f6093869c070c6e4a9450cc10c"
+SRC_URI[sha256sum] = "f5b29137f845bb08b77ec60584fdb728b4e58f1023e6f249a464efa49a40f214"
+
+inherit autotools-brokensep
+
+EXTRA_OECONF = "--enable-debug --enable-memtrace --enable-automated --enable-basic --enable-console"
+
+FILES_${PN}-doc += "${prefix}/doc"
+FILES_${PN}-dev += "${datadir}"
Signature · 1 line
1.9.1
#1 lore raw
Quoted 19 lines · Mike Holmes
---
 meta-oe/recipes-devtools/cunit/cunit_2.1-3.bb | 18 ++++++++++++++++++
 1 file changed, 18 insertions(+)
 create mode 100644 meta-oe/recipes-devtools/cunit/cunit_2.1-3.bb
meta-oe/recipes-devtools/cunit/cunit_2.1-3.bb new file +7 -0
new file mode 100644
index 0000000..e869852
@@ -0,0 +1,18 @@
+DESCRIPTION = "CUnit is a C framework for unit testing. Test output supports comandline and GUI reults reporting"
+HOMEPAGE = "http://cunit.sourceforge.net"
+LICENSE = "LGPL-2.0"
+SECTION = "libs"
+LIC_FILES_CHKSUM = "file://COPYING;md5=7734aa853b85d6f935466f081490ddbb"
+
+S = "${WORKDIR}/CUnit-${PV}"

meta-oe/recipes-devtools/cunit/cunit_2.1-3.bb line 17

Quoted 10 lines
meta-oe/recipes-devtools/cunit/cunit_2.1-3.bb new file +10 -0
+
+SRC_URI = "http://downloads.sourceforge.net/project/cunit/CUnit/${PV}/CUnit-${PV}.tar.bz2"
+SRC_URI[md5sum] = "b5f1a9f6093869c070c6e4a9450cc10c"
+SRC_URI[sha256sum] = "f5b29137f845bb08b77ec60584fdb728b4e58f1023e6f249a464efa49a40f214"
+
+inherit autotools-brokensep
+
+EXTRA_OECONF = "--enable-debug --enable-memtrace --enable-automated --enable-basic --enable-console"
+
+FILES_${PN}-doc += "${prefix}/doc"

Why doesn't it use ${datadir}/doc == ${docdir} as everything else?

Quoted 9 lines
meta-oe/recipes-devtools/cunit/cunit_2.1-3.bb new file +1 -0
+FILES_${PN}-dev += "${datadir}"
Signature · 7 lines
1.9.1

-- 
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel
Signature · 1 line
Martin 'JaMa' Jansa     jabber: [email protected]
#2 lore raw
Quoted 34 lines · Martin Jansa

Review

Quoted 7 lines · Mike Holmes
---
 meta-oe/recipes-devtools/cunit/cunit_2.1-3.bb | 18 ++++++++++++++++++
 1 file changed, 18 insertions(+)
 create mode 100644 meta-oe/recipes-devtools/cunit/cunit_2.1-3.bb
(quoted diff) +0 -0

b/meta-oe/recipes-devtools/cunit/cunit_2.1-3.bb

meta-oe/recipes-devtools/cunit/cunit_2.1-3.bb line 1

Quoted 6 lines

new file mode 100644
index 0000000..e869852

meta-oe/recipes-devtools/cunit/cunit_2.1-3.bb new file +1 -0
@@ -0,0 +1,18 @@
+DESCRIPTION = "CUnit is a C framework for unit testing. Test output

supports comandline and GUI reults reporting"

meta-oe/recipes-devtools/cunit/cunit_2.1-3.bb

Quoted 8 lines
meta-oe/recipes-devtools/cunit/cunit_2.1-3.bb new file +8 -0
+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
"

meta-oe/recipes-devtools/cunit/cunit_2.1-3.bb line 11

Quoted 2 lines
meta-oe/recipes-devtools/cunit/cunit_2.1-3.bb new file +2 -0
+SRC_URI[md5sum] = "b5f1a9f6093869c070c6e4a9450cc10c"
+SRC_URI[sha256sum] =

"f5b29137f845bb08b77ec60584fdb728b4e58f1023e6f249a464efa49a40f214"

meta-oe/recipes-devtools/cunit/cunit_2.1-3.bb

Quoted 4 lines
meta-oe/recipes-devtools/cunit/cunit_2.1-3.bb new file +4 -0
+
+inherit autotools-brokensep
+
+EXTRA_OECONF = "--enable-debug --enable-memtrace --enable-automated

--enable-basic --enable-console"

Quoted 5 lines

meta-oe/recipes-devtools/cunit/cunit_2.1-3.bb line 17

Quoted 2 lines
meta-oe/recipes-devtools/cunit/cunit_2.1-3.bb new file +2 -0
+
+FILES_${PN}-doc += "${prefix}/doc"

Why doesn't it use ${datadir}/doc == ${docdir} as everything else?

My inexperience with OE most likely, I will try that, thank you.

Quoted 21 lines
Quoted 10 lines
meta-oe/recipes-devtools/cunit/cunit_2.1-3.bb new file +1 -1
+FILES_${PN}-dev += "${datadir}"
--

1.9.1

--
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel

--
Martin 'JaMa' Jansa jabber: [email protected]

--
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel

Signature · 3 lines
*Mike Holmes*
Linaro  Sr Technical Manager
LNG - ODP
#3 lore raw
In reply to Martin Jansa
Quoted 34 lines · Martin Jansa

Review

Quoted 7 lines · Mike Holmes
---
 meta-oe/recipes-devtools/cunit/cunit_2.1-3.bb | 18 ++++++++++++++++++
 1 file changed, 18 insertions(+)
 create mode 100644 meta-oe/recipes-devtools/cunit/cunit_2.1-3.bb
(quoted diff) +0 -0

b/meta-oe/recipes-devtools/cunit/cunit_2.1-3.bb

meta-oe/recipes-devtools/cunit/cunit_2.1-3.bb line 1

Quoted 6 lines

new file mode 100644
index 0000000..e869852

meta-oe/recipes-devtools/cunit/cunit_2.1-3.bb new file +1 -0
@@ -0,0 +1,18 @@
+DESCRIPTION = "CUnit is a C framework for unit testing. Test output

supports comandline and GUI reults reporting"

meta-oe/recipes-devtools/cunit/cunit_2.1-3.bb

Quoted 8 lines
meta-oe/recipes-devtools/cunit/cunit_2.1-3.bb new file +8 -0
+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
"

meta-oe/recipes-devtools/cunit/cunit_2.1-3.bb line 11

Quoted 2 lines
meta-oe/recipes-devtools/cunit/cunit_2.1-3.bb new file +2 -0
+SRC_URI[md5sum] = "b5f1a9f6093869c070c6e4a9450cc10c"
+SRC_URI[sha256sum] =

"f5b29137f845bb08b77ec60584fdb728b4e58f1023e6f249a464efa49a40f214"

meta-oe/recipes-devtools/cunit/cunit_2.1-3.bb

Quoted 4 lines
meta-oe/recipes-devtools/cunit/cunit_2.1-3.bb new file +4 -0
+
+inherit autotools-brokensep
+
+EXTRA_OECONF = "--enable-debug --enable-memtrace --enable-automated

--enable-basic --enable-console"

Quoted 5 lines

meta-oe/recipes-devtools/cunit/cunit_2.1-3.bb line 17

Quoted 2 lines
meta-oe/recipes-devtools/cunit/cunit_2.1-3.bb new file +2 -0
+
+FILES_${PN}-doc += "${prefix}/doc"

Why doesn't it use ${datadir}/doc == ${docdir} as everything else?

I think the reason is because CUnit places its docs in /usr/doc/CUnit which is not the same as docdir (usr/share/doc)

Quoted 21 lines
Quoted 10 lines
meta-oe/recipes-devtools/cunit/cunit_2.1-3.bb new file +1 -1
+FILES_${PN}-dev += "${datadir}"
--

1.9.1

--
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel

--
Martin 'JaMa' Jansa jabber: [email protected]

--
_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-devel

Signature · 3 lines
*Mike Holmes*
Linaro  Sr Technical Manager
LNG - ODP
#4 lore raw
Quoted 3 lines · Mike Holmes

I think the reason is because CUnit places its docs in /usr/doc/CUnit which is not the same as docdir (usr/share/doc)

In that case the recipe should fix the location.

Ross

#5 lore raw

PATCH v2 1/1 add CUnit test suite

In reply to Mike Holmes

Mike Holmes has asked me to resubmit this patch on his behalf, as other duties have currently preempted his efforts to pursue acceptance of this new recipe in OE.

A new patch file was added which sets the path configuration variables to place documentation and headers in locations consistent with the OE filesystem layout.

Looking in the ${WORKDIR}/*destdir and ${WORKDIR}/deploy-ipks subdirectories after performing the recipe build, it appears that everything is being placed into the appropriate locations.

We believe this version of the recipe addresses the concerns raised in the email exchanges regarding the initial recipe submission, and hope you will now find it acceptable.

#6 lore raw

PATCH 1/1 add CUnit test suite

From: Mike Holmes <[email protected]>

This patch adds a recipe for building the CUnit test framework libraries

Upstream Status - not applicable - recipe addition only

---
 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
meta-oe/recipes-devtools/cunit/cunit_2.1-3.bb new file +19 -0
new file mode 100644
index 0000000..246a121
@@ -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}"
meta-oe/recipes-devtools/cunit/files/fixup-install-docdir.patch new file +36 -0
new file mode 100644
index 0000000..a9dc4bc
@@ -0,0 +1,36 @@
+From: "Mike Holmes" <[email protected]>
+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 <[email protected]>
+Signed-off-by: Gary S. Robertson <[email protected]>
+---
+
+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 \
Signature · 1 line
1.9.1
#7 lore raw
Quoted 5 lines · Gary S. Robertson

From: Mike Holmes <[email protected]>

This patch adds a recipe for building the CUnit test framework libraries

Upstream Status - not applicable - recipe addition only

Upstream-Status belongs to .patch files not metadata commit messages.

Quoted 16 lines
---
 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
meta-oe/recipes-devtools/cunit/cunit_2.1-3.bb new file +0 -0
new file mode 100644
index 0000000..246a121

meta-oe/recipes-devtools/cunit/cunit_2.1-3.bb line 10

Quoted 10 lines
meta-oe/recipes-devtools/cunit/cunit_2.1-3.bb new file +10 -0
@@ -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"

Use 4 spaces for indentation and ";patch=1" shouldn't be needed, drop it.

Use SOURCEFORGE_MIRROR = "http://downloads.sourceforge.net" variable.

Quoted 15 lines
meta-oe/recipes-devtools/cunit/cunit_2.1-3.bb new file +9 -0
+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}"
meta-oe/recipes-devtools/cunit/files/fixup-install-docdir.patch new file +0 -0
new file mode 100644
index 0000000..a9dc4bc

meta-oe/recipes-devtools/cunit/files/fixup-install-docdir.patch line 9

Quoted 9 lines
meta-oe/recipes-devtools/cunit/files/fixup-install-docdir.patch new file +9 -0
@@ -0,0 +1,36 @@
+From: "Mike Holmes" <[email protected]>
+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

See:
http://www.openembedded.org/wiki/Commit_Patch_Message_Guidelines#Patch_Header_Recommendations
for proper format

Quoted 30 lines
meta-oe/recipes-devtools/cunit/files/fixup-install-docdir.patch new file +27 -0
+
+Signed-off-by: Mike Holmes <[email protected]>
+Signed-off-by: Gary S. Robertson <[email protected]>
+---
+
+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 \
Signature · 1 line
1.9.1
Signature · 1 line
Martin 'JaMa' Jansa     jabber: [email protected]
#8 lore raw

PATCH v3 1/1 add CUnit test suite

Thanks very much for your prompt reply, critique, and for the link to the patch submission guidelines document. I see by reading that document that I made some of the canonical irritating mistakes mentioned there. I appreciate your patience as I slowly learn the fine points of upstreaming patches properly.

I have attempted to properly incorporate all your cleanup suggestions and hope this version of the recipe will be satisfactory.

Thanks,

Gary Robertson

#9 lore raw

PATCH 1/1 add CUnit test suite

From: Mike Holmes <[email protected]>

Adds a new recipe for building the CUnit test framework libraries

---
 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
meta-oe/recipes-devtools/cunit/cunit_2.1-3.bb new file +19 -0
new file mode 100644
index 0000000..085f4be
@@ -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}"
meta-oe/recipes-devtools/cunit/files/fixup-install-docdir.patch new file +36 -0
new file mode 100644
index 0000000..c328227
@@ -0,0 +1,36 @@
+From: "Mike Holmes" <[email protected]>
+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 <[email protected]>
+Signed-off-by: Gary S. Robertson <[email protected]>
+---
+
+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 \
Signature · 1 line
1.9.1