Skip to contentSkip to conversation

recipes-core: Add Linux Testing Projects Package

PATCH Applied Q. Gylstorff 2 participants 2 messages Feb 19, 2020

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 recipes-core: Add Linux Testing Projects Package

From: Quirin Gylstorff <[email protected]>

Add a package for the LTP(Linux Testing Porject) to execute the LTP testcases from cip-testing

---
 recipes-core/images/cip-core-image.bb |  2 ++
 recipes-core/ltp/files/debian/control | 18 ++++++++++++++++++
 recipes-core/ltp/files/debian/rules   |  5 +++++
 recipes-core/ltp/ltp-full_20190930.bb | 27 +++++++++++++++++++++++++++
 4 files changed, 52 insertions(+)
 create mode 100644 recipes-core/ltp/files/debian/control
 create mode 100755 recipes-core/ltp/files/debian/rules
 create mode 100644 recipes-core/ltp/ltp-full_20190930.bb
recipes-core/images/cip-core-image.bb +2 -0
index 179016c..9ee4b25 100644
@@ -15,3 +15,5 @@ ISAR_RELEASE_CMD = "git -C ${LAYERDIR_cip-core} describe --tags --dirty --always
 DESCRIPTION = "CIP Core image"
 
 IMAGE_INSTALL += "customizations"
+# for cip-testing
+IMAGE_INSTALL += "ltp-full"
recipes-core/ltp/files/debian/control new file +18 -0
new file mode 100644
index 0000000..5ec4b9d
@@ -0,0 +1,18 @@
+Source: ltp-full
+Section: embedded
+Priority: optional
+Maintainer: Gylstorff Quirin <[email protected]>
+Build-Depends: debhelper (>= 11), autotools-dev
+Standards-Version: 4.1.3
+Homepage: https://linux-test-project.github.io/
+
+Package: ltp-full
+Architecture: any
+Depends: ${shlibs:Depends}, ${misc:Depends}
+Description: A collection of tools for testing the Linux kernel
+ The Linux Test Project is a joint project started by SGI,
+ developed and maintained by IBM, Cisco, Fujitsu, SUSE,
+ Red Hat and others, that has a goal to deliver test suites to the
+ open source community that validate the reliability, robustness,
+ and stability of Linux. The LTP testsuite contains a collection
+ of tools for testing the Linux kernel and related features.
recipes-core/ltp/files/debian/rules new file +5 -0
new file mode 100755
index 0000000..48d3b83
@@ -0,0 +1,5 @@
+#!/usr/bin/make -f
+export DEB_CFLAGS_MAINT_APPEND  = -Wall  -Wno-format-security
+%:
+	dh $@  --with autoreconf
+
recipes-core/ltp/ltp-full_20190930.bb new file +27 -0
new file mode 100644
index 0000000..fc35f5e
@@ -0,0 +1,27 @@
+#
+# CIP Core, generic profile
+#
+# Copyright (c) Siemens AG, 2020
+#
+# Authors:
+#  Quirin Gylstorff <[email protected]>
+#
+# SPDX-License-Identifier: MIT
+#
+
+inherit dpkg
+
+DESCRIPTION = "Linux Test project for CIP"
+
+SRC_URI = " \
+   https://github.com/linux-test-project/ltp/releases/download/20190930/ltp-full-${PV}.tar.xz \
+   file://debian \
+   "
+SRC_URI[sha256sum] = "c7049590df2da3135030db5ef4c0076b76c789724a752b1102b4a01db0189f9a"
+
+
+do_prepare_build() {
+        cp -R ${WORKDIR}/debian ${S}
+        deb_create_compat
+        deb_add_changelog
+}
Signature · 1 line
2.20.1
Applied
#1 lore raw
Quoted 85 lines · Q. Gylstorff

From: Quirin Gylstorff <[email protected]>

Add a package for the LTP(Linux Testing Porject) to execute the LTP testcases from cip-testing

---
  recipes-core/images/cip-core-image.bb |  2 ++
  recipes-core/ltp/files/debian/control | 18 ++++++++++++++++++
  recipes-core/ltp/files/debian/rules   |  5 +++++
  recipes-core/ltp/ltp-full_20190930.bb | 27 +++++++++++++++++++++++++++
  4 files changed, 52 insertions(+)

create mode 100644 recipes-core/ltp/files/debian/control create mode 100755 recipes-core/ltp/files/debian/rules create mode 100644 recipes-core/ltp/ltp-full_20190930.bb

recipes-core/images/cip-core-image.bb +2 -0
index 179016c..9ee4b25 100644
@@ -15,3 +15,5 @@ ISAR_RELEASE_CMD = "git -C ${LAYERDIR_cip-core} describe --tags --dirty --always
  DESCRIPTION = "CIP Core image"
 
  IMAGE_INSTALL += "customizations"
+# for cip-testing
+IMAGE_INSTALL += "ltp-full"
recipes-core/ltp/files/debian/control new file +18 -0
new file mode 100644
index 0000000..5ec4b9d
@@ -0,0 +1,18 @@
+Source: ltp-full
+Section: embedded
+Priority: optional
+Maintainer: Gylstorff Quirin <[email protected]>
+Build-Depends: debhelper (>= 11), autotools-dev
+Standards-Version: 4.1.3
+Homepage: https://linux-test-project.github.io/
+
+Package: ltp-full
+Architecture: any
+Depends: ${shlibs:Depends}, ${misc:Depends}
+Description: A collection of tools for testing the Linux kernel
+ The Linux Test Project is a joint project started by SGI,
+ developed and maintained by IBM, Cisco, Fujitsu, SUSE,
+ Red Hat and others, that has a goal to deliver test suites to the
+ open source community that validate the reliability, robustness,
+ and stability of Linux. The LTP testsuite contains a collection
+ of tools for testing the Linux kernel and related features.
recipes-core/ltp/files/debian/rules new file +5 -0
new file mode 100755
index 0000000..48d3b83
@@ -0,0 +1,5 @@
+#!/usr/bin/make -f
+export DEB_CFLAGS_MAINT_APPEND  = -Wall  -Wno-format-security
+%:
+	dh $@  --with autoreconf
+
recipes-core/ltp/ltp-full_20190930.bb new file +17 -0
new file mode 100644
index 0000000..fc35f5e
@@ -0,0 +1,27 @@
+#
+# CIP Core, generic profile
+#
+# Copyright (c) Siemens AG, 2020
+#
+# Authors:
+#  Quirin Gylstorff <[email protected]>
+#
+# SPDX-License-Identifier: MIT
+#
+
+inherit dpkg
+
+DESCRIPTION = "Linux Test project for CIP"
+
+SRC_URI = " \
+   https://github.com/linux-test-project/ltp/releases/download/20190930/ltp-full-${PV}.tar.xz \

recipes-core/ltp/ltp-full_20190930.bb line 27

Quoted 10 lines
recipes-core/ltp/ltp-full_20190930.bb new file +10 -0
+   file://debian \
+   "
+SRC_URI[sha256sum] = "c7049590df2da3135030db5ef4c0076b76c789724a752b1102b4a01db0189f9a"
+
+
+do_prepare_build() {
+        cp -R ${WORKDIR}/debian ${S}
+        deb_create_compat
+        deb_add_changelog
+}

Thanks, applied to next.

Jan

Signature · 2 lines
Sie	mens AG, Corporate Technology, CT RDA IOT SES-DE
Corporate Competence Center Embedded Linux