blob: 90d9b66b2c8d23f32d8da5101dee3da2fcd46816 [file] [log] [blame]
Andrew Geissler5a43b432020-06-13 10:46:56 -05001SUMMARY = "Test recipe for fetching git submodules"
Andrew Geissler95ac1b82021-03-31 14:34:31 -05002HOMEPAGE = "http://git.yoctoproject.org/cgit/cgit.cgi/git-submodule-test/"
Andrew Geissler5a43b432020-06-13 10:46:56 -05003LICENSE = "MIT"
4LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/MIT;md5=0835ade698e0bcf8506ecda2f7b4f302"
5
6INHIBIT_DEFAULT_DEPS = "1"
7
Andrew Geisslerfc113ea2023-03-31 09:59:46 -05008UPSTREAM_VERSION_UNKNOWN = "1"
9
Andrew Geissler595f6302022-01-24 19:11:47 +000010SRC_URI = "gitsm://git.yoctoproject.org/git-submodule-test;branch=master"
Andrew Geissler5a43b432020-06-13 10:46:56 -050011SRCREV = "a2885dd7d25380d23627e7544b7bbb55014b16ee"
Andrew Geisslerd5838332022-05-27 11:33:10 -050012
13S = "${WORKDIR}/git"
14
15do_test_git_as_user() {
16 cd ${S}
17 git status
18}
19addtask test_git_as_user after do_unpack
20
21fakeroot do_test_git_as_root() {
22 cd ${S}
23 git status
24}
25do_test_git_as_root[depends] += "virtual/fakeroot-native:do_populate_sysroot"
26addtask test_git_as_root after do_unpack