Skip to contentSkip to conversation

Add support for ltp-ddt_20230127

PATCH In review Ryan Eatmon 2 participants 6 messages Apr 22, 2023 – Apr 23, 2023

lore
Share & tools
lore
#0 lore raw

v3 cover Add support for ltp-ddt_20230127

The internal testing team would like to move to this version as the basis for our internal ltp-ddt. So we need to capture the recipe settings for this version from oe-core master and provide a new version for us to overload.

v3: Put the space in the correct place...
v2: Add missing space to :append line in ltp-ddt_20230127.bb

Ryan Eatmon (2):
ltp: Add version 20230127 from oe_core master
ltp-ddt: Add support for version 20230127

 .../ltp-ddt/ltp-ddt_20230127.bb               |  47 ++++++
 ...002-Remove-OOM-tests-from-runtest-mm.patch |  35 +++++
 .../ltp/ltp/disable_hanging_tests.patch       |  27 ++++
 .../recipes-extended/ltp/ltp_20230127.bb      | 140 ++++++++++++++++++
 4 files changed, 249 insertions(+)
 create mode 100644 meta-arago-extras/recipes-devtools/ltp-ddt/ltp-ddt_20230127.bb
 create mode 100644 meta-arago-extras/recipes-extended/ltp/ltp/0002-Remove-OOM-tests-from-runtest-mm.patch
 create mode 100644 meta-arago-extras/recipes-extended/ltp/ltp/disable_hanging_tests.patch
 create mode 100644 meta-arago-extras/recipes-extended/ltp/ltp_20230127.bb
Signature · 1 line
2.17.1
#1 lore raw

PATCH v3 1/2 ltp: Add version 20230127 from oe_core master

This is a verbatim backport of the ltp_20230127.bb recipe and patches from the oe-core master branch.

---
 ...002-Remove-OOM-tests-from-runtest-mm.patch |  35 +++++
 .../ltp/ltp/disable_hanging_tests.patch       |  27 ++++
 .../recipes-extended/ltp/ltp_20230127.bb      | 140 ++++++++++++++++++
 3 files changed, 202 insertions(+)
 create mode 100644 meta-arago-extras/recipes-extended/ltp/ltp/0002-Remove-OOM-tests-from-runtest-mm.patch
 create mode 100644 meta-arago-extras/recipes-extended/ltp/ltp/disable_hanging_tests.patch
 create mode 100644 meta-arago-extras/recipes-extended/ltp/ltp_20230127.bb
meta-arago-extras/recipes-extended/ltp/ltp/0002-Remove-OOM-tests-from-runtest-mm.patch new file +35 -0
new file mode 100644
index 00000000..6d945700
@@ -0,0 +1,35 @@
+From e87c2ad1e16cdbd62ba71b2ace3270503decaa56 Mon Sep 17 00:00:00 2001
+From: "Mingde (Matthew) Zeng" <[email protected]>
+Date: Wed, 29 Jul 2020 08:47:09 -0400
+Subject: [PATCH] Remove OOM tests from runtest/mm
+
+Disable OOM tests, as they might cause oeqa ssh connection lost
+
+Upstream-Status: Inappropriate [oe-core specific]
+Signed-off-by: Mingde (Matthew) Zeng <[email protected]>
+[ pvorel: rebased for 20210927 ]
+Signed-off-by: Petr Vorel <[email protected]>
+---
+ runtest/mm | 6 ------
+ 1 file changed, 6 deletions(-)
+
+diff --git a/runtest/mm b/runtest/mm
+index 6537666a9..e5a091a5a 100644
+--- a/runtest/mm
++++ b/runtest/mm
+@@ -73,12 +73,6 @@ ksm06_2 ksm06 -n 8000
+ 
+ cpuset01 cpuset01
+ 
+-oom01 oom01
+-oom02 oom02
+-oom03 oom03
+-oom04 oom04
+-oom05 oom05
+-
+ swapping01 swapping01 -i 5
+ 
+ thp01 thp01 -I 120
+-- 
+2.33.0
+
meta-arago-extras/recipes-extended/ltp/ltp/disable_hanging_tests.patch new file +27 -0
new file mode 100644
index 00000000..f25a692d
@@ -0,0 +1,27 @@
+This patch disables tests which we've found "hang" on our infrastructure.
+
+proc01:
+https://autobuilder.yoctoproject.org/typhoon/#/builders/96/builds/1748 (arm)
+https://autobuilder.yoctoproject.org/typhoon/#/builders/96/builds/1781 (arm)
+https://autobuilder.yoctoproject.org/typhoon/#/builders/96/builds/2782 (arm)
+(was trying to read /proc/kmsg, looks like a horrible test anyway)
+
+Upstream-Status: Inappropriate [OE Configuration]
+Signed-off-by: Richard Purdie <[email protected]>
+
+Index: git/runtest/fs
+===================================================================
+--- git.orig/runtest/fs
++++ git/runtest/fs
+@@ -64,11 +64,6 @@ writetest01	writetest
+ #Also run the fs_di (Data Integrity tests)
+ fs_di fs_di -d $TMPDIR
+ 
+-# Read every file in /proc. Not likely to crash, but does enough
+-# to disturb the kernel. A good kernel latency killer too.
+-# Was not sure why it should reside in runtest/crashme and won't get tested ever
+-proc01 proc01 -m 128
+-
+ read_all_dev read_all -d /dev -p -q -r 3
+ read_all_proc read_all -d /proc -q -r 3
+ read_all_sys read_all -d /sys -q -r 3
meta-arago-extras/recipes-extended/ltp/ltp_20230127.bb new file +140 -0

