Andrew Geissler | 5a43b43 | 2020-06-13 10:46:56 -0500 | [diff] [blame] | 1 | SUMMARY = "Test recipe for fetching git submodules" |
Andrew Geissler | 95ac1b8 | 2021-03-31 14:34:31 -0500 | [diff] [blame] | 2 | HOMEPAGE = "http://git.yoctoproject.org/cgit/cgit.cgi/git-submodule-test/" |
Andrew Geissler | 5a43b43 | 2020-06-13 10:46:56 -0500 | [diff] [blame] | 3 | LICENSE = "MIT" |
| 4 | LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/MIT;md5=0835ade698e0bcf8506ecda2f7b4f302" |
| 5 | |
| 6 | INHIBIT_DEFAULT_DEPS = "1" |
| 7 | |
Andrew Geissler | 595f630 | 2022-01-24 19:11:47 +0000 | [diff] [blame] | 8 | SRC_URI = "gitsm://git.yoctoproject.org/git-submodule-test;branch=master" |
Andrew Geissler | 5a43b43 | 2020-06-13 10:46:56 -0500 | [diff] [blame] | 9 | SRCREV = "a2885dd7d25380d23627e7544b7bbb55014b16ee" |
Andrew Geissler | d583833 | 2022-05-27 11:33:10 -0500 | [diff] [blame] | 10 | |
| 11 | S = "${WORKDIR}/git" |
| 12 | |
| 13 | do_test_git_as_user() { |
| 14 | cd ${S} |
| 15 | git status |
| 16 | } |
| 17 | addtask test_git_as_user after do_unpack |
| 18 | |
| 19 | fakeroot do_test_git_as_root() { |
| 20 | cd ${S} |
| 21 | git status |
| 22 | } |
| 23 | do_test_git_as_root[depends] += "virtual/fakeroot-native:do_populate_sysroot" |
| 24 | addtask test_git_as_root after do_unpack |