diff options
author | Ross Burton <ross@burtonini.com> | 2020-10-07 19:21:51 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2020-10-08 08:08:32 +0100 |
commit | d6bc178f33179b2254533d486082a9b0de36477e (patch) | |
tree | 3fa71a3c5afb88e5d0d8551277829e8bc63e587a /meta-selftest | |
parent | 961de02fd14bcd201a07a69eb3287be76084a5a2 (diff) | |
download | poky-d6bc178f33179b2254533d486082a9b0de36477e.tar.gz |
selftest: add test for recipes with patches in overrides
devtool doesn't quite behave right when a recipe has patches applied in overrides, so
add a test case to exercise that behaviour.
(From OE-Core rev: ad89c3254cc6c06026f1bebe23ec3717c1546633)
Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta-selftest')
4 files changed, 19 insertions, 0 deletions
diff --git a/meta-selftest/recipes-test/devtool/devtool-patch-overrides.bb b/meta-selftest/recipes-test/devtool/devtool-patch-overrides.bb new file mode 100644 index 0000000000..d36c9edee4 --- /dev/null +++ b/meta-selftest/recipes-test/devtool/devtool-patch-overrides.bb | |||
@@ -0,0 +1,8 @@ | |||
1 | SUMMARY = "devtool test for overrides and patches" | ||
2 | LICENSE = "CLOSED" | ||
3 | INHIBIT_DEFAULT_DEPS = "1" | ||
4 | EXCLUDE_FROM_WORLD = "1" | ||
5 | |||
6 | SRC_URI = "file://source;subdir=${BP}" | ||
7 | SRC_URI_append_qemuarm = " file://arm.patch;striplevel=0" | ||
8 | SRC_URI_append_qemux86 = " file://x86.patch;striplevel=0" | ||
diff --git a/meta-selftest/recipes-test/devtool/devtool-patch-overrides/qemuarm/arm.patch b/meta-selftest/recipes-test/devtool/devtool-patch-overrides/qemuarm/arm.patch new file mode 100644 index 0000000000..e33a2753f9 --- /dev/null +++ b/meta-selftest/recipes-test/devtool/devtool-patch-overrides/qemuarm/arm.patch | |||
@@ -0,0 +1,5 @@ | |||
1 | --- source.orig 2020-10-06 13:26:10.792688630 +0100 | ||
2 | +++ source 2020-10-06 13:26:18.853424694 +0100 | ||
3 | @@ -1 +1 @@ | ||
4 | -This is a test for something | ||
5 | +This is a test for qemuarm | ||
diff --git a/meta-selftest/recipes-test/devtool/devtool-patch-overrides/qemux86/x86.patch b/meta-selftest/recipes-test/devtool/devtool-patch-overrides/qemux86/x86.patch new file mode 100644 index 0000000000..1a0a175fa8 --- /dev/null +++ b/meta-selftest/recipes-test/devtool/devtool-patch-overrides/qemux86/x86.patch | |||
@@ -0,0 +1,5 @@ | |||
1 | --- source.orig 2020-10-06 13:26:10.792688630 +0100 | ||
2 | +++ source 2020-10-06 13:26:18.853424694 +0100 | ||
3 | @@ -1 +1 @@ | ||
4 | -This is a test for something | ||
5 | +This is a test for qemux86 | ||
diff --git a/meta-selftest/recipes-test/devtool/devtool-patch-overrides/source b/meta-selftest/recipes-test/devtool/devtool-patch-overrides/source new file mode 100644 index 0000000000..cc14ce627c --- /dev/null +++ b/meta-selftest/recipes-test/devtool/devtool-patch-overrides/source | |||
@@ -0,0 +1 @@ | |||
This is a test for something | |||