oe-selftest: add RECIPE_UPDATE_EXTRA_TASKS test

Add test_devtool_upgrade_recipe_update_extra_tasks test case
to test upgrade of python3-guessing-game from v0.1.0 to v0.2.0
which will exercise the update_crates task during the upgrade.

Add python3-guessing-game_git.bb.upgraded and
python3-guessing-game-crates.inc.upgraded  which are the 0.2.0
variants.

Check that the new recipe file has the expected differences.

Check that the new -crates.inc file has the expected differences,
which should be reproducible because of Cargo.lock.

(From OE-Core rev: d14368bc775cbf5142c1312dfc2076e328381aef)

Signed-off-by: Tim Orling <tim.orling@konsulko.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Tim Orling
2024-06-11 08:55:15 -07:00
committed by Richard Purdie
parent 1ba3586bbe
commit c16d3b930f
3 changed files with 153 additions and 0 deletions

View File

@@ -0,0 +1,19 @@
SUMMARY = "The guessing game from The Rust Book using pyo3."
DESCRIPTION = "Wrap a version of the guessing game from The Rust Book \
to run in Python using pyo3."
HOMEPAGE = "https://www.maturin.rs/tutorial"
SECTION = "devel/python"
LICENSE = "MIT & Apache-2.0"
LIC_FILES_CHKSUM = "file://LICENSE-APACHE;md5=1836efb2eb779966696f473ee8540542 \
file://LICENSE-MIT;md5=85fd3b67069cff784d98ebfc7d5c0797"
SRC_URI = "git://git.yoctoproject.org/guessing-game.git;protocol=https;branch=main"
PV = "0.2.0"
SRCREV = "40cf004c2772ffa20ea803fa3be1528a75be3e98"
S = "${WORKDIR}/git"
inherit python_maturin cargo-update-recipe-crates
require ${BPN}-crates.inc