mirror of
https://git.yoctoproject.org/git/poky
synced 2026-01-01 13:58:04 +00:00
The fix for CVE-2022-24765 in git[1] breaks any use of git inside
pseudo. Add a simple test case to oe-selftest to verify that at least
basic uses of git work fine under pseudo.
[1] 8959555cee
(From OE-Core rev: c1b43595a023e481daeb6005c431f51897aeb45d)
Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 46822268040a23dbb81f71fe35aee8c2663a31f6)
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
25 lines
688 B
BlitzBasic
25 lines
688 B
BlitzBasic
SUMMARY = "Test recipe for fetching git submodules"
|
|
HOMEPAGE = "http://git.yoctoproject.org/cgit/cgit.cgi/git-submodule-test/"
|
|
LICENSE = "MIT"
|
|
LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/MIT;md5=0835ade698e0bcf8506ecda2f7b4f302"
|
|
|
|
INHIBIT_DEFAULT_DEPS = "1"
|
|
|
|
SRC_URI = "gitsm://git.yoctoproject.org/git-submodule-test;branch=master"
|
|
SRCREV = "a2885dd7d25380d23627e7544b7bbb55014b16ee"
|
|
|
|
S = "${WORKDIR}/git"
|
|
|
|
do_test_git_as_user() {
|
|
cd ${S}
|
|
git status
|
|
}
|
|
addtask test_git_as_user after do_unpack
|
|
|
|
fakeroot do_test_git_as_root() {
|
|
cd ${S}
|
|
git status
|
|
}
|
|
do_test_git_as_root[depends] += "virtual/fakeroot-native:do_populate_sysroot"
|
|
addtask test_git_as_root after do_unpack
|