Skip to contentSkip to conversation

cukinia: new package

PATCH New Shyam Saini 2 participants 4 messages May 5, 2020 – Oct 8, 2020

lore
Share & tools
lore
#0 lore raw

v4 cover cukinia: new package

After an initial proposal[1] to include Cukinia back in 2017, the project has since gained in versatility and established a growing userbase.

Following Angelo Compagnucci's call[2] earlier on the mailing list, here is a second and updated submission.

[1] https://patchwork.ozlabs.org/project/buildroot/patch/20170425135814.8787-1-alexandre.leblanc at savoirfairelinux.com/
[2] http://lists.busybox.net/pipermail/buildroot/2020-April/281338.html

Changelog:
V3->V4
- Use cukinia version 0.5.1 with some bug fixes
- Change sha256 hash for cukinia tar.gz package

V2->V3
- Adjust Config.in as per Thomas's suggestion
- Use simplest cukinia.conf file i.e, just check root user

V1->V2
- It is not recommended to run it at boot time so remove init SZZcukinia script file and, remove BR2_PACKAGE_CUKINIA_BOOT option and all related configs
- Extend cukinia.conf file to include more example use cases.
- Add cukinia.hash file and likewise add CUKINIA_LICENSE_FILES optionA.

Shyam Saini (1):
cukinia: new package

 DEVELOPERS                   |  3 +++
 package/Config.in            |  1 +
 package/cukinia/Config.in    | 15 +++++++++++++++
 package/cukinia/cukinia.conf |  4 ++++
 package/cukinia/cukinia.hash |  4 ++++
 package/cukinia/cukinia.mk   | 20 ++++++++++++++++++++
 6 files changed, 47 insertions(+)
 create mode 100644 package/cukinia/Config.in
 create mode 100644 package/cukinia/cukinia.conf
 create mode 100644 package/cukinia/cukinia.hash
 create mode 100644 package/cukinia/cukinia.mk
Signature · 1 line
2.20.1
#1 lore raw

PATCH v4 1/1 cukinia: new package

From: Shyam Saini <[email protected]>

Cukinia is a test framework designed to help Linux-based embedded systems developers run simple system-level validation tests on their firmware.

It is designed to integrate well with embedded Linux systems generation tools, and can be run manually (providing a quick colourized summary to eye-catch regressions), or any of continuous available integration framework, by generating Junit-XML or CSV test reports.

---
 DEVELOPERS                   |  3 +++
 package/Config.in            |  1 +
 package/cukinia/Config.in    | 15 +++++++++++++++
 package/cukinia/cukinia.conf |  4 ++++
 package/cukinia/cukinia.hash |  4 ++++
 package/cukinia/cukinia.mk   | 20 ++++++++++++++++++++
 6 files changed, 47 insertions(+)
 create mode 100644 package/cukinia/Config.in
 create mode 100644 package/cukinia/cukinia.conf
 create mode 100644 package/cukinia/cukinia.hash
 create mode 100644 package/cukinia/cukinia.mk
DEVELOPERS +3 -0
index e427ab15d4..a207d76cdc 100644
@@ -2342,6 +2342,9 @@ F:	package/tunctl/
 F:	package/ubus/
 F:	package/wolfssl/
 
+N:	Shyam Saini <[email protected]>
+F:	package/cukinia/
+
 N:	Simon Dawson <[email protected]>
 F:	boot/at91bootstrap3/
 F:	package/cppzmq/
package/Config.in +1 -0
index c12676d859..4d41af667b 100644
@@ -153,6 +153,7 @@ menu "Development tools"
 	source "package/check/Config.in"
 	source "package/cmake/Config.in"
 	source "package/cppunit/Config.in"
+	source "package/cukinia/Config.in"
 	source "package/cunit/Config.in"
 	source "package/cvs/Config.in"
 	source "package/cxxtest/Config.in"
