From 963f55df9efc740b7fe69d8fe8503e9f8f0c6f6d Mon Sep 17 00:00:00 2001 From: Simone Weiss Date: Fri, 3 Feb 2023 06:44:14 +0100 Subject: minicoredumper: Add ptest Add the demo from minicoredumper - that is intended as a test for it - as a ptest for minicoredumper. Result example: root@qemux86-64:~# ptest-runner minicoredumper START: ptest-runner 2023-02-02T12:27 BEGIN: /usr/lib/minicoredumper/ptest minicoredumper_demo expecting Segmentation fault with core dump ... [ 21.791878] minicoredumper_[330]: segfault at 0 ip 00000000004014f2 sp 00007ffe4271f870 error 4 in minicoredumper_demo[401000+1000] likely on CPU 0 (core 0, socket 0) [ 21.793886] Code: 00 b8 00 00 00 00 e8 7d fb ff ff 83 bd 5c ff ff ff 01 75 2f 48 c7 45 e8 00 00 00 00 bf 58 21 40 00 e8 52 fb ff ff 48 8b 45 e8 <0f> b6 00 0f be c0 89 c6 bf 77 21 40 00 b8 00 00 00 00 e8 47 ff /usr/lib/minicoredumper/ptest/run-ptest: line 6: 330 Segmentation fault minicoredumper_demo minicoredumper SUCCESS DURATION: 3 END: /usr/lib/minicoredumper/ptest 2023-02-02T12:28 STOP: ptest-runner TOTAL: 1 FAIL: 0 root@qemux86-64:~# Please note the Segmentation fault is intended to provoke a coredump. Signed-off-by: Simone Weiss Signed-off-by: Kai Tomerius Signed-off-by: Khem Raj --- meta-oe/recipes-core/packagegroups/packagegroup-meta-oe.bb | 1 + 1 file changed, 1 insertion(+) (limited to 'meta-oe/recipes-core/packagegroups') diff --git a/meta-oe/recipes-core/packagegroups/packagegroup-meta-oe.bb b/meta-oe/recipes-core/packagegroups/packagegroup-meta-oe.bb index 34689fb48..d37383919 100644 --- a/meta-oe/recipes-core/packagegroups/packagegroup-meta-oe.bb +++ b/meta-oe/recipes-core/packagegroups/packagegroup-meta-oe.bb @@ -982,6 +982,7 @@ RDEPENDS:packagegroup-meta-oe-ptest-packages = "\ libee-ptest \ poco-ptest \ cmocka-ptest \ + minicoredumper-ptest \ " RDEPENDS:packagegroup-meta-oe-ptest-packages:append:x86 = " mcelog-ptest" RDEPENDS:packagegroup-meta-oe-ptest-packages:append:x86-64 = " mcelog-ptest" -- cgit v1.2.3-54-g00ecf