cxxtest: new package
PATCH v4 1/1 cxxtest: new package
---
changes v3 -> v4:
- remove CXXTEST_SOURCE (suggested by Jerzy Grzegorek)
changes v2 -> v3:
- change source download path (suggested by Yann E. Morin)
- modify comment (suggested by Yann E. Morin)
changes v1 -> v2:
- remove dependency on host-python (suggested by Thomas Petazzoni)
- add comments in mk file (suggested by Thomas Petazzoni)
--- package/Config.in | 1 + package/cxxtest/Config.in | 10 ++++++++++ package/cxxtest/cxxtest.hash | 2 ++ package/cxxtest/cxxtest.mk | 30 ++++++++++++++++++++++++++++++ 4 files changed, 43 insertions(+) create mode 100644 package/cxxtest/Config.in create mode 100644 package/cxxtest/cxxtest.hash create mode 100644 package/cxxtest/cxxtest.mk
package/Config.in +1 -0
@@ -118,6 +118,7 @@ menu "Development tools" source "package/cmake/Config.in" source "package/cppunit/Config.in" source "package/cvs/Config.in" + source "package/cxxtest/Config.in" if BR2_PACKAGE_BUSYBOX_SHOW_OTHERS source "package/diffutils/Config.in" source "package/dos2unix/Config.in"
package/cxxtest/Config.in new file +10 -0
@@ -0,0 +1,10 @@ +config BR2_PACKAGE_CXXTEST + bool "cxxtest" + depends on BR2_INSTALL_LIBSTDCPP + help + CxxTest is a unit testing framework for C++ + + http://cxxtest.com/ + +comment "cxxtest needs toolchain with C++ support" + depends on !BR2_INSTALL_LIBSTDCPP
package/cxxtest/cxxtest.hash new file +2 -0
@@ -0,0 +1,2 @@ +# Locally computed: +sha256 1c154fef91c65dbf1cd4519af7ade70a61d85a923b6e0c0b007dc7f4895cf7d8 cxxtest-4.4.tar.gz
package/cxxtest/cxxtest.mk new file +30 -0
@@ -0,0 +1,30 @@ +####################################################################################### +# +# cxxtest +# +####################################################################################### + +CXXTEST_VERSION = 4.4 +CXXTEST_SITE = https://github.com/CxxTest/cxxtest/releases/download/$(CXXTEST_VERSION) +CXXTEST_LICENSE = LGPLv3 +CXXTEST_LICENSE_FILES = COPYING +CXXTEST_INSTALL_STAGING = YES +CXXTEST_INSTALL_TARGET = NO +CXXTEST_DEPENDENCIES = host-cxxtest +HOST_CXXTEST_SETUP_TYPE = setuptools +HOST_CXXTEST_SUBDIR = python + +# Copy CxxTest header files to staging directory +define CXXTEST_INSTALL_STAGING_CMDS + mkdir -p $(STAGING_DIR)/usr/include/cxxtest + cp $(@D)/cxxtest/* $(STAGING_DIR)/usr/include/cxxtest +endef + +# CxxTest uses python infrastructure as the build system. It consists of two parts: +# 1. cxxtestgen tool to process tests defined in header files to generate C++ source +# files. cxxtestgen is built as a host package, so that it can be used natively. +# 2. A set of header files which are installed in staging directory. This will be +# used in cross-compiling test harness to generate executable which will run on target. + +$(eval $(generic-package)) +$(eval $(host-python-package))
Signature · 1 line
2.6.2
PATCH v4 1/1 cxxtest: new package
Quoted 46 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
"Abhishek" == Abhishek Singh <[email protected]> writes:
Reviewed-by Marcin Nowakowski <[email protected]>Reviewed-by Rahul Bedarkar <[email protected]>Reviewed-by Piotr Nakraszewicz <[email protected]>Reviewed-by Jerzy Grzegorek <[email protected]>Signed-off-by Abhishek Singh <[email protected]>---
changes v3 -> v4:
- removeCXXTEST_SOURCE(suggested by Jerzy Grzegorek)changes v2 -> v3:
- change source download path (suggested by Yann E. Morin)
- modify comment (suggested by Yann E. Morin)changes v1 -> v2:
- remove dependency on host-python (suggested by Thomas Petazzoni)
- add comments in mk file (suggested by Thomas Petazzoni)--- package/Config.in | 1 + package/cxxtest/Config.in | 10 ++++++++++ package/cxxtest/cxxtest.hash | 2 ++ package/cxxtest/cxxtest.mk | 30 ++++++++++++++++++++++++++++++ 4 files changed, 43 insertions(+) create mode 100644 package/cxxtest/Config.in create mode 100644 package/cxxtest/cxxtest.hash create mode 100644 package/cxxtest/cxxtest.mkpackage/Config.in +1
-0@@ -118,6 +118,7 @@ menu "Development tools" source "package/cmake/Config.in" source "package/cppunit/Config.in" source "package/cvs/Config.in" + source "package/cxxtest/Config.in" if BR2_PACKAGE_BUSYBOX_SHOW_OTHERS source "package/diffutils/Config.in" source "package/dos2unix/Config.in"package/cxxtest/Config.in new file +0
-0
package/cxxtest/Config.in line 9
Quoted 9 lines
package/cxxtest/Config.in new file +9
-0@@ -0,0 +1,10 @@ +config BR2_PACKAGE_CXXTEST + bool "cxxtest" + depends on BR2_INSTALL_LIBSTDCPP + help + CxxTest is a unit testing framework for C++ + + http://cxxtest.com/ + +comment "cxxtest needs toolchain with C++ support"
The format is <pkg> needs a toolchain w/ <option>"
Quoted 26 lines
package/cxxtest/Config.in new file +1
-0+ depends on !BR2_INSTALL_LIBSTDCPPpackage/cxxtest/cxxtest.hash new file +2
-0@@ -0,0 +1,2 @@ +# Locally computed: +sha256 1c154fef91c65dbf1cd4519af7ade70a61d85a923b6e0c0b007dc7f4895cf7d8 cxxtest-4.4.tar.gzpackage/cxxtest/cxxtest.mk new file +11
-0@@ -0,0 +1,30 @@ +####################################################################################### +# +# cxxtest +# +####################################################################################### + +CXXTEST_VERSION = 4.4 +CXXTEST_SITE = https://github.com/CxxTest/cxxtest/releases/download/$(CXXTEST_VERSION) +CXXTEST_LICENSE = LGPLv3 +CXXTEST_LICENSE_FILES = COPYING +CXXTEST_INSTALL_STAGING = YES
package/cxxtest/cxxtest.mk line 21
Quoted 10 lines
package/cxxtest/cxxtest.mk new file +10
-0+CXXTEST_INSTALL_TARGET = NO +CXXTEST_DEPENDENCIES = host-cxxtest +HOST_CXXTEST_SETUP_TYPE = setuptools +HOST_CXXTEST_SUBDIR = python + +# Copy CxxTest header files to staging directory +define CXXTEST_INSTALL_STAGING_CMDS + mkdir -p $(STAGING_DIR)/usr/include/cxxtest + cp $(@D)/cxxtest/* $(STAGING_DIR)/usr/include/cxxtest +endef
We normally use $(INSTALL) instead of mkdir / cp, so I changed this to be:
$(INSTALL) -m 755 -d $(STAGING_DIR)/usr/include/cxxtest $(INSTALL) -m 644 -t $(STAGING_DIR)/usr/include/cxxtest $(@D)/cxxtest/*
It is a little odd to install .cpp files to include/cxxtest, but Ok - I guess that's just how cxxtest is supposed to work (and also how E.G. Debian installs it).
Committed with these fixes, thanks.
Signature · 1 line
Bye, Peter Korsgaard