Skip to contentSkip to conversation

cxxtest: new package

PATCH Superseded Abhishek Singh 2 participants 5 messages Nov 26, 2015 – Dec 16, 2015

v2 of 4 Superseded Latest is v4 →

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 cxxtest: new package

---
changes v1 -> v2:
- remove dependency on host-python
- add comments in mk file

---
 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
index bdc3063..6e71d25 100644
@@ -116,6 +116,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
new file mode 100644
index 0000000..7512e4b
@@ -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
new file mode 100644
index 0000000..f552e80
@@ -0,0 +1,2 @@
+# Locally computed:
+sha256	1c154fef91c65dbf1cd4519af7ade70a61d85a923b6e0c0b007dc7f4895cf7d8	cxxtest-4.4.tar.gz
package/cxxtest/cxxtest.mk new file +30 -0
new file mode 100644
index 0000000..cc29608
@@ -0,0 +1,30 @@
+################################################################################
+#
+# cxxtest
+#
+################################################################################
+
+CXXTEST_VERSION = 4.4
+CXXTEST_SOURCE = cxxtest-$(CXXTEST_VERSION).tar.gz
+CXXTEST_SITE = http://sourceforge.net/projects/cxxtest/files/cxxtest/$(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. cxxtestgen is
+# a script which is used to process header files to generate C++ source files.
+# Compiling test runner requires CxxTest header files which are installed in
+# the staging directory.
+
+$(eval $(generic-package))
+$(eval $(host-python-package))
Signature · 1 line
2.6.2
#1 lore raw

PATCH v2 1/1 cxxtest: new package

Please treat this as a polite reminder for this pending patch.

Quoted 90 lines · Abhishek Singh

---
changes v1 -> v2:
- remove dependency on host-python
- add comments in mk file

---
  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
index bdc3063..6e71d25 100644
@@ -116,6 +116,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
new file mode 100644
index 0000000..7512e4b
@@ -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
new file mode 100644
index 0000000..f552e80
@@ -0,0 +1,2 @@
+# Locally computed:
+sha256	1c154fef91c65dbf1cd4519af7ade70a61d85a923b6e0c0b007dc7f4895cf7d8	cxxtest-4.4.tar.gz
package/cxxtest/cxxtest.mk new file +30 -0
new file mode 100644
index 0000000..cc29608
@@ -0,0 +1,30 @@
+################################################################################
+#
+# cxxtest
+#
+################################################################################
+
+CXXTEST_VERSION = 4.4
+CXXTEST_SOURCE = cxxtest-$(CXXTEST_VERSION).tar.gz
+CXXTEST_SITE = http://sourceforge.net/projects/cxxtest/files/cxxtest/$(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. cxxtestgen is
+# a script which is used to process header files to generate C++ source files.
+# Compiling test runner requires CxxTest header files which are installed in
+# the staging directory.
+
+$(eval $(generic-package))
+$(eval $(host-python-package))
#2 lore raw

PATCH v2 1/1 cxxtest: new package

In reply to Abhishek Singh

Abhishek, All,

Sorry for the delay, I'm now looking at your patch...

On 2015-11-26 19:35 +0530, Abhishek Singh spake thusly:

Quoted 8 lines

---
changes v1 -> v2:
- remove dependency on host-python
- add comments in mk file

[--SNIP--]

Quoted 6 lines
package/cxxtest/cxxtest.mk new file +0 -0
new file mode 100644
index 0000000..cc29608

package/cxxtest/cxxtest.mk line 9

Quoted 9 lines
package/cxxtest/cxxtest.mk new file +9 -0
@@ -0,0 +1,30 @@
+################################################################################
+#
+# cxxtest
+#
+################################################################################
+
+CXXTEST_VERSION = 4.4
+CXXTEST_SOURCE = cxxtest-$(CXXTEST_VERSION).tar.gz
+CXXTEST_SITE = http://sourceforge.net/projects/cxxtest/files/cxxtest/$(CXXTEST_VERSION)

SF.net is getting a bad reputation these days, and there is an official Github repository with the latest 4.4 release:
https://github.com/CxxTest/cxxtest

Can we use Github instead?

Quoted 8 lines
package/cxxtest/cxxtest.mk new file +8 -0
+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
+

package/cxxtest/cxxtest.mk line 27

Quoted 10 lines
package/cxxtest/cxxtest.mk new file +10 -0
+# 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. cxxtestgen is
+# a script which is used to process header files to generate C++ source files.
+# Compiling test runner requires CxxTest header files which are installed in
+# the staging directory.

OK, I think we need a bit more info about all tis, as I am not sure I understand. Let me try to reformulate from what I understood:

- cxxtest is made of twoo parts:
- a tool to parse header files (supposedly from a project)
- a set of header files

- the tool is built as a host package, so it can be used natively

- the headers set is installed in staging

Then the use-case is for a user to use the csstest tool to parse his own headers, that will supposedly generate a test harness, which is then cross-compiled and run on the target. Right?

Could you expand a bit on the explanations, please?

Regards,
Yann E. MORIN.

Quoted 9 lines
package/cxxtest/cxxtest.mk new file +2 -0
+$(eval $(generic-package))
+$(eval $(host-python-package))
Signature · 6 lines
2.6.2

