* [Buildroot] [PATCH v4] cppunit: new package
@ 2014-10-16 15:46 Sebastien Bourdelin
2014-10-28 22:32 ` Romain Naour
0 siblings, 1 reply; 3+ messages in thread
From: Sebastien Bourdelin @ 2014-10-16 15:46 UTC (permalink / raw)
To: buildroot
CppUnit is the C++ port of the famous JUnit framework for unit testing.
Test output is in XML or text format for automatic testing and GUI
based for supervised tests.
http://www.freedesktop.org/wiki/Software/cppunit/
Signed-off-by: Sebastien Bourdelin <sebastien.bourdelin@savoirfairelinux.com>
---
Changes v3 -> v4:
- move the package from "Librairies" > "Others" to "Development tools"
(suggested by arnout at mind.be)
- change the CPPUNIT_VERSION and remove the useless CPPUNIT_SOURCE
(suggested by jerzy.grzegorek at trzebnica.net and
arnout at mind.be)
- change the link which refer to the md5 hash (suggested by
arnout at mind.be)
- change the comment for the locally calculated hash in the .hash file
- change the commit title
- add a dependency to a toolchain with dynamic library supported
since the static situation is not correctly detected (suggested by
arnout at mind.be and thomas.petazzoni at free-electrons.com)
---
Changes v2 -> v3:
- use the release tarball instead of the git repository (suggested by
arnout at mind.be)
- fix the Licence (suggested by arnout at mind.be)
- add upstream and locally compute .hash (suggested by
arnout at mind.be)
---
Changes v1 -> v2:
- used AUTORECONF option (suggested by romain.naour at openwide.fr)
- removed useless CONFIGURE_CMDS (suggested by romain.naour at openwide.fr)
---
package/Config.in | 1 +
package/cppunit/Config.in | 14 ++++++++++++++
package/cppunit/cppunit.hash | 5 +++++
package/cppunit/cppunit.mk | 13 +++++++++++++
4 files changed, 33 insertions(+)
create mode 100644 package/cppunit/Config.in
create mode 100644 package/cppunit/cppunit.hash
create mode 100644 package/cppunit/cppunit.mk
diff --git a/package/Config.in b/package/Config.in
index 93e148d..619d136 100644
--- a/package/Config.in
+++ b/package/Config.in
@@ -98,6 +98,7 @@ menu "Development tools"
source "package/bison/Config.in"
source "package/bsdiff/Config.in"
source "package/bustle/Config.in"
+ source "package/cppunit/Config.in"
source "package/cvs/Config.in"
if BR2_PACKAGE_BUSYBOX_SHOW_OTHERS
source "package/diffutils/Config.in"
diff --git a/package/cppunit/Config.in b/package/cppunit/Config.in
new file mode 100644
index 0000000..71e791c
--- /dev/null
+++ b/package/cppunit/Config.in
@@ -0,0 +1,14 @@
+config BR2_PACKAGE_CPPUNIT
+ bool "cppunit"
+ depends on BR2_INSTALL_LIBSTDCPP
+ depends on !BR2_PREFER_STATIC_LIB # currently the static situation
+ # is not correctly detected.
+ help
+ CppUnit is the C++ port of the famous JUnit framework for unit testing.
+ Test output is in XML or text format for automatic testing and GUI
+ based for supervised tests.
+
+ http://www.freedesktop.org/wiki/Software/cppunit/
+
+comment "cppunit needs a toolchain w/ C++, dynamic library"
+ depends on !BR2_INSTALL_LIBSTDCPP || BR2_PREFER_STATIC_LIB
diff --git a/package/cppunit/cppunit.hash b/package/cppunit/cppunit.hash
new file mode 100644
index 0000000..a097e32
--- /dev/null
+++ b/package/cppunit/cppunit.hash
@@ -0,0 +1,5 @@
+# hash from: http://www.freedesktop.org/wiki/Software/cppunit/:
+md5 d1c6bdd5a76c66d2c38331e2d287bc01 cppunit-1.13.2.tar.gz
+
+# Locally calculated:
+sha512 8f4be569f321d577cec31931f49f4df143bc94e283605509b6ea50c60690aa91a2aed940e7eebd4b2413a4218f9a6c3978d312d8e587eab040283c6563846ecd cppunit-1.13.2.tar.gz
diff --git a/package/cppunit/cppunit.mk b/package/cppunit/cppunit.mk
new file mode 100644
index 0000000..ab370f3
--- /dev/null
+++ b/package/cppunit/cppunit.mk
@@ -0,0 +1,13 @@
+################################################################################
+#
+# cppunit
+#
+################################################################################
+
+CPPUNIT_VERSION = 1.13.2
+CPPUNIT_SITE = http://dev-www.libreoffice.org/src
+CPPUNIT_INSTALL_STAGING = YES
+CPPUNIT_LICENSE = LGPLv2.1+
+CPPUNIT_LICENSE_FILES = COPYING
+
+$(eval $(autotools-package))
--
1.8.3.4
^ permalink raw reply related [flat|nested] 3+ messages in thread
* [Buildroot] [PATCH v4] cppunit: new package
2014-10-16 15:46 [Buildroot] [PATCH v4] cppunit: new package Sebastien Bourdelin
@ 2014-10-28 22:32 ` Romain Naour
2014-10-28 23:01 ` Romain Naour
0 siblings, 1 reply; 3+ messages in thread
From: Romain Naour @ 2014-10-28 22:32 UTC (permalink / raw)
To: buildroot
Hi Sebastien,
Le 16/10/2014 17:46, Sebastien Bourdelin a ?crit :
> CppUnit is the C++ port of the famous JUnit framework for unit testing.
> Test output is in XML or text format for automatic testing and GUI
> based for supervised tests.
>
> http://www.freedesktop.org/wiki/Software/cppunit/
>
> Signed-off-by: Sebastien Bourdelin <sebastien.bourdelin@savoirfairelinux.com>
> ---
> Changes v3 -> v4:
> - move the package from "Librairies" > "Others" to "Development tools"
> (suggested by arnout at mind.be)
> - change the CPPUNIT_VERSION and remove the useless CPPUNIT_SOURCE
> (suggested by jerzy.grzegorek at trzebnica.net and
> arnout at mind.be)
> - change the link which refer to the md5 hash (suggested by
> arnout at mind.be)
> - change the comment for the locally calculated hash in the .hash file
> - change the commit title
> - add a dependency to a toolchain with dynamic library supported
> since the static situation is not correctly detected (suggested by
> arnout at mind.be and thomas.petazzoni at free-electrons.com)
> ---
> Changes v2 -> v3:
> - use the release tarball instead of the git repository (suggested by
> arnout at mind.be)
> - fix the Licence (suggested by arnout at mind.be)
> - add upstream and locally compute .hash (suggested by
> arnout at mind.be)
> ---
> Changes v1 -> v2:
> - used AUTORECONF option (suggested by romain.naour at openwide.fr)
> - removed useless CONFIGURE_CMDS (suggested by romain.naour at openwide.fr)
It's almost done but I noticed that the cppunit documentation is generated with
doxygen because the configure script doesn't handle one of these option:
--disable-doc, --disable-docs, --disable-documentation
The build will fail if doxygen is not found on the system (which is generally
the case in auto-builders)
I have attached a patch that implement --disable-docs option but since it touch
the configure.ac file, the package will need again CPPUNIT_AUTORECONF = YES.
Can you please integrate this patch in v5.
In the same time I'll upstream it.
Best regards,
--
Romain Naour
OPEN WIDE Ing?nierie - Paris
23/25, rue Daviel| 75013 PARIS
http://ingenierie.openwide.fr
Le blog des technologies libres et embarqu?es :
http://www.linuxembedded.fr
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-add-option-to-disable-documentations.patch
Type: text/x-patch
Size: 1254 bytes
Desc: not available
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20141028/ac50072b/attachment.bin>
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Buildroot] [PATCH v4] cppunit: new package
2014-10-28 22:32 ` Romain Naour
@ 2014-10-28 23:01 ` Romain Naour
0 siblings, 0 replies; 3+ messages in thread
From: Romain Naour @ 2014-10-28 23:01 UTC (permalink / raw)
To: buildroot
Hi Sebastien,
Le 28/10/2014 23:32, Romain Naour a ?crit :
> Hi Sebastien,
>
> Le 16/10/2014 17:46, Sebastien Bourdelin a ?crit :
>> CppUnit is the C++ port of the famous JUnit framework for unit testing.
>> Test output is in XML or text format for automatic testing and GUI
>> based for supervised tests.
>>
>> http://www.freedesktop.org/wiki/Software/cppunit/
>>
>> Signed-off-by: Sebastien Bourdelin <sebastien.bourdelin@savoirfairelinux.com>
>> ---
>> Changes v3 -> v4:
>> - move the package from "Librairies" > "Others" to "Development tools"
>> (suggested by arnout at mind.be)
>> - change the CPPUNIT_VERSION and remove the useless CPPUNIT_SOURCE
>> (suggested by jerzy.grzegorek at trzebnica.net and
>> arnout at mind.be)
>> - change the link which refer to the md5 hash (suggested by
>> arnout at mind.be)
>> - change the comment for the locally calculated hash in the .hash file
>> - change the commit title
>> - add a dependency to a toolchain with dynamic library supported
>> since the static situation is not correctly detected (suggested by
>> arnout at mind.be and thomas.petazzoni at free-electrons.com)
>> ---
>> Changes v2 -> v3:
>> - use the release tarball instead of the git repository (suggested by
>> arnout at mind.be)
>> - fix the Licence (suggested by arnout at mind.be)
>> - add upstream and locally compute .hash (suggested by
>> arnout at mind.be)
>> ---
>> Changes v1 -> v2:
>> - used AUTORECONF option (suggested by romain.naour at openwide.fr)
>> - removed useless CONFIGURE_CMDS (suggested by romain.naour at openwide.fr)
>
> It's almost done but I noticed that the cppunit documentation is generated with
> doxygen because the configure script doesn't handle one of these option:
> --disable-doc, --disable-docs, --disable-documentation
>
> The build will fail if doxygen is not found on the system (which is generally
> the case in auto-builders)
>
> I have attached a patch that implement --disable-docs option but since it touch
> the configure.ac file, the package will need again CPPUNIT_AUTORECONF = YES.
>
> Can you please integrate this patch in v5.
> In the same time I'll upstream it.
>
Ok, forget that. You just need to add CPPUNIT_CONF_OPTS = --disable-doxygen in
cppunit.mk file.
Best regards,
--
Romain Naour
OPEN WIDE Ing?nierie - Paris
23/25, rue Daviel| 75013 PARIS
http://ingenierie.openwide.fr
Le blog des technologies libres et embarqu?es :
http://www.linuxembedded.fr
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2014-10-28 23:01 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-10-16 15:46 [Buildroot] [PATCH v4] cppunit: new package Sebastien Bourdelin
2014-10-28 22:32 ` Romain Naour
2014-10-28 23:01 ` Romain Naour
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox