poky/meta-selftest/recipes-test/devtool
Alexander Kanavin 0118853b5b devtool: process local files only for the main branch
devtool modify/upgrade are not currently equipped to handle conditional local files
in SRC_URI, and provide only the main no-override set in a workspace under
source/component/oe-local-files/ (this is done via meta/classes/devtool-source.bbclass).

On the other hand, updating the changes from workspace into a recipe
is run iteratively against all overrides; this works for patches (as they
all are directed into their own override branches in the workspace
git source tree), but breaks down when trying to match local files
in a workspace against local files in overridden SRC_URI lists, resulting in
bad recipe breakage.

(there's an additional twist here: existing code has a guard against this
but the guard relies on metadata in workspace .bbappend that is only there
in modify operations, but not upgrades. This commit replaces the guard
with a general check that will work everywhere).

Implementing multiple sets of local files is significant work; let's for now
simply not touch local files in recipes except when on the no-override variant.

Also, adjust the selftest cases to include conditional local files in sample
recipes, so the situation is covered by the tests.

(From OE-Core rev: 4760fac939a6204e3cb7dcd3699cd9a2508f9dee)

Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 3a8654b860fa98f94e80c3c3fff359ffed14bbe7)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-01-15 11:05:15 +00:00
..
devtool-patch-overrides selftest: add test for recipes with patches in overrides 2020-10-08 08:08:32 +01:00
devtool-test-ignored meta-selftest: add test of .gitignore in tarball 2020-06-04 13:27:29 +01:00
devtool-test-local devtool: process local files only for the main branch 2023-01-15 11:05:15 +00:00
devtool-test-localonly devtool: process local files only for the main branch 2023-01-15 11:05:15 +00:00
devtool-test-long-filename meta-selftest: add test for .patch file with long filename and without subject 2020-06-04 13:27:29 +01:00
devtool-test-patch-gz devtool: update-recipe: fix handling of compressed local patches 2016-11-23 11:10:13 +00:00
devtool-test-subdir oe-selftest: devtool: test that updating a file with subdir= works 2016-11-23 11:10:13 +00:00
devtool-upgrade-test1-1.5.3 selftest: check that 'devtool upgrade' correctly drops backported patches 2019-11-21 23:08:20 +00:00
devtool-patch-overrides.bb Convert to new override syntax 2021-08-02 15:44:10 +01:00
devtool-test-ignored.bb meta-selftest: add test of .gitignore in tarball 2020-06-04 13:27:29 +01:00
devtool-test-local_6.03.bb devtool: process local files only for the main branch 2023-01-15 11:05:15 +00:00
devtool-test-localonly.bb devtool: process local files only for the main branch 2023-01-15 11:05:15 +00:00
devtool-test-long-filename.bb meta-selftest: add test for .patch file with long filename and without subject 2020-06-04 13:27:29 +01:00
devtool-test-patch-gz.bb meta/meta-selftest/meta-skeleton: Update LICENSE variable to use SPDX license identifiers 2022-02-20 16:45:25 +00:00
devtool-test-subdir.bb recipes-test: exclude recipes from world target 2017-01-16 18:05:13 +00:00
devtool-upgrade-test1_1.5.3.bb selftest: check that 'devtool upgrade' correctly drops backported patches 2019-11-21 23:08:20 +00:00
devtool-upgrade-test1_1.5.3.bb.upgraded devtool: do not write md5sums into upgraded recipes 2020-05-21 10:52:07 +01:00
devtool-upgrade-test2_git.bb meta/meta-selftest/meta-skeleton: Update LICENSE variable to use SPDX license identifiers 2022-02-20 16:45:25 +00:00
devtool-upgrade-test2_git.bb.upgraded meta/meta-selftest/meta-skeleton: Update LICENSE variable to use SPDX license identifiers 2022-02-20 16:45:25 +00:00