public inbox for isar-users@googlegroups.com
 help / color / mirror / Atom feed
* [PATCH] hello-isar: Improve patches apply testcase
@ 2024-04-02 10:15 Anton Mikanovich
  2024-04-02 10:20 ` Anton Mikanovich
  2024-04-09  5:28 ` Uladzimir Bely
  0 siblings, 2 replies; 3+ messages in thread
From: Anton Mikanovich @ 2024-04-02 10:15 UTC (permalink / raw)
  To: isar-users; +Cc: Anton Mikanovich

Move one of the patches to meta-test to cover multilayer patching.
Also add the coverage of FILESPATH autofixing for multiarch.

Signed-off-by: Anton Mikanovich <amikan@ilbers.de>
---
 meta-isar/recipes-app/hello-isar/hello-isar.bb            | 2 +-
 meta-test/recipes-app/hello-isar/hello-isar.bbappend      | 8 ++++++++
 .../hello-isar/hello-isar}/yet-another-change.txt         | 0
 3 files changed, 9 insertions(+), 1 deletion(-)
 rename {meta-isar/recipes-app/hello-isar/files => meta-test/recipes-app/hello-isar/hello-isar}/yet-another-change.txt (100%)

diff --git a/meta-isar/recipes-app/hello-isar/hello-isar.bb b/meta-isar/recipes-app/hello-isar/hello-isar.bb
index 6304b6b4..57ee7346 100644
--- a/meta-isar/recipes-app/hello-isar/hello-isar.bb
+++ b/meta-isar/recipes-app/hello-isar/hello-isar.bb
@@ -17,7 +17,7 @@ DEPENDS += "libhello"
 SRC_URI = " \
     git://github.com/ilbers/hello.git;protocol=https;branch=master;destsuffix=${P} \
     file://subdir/0001-Add-some-help.patch \
-    file://yet-another-change.txt;apply=yes;striplevel=0"
+"
 SRCREV = "b48d15629667377f544e71c7310b80a71d00d9dd"
 
 inherit dpkg
diff --git a/meta-test/recipes-app/hello-isar/hello-isar.bbappend b/meta-test/recipes-app/hello-isar/hello-isar.bbappend
index d567599f..44686458 100644
--- a/meta-test/recipes-app/hello-isar/hello-isar.bbappend
+++ b/meta-test/recipes-app/hello-isar/hello-isar.bbappend
@@ -1,3 +1,11 @@
+# Checking patches apply
+# Using PN only for testing autofix, BPN should be used instead
+FILESPATH:prepend := "${FILE_DIRNAME}/${PN}:"
+
+SRC_URI += " \
+    file://yet-another-change.txt;apply=yes;striplevel=0 \
+"
+
 # Examples for SRC_URI parser testing
 SRC_URI += " \
     file://nonexist-file \
diff --git a/meta-isar/recipes-app/hello-isar/files/yet-another-change.txt b/meta-test/recipes-app/hello-isar/hello-isar/yet-another-change.txt
similarity index 100%
rename from meta-isar/recipes-app/hello-isar/files/yet-another-change.txt
rename to meta-test/recipes-app/hello-isar/hello-isar/yet-another-change.txt
-- 
2.34.1


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2024-04-09  5:28 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-04-02 10:15 [PATCH] hello-isar: Improve patches apply testcase Anton Mikanovich
2024-04-02 10:20 ` Anton Mikanovich
2024-04-09  5:28 ` Uladzimir Bely

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox