blob: fa3041b7d8f451872d4135bfd98e7750ae48509c [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 Geissler595f6302022-01-24 19:11:47 +00008SRC_URI = "gitsm://git.yoctoproject.org/git-submodule-test;branch=master"
Andrew Geissler5a43b432020-06-13 10:46:56 -05009SRCREV = "a2885dd7d25380d23627e7544b7bbb55014b16ee"
Andrew Geisslerd5838332022-05-27 11:33:10 -050010
11S = "${WORKDIR}/git"
12
13do_test_git_as_user() {
14 cd ${S}
15 git status
16}
17addtask test_git_as_user after do_unpack
18
19fakeroot do_test_git_as_root() {
20 cd ${S}
21 git status
22}
23do_test_git_as_root[depends] += "virtual/fakeroot-native:do_populate_sysroot"
24addtask test_git_as_root after do_unpack