summaryrefslogtreecommitdiffstats
path: root/meta-selftest/recipes-test
diff options
context:
space:
mode:
authorFawzi KHABER <fawzi.khaber@smile.fr>2023-03-29 10:57:57 +0200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2023-03-30 12:32:30 +0100
commit3ae3669468c133e5cd26120e7ee2d82bcaad8b56 (patch)
treea3dcdaf5c879ab6009a1e62aa8ee3a310c2b8afb /meta-selftest/recipes-test
parentb8486ffe807d08ae6f2c577295c249afc7aca3f1 (diff)
downloadpoky-3ae3669468c133e5cd26120e7ee2d82bcaad8b56.tar.gz
oeqa/selftest/cases/package.py: adding unittest for package rename conflicts
This Unittest tries to rename a package, using an already used name and fails on do_package. Reviewed-by: Yoann CONGAL <yoann.congal@smile.fr> (From OE-Core rev: c3fe173d5196506d89aa464ba56aabcf581a60db) Signed-off-by: Fawzi KHABER <fawzi.khaber@smile.fr> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta-selftest/recipes-test')
-rw-r--r--meta-selftest/recipes-test/packagenameconflict/packagenameconflict.bb10
1 files changed, 10 insertions, 0 deletions
diff --git a/meta-selftest/recipes-test/packagenameconflict/packagenameconflict.bb b/meta-selftest/recipes-test/packagenameconflict/packagenameconflict.bb
new file mode 100644
index 0000000000..5d19a4dd25
--- /dev/null
+++ b/meta-selftest/recipes-test/packagenameconflict/packagenameconflict.bb
@@ -0,0 +1,10 @@
1SUMMARY = "Test case that tries to rename a package to an existing one and fails"
2DESCRIPTION = "This generates a packaging error when a package is renamed to a pre-existing name"
3LICENSE = "MIT"
4
5# Add a new package ${PN}-renametest
6PACKAGES += "${PN}-renametest"
7# ... and try to rename the ${PN}-dev to the new ${PN}-renametest (conflict)
8PKG:${PN}-dev = "${PN}-renametest"
9
10EXCLUDE_FROM_WORLD = "1"