140 lines not on this page · raw message

Signature · 1 line
2.17.1
#2 lore raw

PATCH v3 2/2 ltp-ddt: Add support for version 20230127

In reply to Ryan Eatmon

The internal testing team would like to move to this version as the basis for our internal ltp-ddt.

---
v3: Put the space in the correct place...
v2: Add missing space on :append line.

 .../ltp-ddt/ltp-ddt_20230127.bb               | 47 +++++++++++++++++++
 1 file changed, 47 insertions(+)
 create mode 100644 meta-arago-extras/recipes-devtools/ltp-ddt/ltp-ddt_20230127.bb
meta-arago-extras/recipes-devtools/ltp-ddt/ltp-ddt_20230127.bb new file +47 -0
new file mode 100644
index 00000000..d56c5b7b
@@ -0,0 +1,47 @@
+FILESEXTRAPATHS:prepend := "${COREBASE}/meta/recipes-extended/ltp/ltp:"
+FILESEXTRAPATHS:prepend := "${ARAGOBASE}/meta-arago-extras/recipes-extended/ltp/ltp:"
+
+require recipes-extended/ltp/ltp_${PV}.bb
+
+SUMMARY = "Embedded Linux Device Driver Tests based on Linux Test Project"
+HOMEPAGE = "https://git.ti.com/cgit/test-automation/ltp-ddt/"
+
+PROVIDES += "ltp"
+
+DEPENDS += "alsa-lib"
+
+PE = "1"
+PR = "r7"
+PV:append = "+git${SRCPV}"
+
+SRCREV = "7f2fc4b7c972f2f188836c739a7175fad2f2b288"
+BRANCH ?= "master"
+
+SRC_URI:remove = "git://github.com/linux-test-project/ltp.git;branch=master;protocol=https"
+SRC_URI:prepend = "git://git.ti.com/git/test-automation/ltp-ddt.git;protocol=https;branch=${BRANCH} "
+
+SRC_URI:append = " https://git.ti.com/cgit/ti-linux-kernel/ti-linux-kernel/plain/include/uapi/linux/rpmsg_rpc.h?h=ti-linux-5.10.y;name=rpmsg_rpc;subdir=linux;downloadfilename=rpmsg_rpc.h"
+SRC_URI[rpmsg_rpc.sha256sum] = "cd237f40a37520a1f2df19fbfeefd00c0a5ad68efeaba9ba0fba60ca16ea09be"
+
+export prefix = "/opt/ltp"
+export exec_prefix = "/opt/ltp"
+
+EXTRA_OEMAKE:append = " \
+    KERNEL_USR_INC=${WORKDIR} \
+    ALSA_INCPATH=${STAGING_INCDIR} \
+    ALSA_LIBPATH=${STAGING_LIBDIR} \
+"
+
+RDEPENDS:${PN} += "\
+    acl \
+    at \
+    pm-qa \
+    serialcheck \
+    memtester \
+"
+
+do_install:prepend() {
+	# Upstream ltp recipe wants to remove this test case in do_install
+	install -d ${D}${prefix}/runtest/
+	echo "memcg_stress" >> ${D}${prefix}/runtest/controllers
+}
Signature · 1 line
2.17.1
#3 lore raw
In reply to Ryan Eatmon

I'm a bit confused - I see the original patch is already merged to kirkstone and master:

https://git.yoctoproject.org/meta-arago/log/
https://git.yoctoproject.org/meta-arago/log/?h=kirkstone

Quoted 24 lines · Ryan Eatmon via lists.yoctoproject.org

The internal testing team would like to move to this version as the basis for our internal ltp-ddt. So we need to capture the recipe settings for this version from oe-core master and provide a new version for us to overload.

v3: Put the space in the correct place...
v2: Add missing space to :append line in ltp-ddt_20230127.bb

Ryan Eatmon (2):
ltp: Add version 20230127 from oe_core master
ltp-ddt: Add support for version 20230127

 .../ltp-ddt/ltp-ddt_20230127.bb               |  47 ++++++
 ...002-Remove-OOM-tests-from-runtest-mm.patch |  35 +++++
 .../ltp/ltp/disable_hanging_tests.patch       |  27 ++++
 .../recipes-extended/ltp/ltp_20230127.bb      | 140 ++++++++++++++++++
 4 files changed, 249 insertions(+)
 create mode 100644 meta-arago-extras/recipes-devtools/ltp-ddt/ltp-ddt_20230127.bb
 create mode 100644 meta-arago-extras/recipes-extended/ltp/ltp/0002-Remove-OOM-tests-from-runtest-mm.patch
 create mode 100644 meta-arago-extras/recipes-extended/ltp/ltp/disable_hanging_tests.patch
 create mode 100644 meta-arago-extras/recipes-extended/ltp/ltp_20230127.bb