package/cukinia/Config.in new file +15 -0
new file mode 100644
index 0000000000..37373e9a08
@@ -0,0 +1,15 @@
+config BR2_PACKAGE_CUKINIA
+	bool "cukinia"
+	select BR2_PACKAGE_GAWK if !BR2_PACKAGE_BUSYBOX
+	help
+	  Cukinia is designed to help Linux-based embedded firmware
+	  developers run system-level validation tests on their product.
+	  It provides a simple POSIX shell overlay, and primitives to
+	  make sure system integrations and features keep behaving the
+	  way they should.
+
+	  By default, cukinia reports colorized test results on stdout,
+	  but can also report them as CSV and JUnit-XML for easy
+	  integration with CI systems such as Jenkins.
+
+	  https://github.com/savoirfairelinux/cukinia
package/cukinia/cukinia.conf new file +4 -0
new file mode 100644
index 0000000000..e5f304d39f
@@ -0,0 +1,4 @@
+# Note: Cukinia will produce colorized output if the TERM environment
+# variable matches vt220, xterm or linux.
+cukinia_log $(_colorize blue "############# Cukinia tests ##############")
+cukinia_user root
package/cukinia/cukinia.hash new file +4 -0
new file mode 100644
index 0000000000..e6ae602011
@@ -0,0 +1,4 @@
+# locally computed
+sha256  b867ec63e448e7fa0a9276f6844a8b3a8f92d99e63e8518fe24e9debd32679b5  cukinia-0.5.1.tar.gz
+sha256  b40930bbcf80744c86c46a12bc9da056641d722716c378f5659b9e555ef833e1  LICENSE
+sha256  8ceb4b9ee5adedde47b31e975c1d90c73ad27b6b165a1dcd80c7c545eb65b903  LICENSE.GPLv3
package/cukinia/cukinia.mk new file +20 -0
new file mode 100644
index 0000000000..097dbdd5f6
@@ -0,0 +1,20 @@
+################################################################################
+#
+# cukinia
+#
+################################################################################
+
+CUKINIA_VERSION = 0.5.1
+CUKINIA_SITE = $(call github,savoirfairelinux,cukinia,v$(CUKINIA_VERSION))
+CUKINIA_LICENSE = Apache-2.0 or GPL-3.0
+CUKINIA_LICENSE_FILES = LICENSE LICENSE.GPLv3
+
+define CUKINIA_INSTALL_TARGET_CMDS
+        $(INSTALL) -D -m 0755 $(@D)/cukinia \
+                $(TARGET_DIR)/usr/bin/cukinia
+
+        $(INSTALL) -D -m 0644 $(CUKINIA_PKGDIR)/cukinia.conf \
+                $(TARGET_DIR)/etc/cukinia/cukinia.conf
+endef
+
+$(eval $(generic-package))
Signature · 1 line
2.20.1
#2 lore raw

PATCH v4 1/1 cukinia: new package

Hello Shyam,

Quoted 12 lines · On Tue, 5 May 2020 09:22:43 -0400 Shyam Saini <[email protected]> wrote:

From: Shyam Saini <[email protected]>

Cukinia is a test framework designed to help Linux-based embedded systems developers run simple system-level validation tests on their firmware.

It is designed to integrate well with embedded Linux systems generation tools, and can be run manually (providing a quick colourized summary to eye-catch regressions), or any of continuous available integration framework, by generating Junit-XML or CSV test reports.

Quoted 3 lines

Thanks, I have applied your patch! The only minor mistake was that you didn't use tabs in the INSTALL_TARGET_CMDS, which was reported by "make check-package". The commit title should also have had a package/cukinia prefix.

I fixed those minor details when applying. Thanks!

Thomas

Signature · 3 lines
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
#3 lore raw

PATCH v4 1/1 cukinia: new package

Hi Thomas,

Quoted 21 lines

Hello Shyam,

Quoted 12 lines · On Tue, 5 May 2020 09:22:43 -0400 Shyam Saini <[email protected]> wrote:

From: Shyam Saini <[email protected]>

Cukinia is a test framework designed to help Linux-based embedded systems developers run simple system-level validation tests on their firmware.

It is designed to integrate well with embedded Linux systems generation tools, and can be run manually (providing a quick colourized summary to eye-catch regressions), or any of continuous available integration framework, by generating Junit-XML or CSV test reports.

Quoted 3 lines
Quoted 6 lines

Thanks, I have applied your patch! The only minor mistake was that you didn't use tabs in the INSTALL_TARGET_CMDS, which was reported by "make check-package". The commit title should also have had a package/cukinia prefix.

I fixed those minor details when applying. Thanks!

Thanks a lot for fixing these minor issues. Will take extra care next time.