diff mbox series

[isar-cip-core] recipes-core: Add Linux Testing Projects Package

Message ID 20200219085823.21768-1-Quirin.Gylstorff@siemens.com (mailing list archive)
State Accepted
Headers show
Series [isar-cip-core] recipes-core: Add Linux Testing Projects Package | expand

Commit Message

Gylstorff Quirin Feb. 19, 2020, 8:58 a.m. UTC
From: Quirin Gylstorff <quirin.gylstorff@siemens.com>

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

Signed-off-by: Quirin Gylstorff <quirin.gylstorff@siemens.com>
---
 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

Comments

Jan Kiszka Feb. 19, 2020, 9:14 a.m. UTC | #1
On 19.02.20 09:58, Q. Gylstorff wrote:
> From: Quirin Gylstorff <quirin.gylstorff@siemens.com>
> 
> Add a package for the LTP(Linux Testing Porject) to execute
> the LTP testcases from cip-testing
> 
> Signed-off-by: Quirin Gylstorff <quirin.gylstorff@siemens.com>
> ---
>   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
> 
> diff --git a/recipes-core/images/cip-core-image.bb b/recipes-core/images/cip-core-image.bb
> index 179016c..9ee4b25 100644
> --- a/recipes-core/images/cip-core-image.bb
> +++ b/recipes-core/images/cip-core-image.bb
> @@ -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"
> diff --git a/recipes-core/ltp/files/debian/control b/recipes-core/ltp/files/debian/control
> new file mode 100644
> index 0000000..5ec4b9d
> --- /dev/null
> +++ b/recipes-core/ltp/files/debian/control
> @@ -0,0 +1,18 @@
> +Source: ltp-full
> +Section: embedded
> +Priority: optional
> +Maintainer: Gylstorff Quirin <quirin.gylstorff@siemens.com>
> +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.
> diff --git a/recipes-core/ltp/files/debian/rules b/recipes-core/ltp/files/debian/rules
> new file mode 100755
> index 0000000..48d3b83
> --- /dev/null
> +++ b/recipes-core/ltp/files/debian/rules
> @@ -0,0 +1,5 @@
> +#!/usr/bin/make -f
> +export DEB_CFLAGS_MAINT_APPEND  = -Wall  -Wno-format-security
> +%:
> +	dh $@  --with autoreconf
> +
> diff --git a/recipes-core/ltp/ltp-full_20190930.bb b/recipes-core/ltp/ltp-full_20190930.bb
> new file mode 100644
> index 0000000..fc35f5e
> --- /dev/null
> +++ b/recipes-core/ltp/ltp-full_20190930.bb
> @@ -0,0 +1,27 @@
> +#
> +# CIP Core, generic profile
> +#
> +# Copyright (c) Siemens AG, 2020
> +#
> +# Authors:
> +#  Quirin Gylstorff <quirin.gylstorff@siemens.com>
> +#
> +# 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
> +}
> 

Thanks, applied to next.

Jan
diff mbox series

Patch

diff --git a/recipes-core/images/cip-core-image.bb b/recipes-core/images/cip-core-image.bb
index 179016c..9ee4b25 100644
--- a/recipes-core/images/cip-core-image.bb
+++ b/recipes-core/images/cip-core-image.bb
@@ -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"
diff --git a/recipes-core/ltp/files/debian/control b/recipes-core/ltp/files/debian/control
new file mode 100644
index 0000000..5ec4b9d
--- /dev/null
+++ b/recipes-core/ltp/files/debian/control
@@ -0,0 +1,18 @@ 
+Source: ltp-full
+Section: embedded
+Priority: optional
+Maintainer: Gylstorff Quirin <quirin.gylstorff@siemens.com>
+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.
diff --git a/recipes-core/ltp/files/debian/rules b/recipes-core/ltp/files/debian/rules
new file mode 100755
index 0000000..48d3b83
--- /dev/null
+++ b/recipes-core/ltp/files/debian/rules
@@ -0,0 +1,5 @@ 
+#!/usr/bin/make -f
+export DEB_CFLAGS_MAINT_APPEND  = -Wall  -Wno-format-security
+%:
+	dh $@  --with autoreconf
+
diff --git a/recipes-core/ltp/ltp-full_20190930.bb b/recipes-core/ltp/ltp-full_20190930.bb
new file mode 100644
index 0000000..fc35f5e
--- /dev/null
+++ b/recipes-core/ltp/ltp-full_20190930.bb
@@ -0,0 +1,27 @@ 
+#
+# CIP Core, generic profile
+#
+# Copyright (c) Siemens AG, 2020
+#
+# Authors:
+#  Quirin Gylstorff <quirin.gylstorff@siemens.com>
+#
+# 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
+}