Signature · 1 line
2.17.1
#4 lore raw

Yes. The patch to the 2021 version is already on Kirkstone. But we are planning on removing that version completely once we get our LTS migration finished. The 2023 version is what will live long term on kirkstone/master.

So, I had already merged the "bad" patch with the missing space to kirkstone for 2021. I did that so that I could pick up Andrew's patch about removing the libc headers.

If the space is something that causes any down stream problems before we get to removing the ltp-ddt 2021 version then we can patch it. Otherwise, my testing did not show an issue with the patch as it is.

Quoted 32 lines · Denys Dmytriyenko

I'm a bit confused - I see the original patch is already merged to kirkstone and master:

https://git.yoctoproject.org/meta-arago/log/
https://git.yoctoproject.org/meta-arago/log/?h=kirkstone

Quoted 24 lines · Ryan Eatmon via lists.yoctoproject.org

The internal testing team would like to move to this version as the basis for our internal ltp-ddt. So we need to capture the recipe settings for this version from oe-core master and provide a new version for us to overload.

v3: Put the space in the correct place...
v2: Add missing space to :append line in ltp-ddt_20230127.bb

Ryan Eatmon (2):
ltp: Add version 20230127 from oe_core master
ltp-ddt: Add support for version 20230127

  .../ltp-ddt/ltp-ddt_20230127.bb               |  47 ++++++
  ...002-Remove-OOM-tests-from-runtest-mm.patch |  35 +++++
  .../ltp/ltp/disable_hanging_tests.patch       |  27 ++++
  .../recipes-extended/ltp/ltp_20230127.bb      | 140 ++++++++++++++++++
  4 files changed, 249 insertions(+)

create mode 100644 meta-arago-extras/recipes-devtools/ltp-ddt/ltp-ddt_20230127.bb
create mode 100644 meta-arago-extras/recipes-extended/ltp/ltp/0002-Remove-OOM-tests-from-runtest-mm.patch create mode 100644 meta-arago-extras/recipes-extended/ltp/ltp/disable_hanging_tests.patch create mode 100644 meta-arago-extras/recipes-extended/ltp/ltp_20230127.bb

Signature · 1 line
2.17.1
Signature · 3 lines
Ryan Eatmon                [email protected]
-----------------------------------------
Texas Instruments, Inc.  -  LCPD  -  MGTS
#5 lore raw
Quoted 6 lines · Ryan Eatmon

Yes. The patch to the 2021 version is already on Kirkstone. But we are planning on removing that version completely once we get our LTS migration finished. The 2023 version is what will live long term on kirkstone/master.

Quoted 8 lines

So, I had already merged the "bad" patch with the missing space to kirkstone for 2021. I did that so that I could pick up Andrew's patch about removing the libc headers.

If the space is something that causes any down stream problems before we get to removing the ltp-ddt 2021 version then we can patch it. Otherwise, my testing did not show an issue with the patch as it is.

Nah, input-utils was breaking for me, but it felt familiar... A bit of digging revealed it was only merged to Dunfell, so I sent a cherry-pick to the list.

Quoted 33 lines · Denys Dmytriyenko
Quoted 32 lines

I'm a bit confused - I see the original patch is already merged to kirkstone and master:

https://git.yoctoproject.org/meta-arago/log/
https://git.yoctoproject.org/meta-arago/log/?h=kirkstone

Quoted 24 lines · Ryan Eatmon via lists.yoctoproject.org

The internal testing team would like to move to this version as the basis for our internal ltp-ddt. So we need to capture the recipe settings for this version from oe-core master and provide a new version for us to overload.

v3: Put the space in the correct place...
v2: Add missing space to :append line in ltp-ddt_20230127.bb

Ryan Eatmon (2):
ltp: Add version 20230127 from oe_core master
ltp-ddt: Add support for version 20230127

 .../ltp-ddt/ltp-ddt_20230127.bb               |  47 ++++++
 ...002-Remove-OOM-tests-from-runtest-mm.patch |  35 +++++
 .../ltp/ltp/disable_hanging_tests.patch       |  27 ++++
 .../recipes-extended/ltp/ltp_20230127.bb      | 140 ++++++++++++++++++
 4 files changed, 249 insertions(+)
 create mode 100644 meta-arago-extras/recipes-devtools/ltp-ddt/ltp-ddt_20230127.bb
 create mode 100644 meta-arago-extras/recipes-extended/ltp/ltp/0002-Remove-OOM-tests-from-runtest-mm.patch
 create mode 100644 meta-arago-extras/recipes-extended/ltp/ltp/disable_hanging_tests.patch
 create mode 100644 meta-arago-extras/recipes-extended/ltp/ltp_20230127.bb
Signature · 1 line
2.17.1