_______________________________________________
buildroot mailing list
buildroot at busybox.net
http://lists.busybox.net/mailman/listinfo/buildroot
Signature · 6 lines
.-----------------.--------------------.------------------.--------------------.
|  Yann E. MORIN  | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software  Designer | \ / CAMPAIGN     |  ___               |
| +33 223 225 172 `------------.-------:  X  AGAINST      |  \e/  There is no  |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL    |   v   conspiracy.  |
'------------------------------^-------^------------------^--------------------'
#3 lore raw

PATCH v2 1/1 cxxtest: new package

Hi Yann,

Quoted 33 lines · Yann E. MORIN

Abhishek, All,

Sorry for the delay, I'm now looking at your patch...

On 2015-11-26 19:35 +0530, Abhishek Singh spake thusly:

Quoted 8 lines

---
changes v1 -> v2:
- remove dependency on host-python
- add comments in mk file

[--SNIP--]

Quoted 6 lines
package/cxxtest/cxxtest.mk new file +0 -0
new file mode 100644
index 0000000..cc29608

package/cxxtest/cxxtest.mk line 9

Quoted 9 lines
package/cxxtest/cxxtest.mk new file +9 -0
@@ -0,0 +1,30 @@
+################################################################################
+#
+# cxxtest
+#
+################################################################################
+
+CXXTEST_VERSION = 4.4
+CXXTEST_SOURCE = cxxtest-$(CXXTEST_VERSION).tar.gz
+CXXTEST_SITE = http://sourceforge.net/projects/cxxtest/files/cxxtest/$(CXXTEST_VERSION)

SF.net is getting a bad reputation these days, and there is an official Github repository with the latest 4.4 release:
https://github.com/CxxTest/cxxtest

Quoted 1 line

Can we use Github instead?

Yes, I will change it.

Quoted 29 lines
Quoted 8 lines
package/cxxtest/cxxtest.mk new file +8 -0
+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
+

package/cxxtest/cxxtest.mk line 27

Quoted 10 lines
package/cxxtest/cxxtest.mk new file +10 -0
+# 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. cxxtestgen is
+# a script which is used to process header files to generate C++ source files.
+# Compiling test runner requires CxxTest header files which are installed in
+# the staging directory.

OK, I think we need a bit more info about all tis, as I am not sure I understand. Let me try to reformulate from what I understood:

- cxxtest is made of twoo parts:
- a tool to parse header files (supposedly from a project)
- a set of header files

- the tool is built as a host package, so it can be used natively

- the headers set is installed in staging

Quoted 8 lines

Then the use-case is for a user to use the csstest tool to parse his own headers, that will supposedly generate a test harness, which is then cross-compiled and run on the target. Right?

Could you expand a bit on the explanations, please?

Regards,
Yann E. MORIN.

What you understood is correct. I am planning to add following comments in next patch. Please tell, does it explains what you expect?

"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 to cross-compile test harness to generate executable which will run on target."

Quoted 9 lines
Quoted 9 lines
package/cxxtest/cxxtest.mk new file +2 -0
+$(eval $(generic-package))
+$(eval $(host-python-package))
Signature · 6 lines
2.6.2

_______________________________________________
buildroot mailing list
buildroot at busybox.net
http://lists.busybox.net/mailman/listinfo/buildroot

Regards,
Abhishek

#4 lore raw

PATCH v2 1/1 cxxtest: new package

Abhishek, All,

On 2015-12-16 18:36 +0530, Abhishek Singh spake thusly:

Quoted 2 lines · Yann E. MORIN
Quoted 1 line

On 2015-11-26 19:35 +0530, Abhishek Singh spake thusly:

[--SNIP--]

Quoted 30 lines
Quoted 15 lines

package/cxxtest/cxxtest.mk line 27

Quoted 4 lines
package/cxxtest/cxxtest.mk new file +4 -0
+# CxxTest uses python infrastructure as the build system. cxxtestgen is
+# a script which is used to process header files to generate C++ source files.
+# Compiling test runner requires CxxTest header files which are installed in
+# the staging directory.

OK, I think we need a bit more info about all tis, as I am not sure I understand. Let me try to reformulate from what I understood:

- cxxtest is made of twoo parts:
- a tool to parse header files (supposedly from a project)
- a set of header files

- the tool is built as a host package, so it can be used natively

- the headers set is installed in staging

Quoted 8 lines

Then the use-case is for a user to use the csstest tool to parse his own headers, that will supposedly generate a test harness, which is then cross-compiled and run on the target. Right?

Could you expand a bit on the explanations, please?

Regards,
Yann E. MORIN.

What you understood is correct. I am planning to add following comments in next patch. Please tell, does it explains what you expect?

"CxxTest uses python infrastructure as the build system. It consists of two parts:

Quoted 7 lines

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 to cross-compile test harness to generate executable which will run on target."

That's good for me. Thanks! :-)

Regards,
Yann E. MORIN.

Signature · 6 lines
.-----------------.--------------------.------------------.--------------------.
|  Yann E. MORIN  | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software  Designer | \ / CAMPAIGN     |  ___               |
| +33 223 225 172 `------------.-------:  X  AGAINST      |  \e/  There is no  |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL    |   v   conspiracy.  |
'------------------------------^-------^------------------^--------------------'