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 | fc113ea | 2023-03-31 09:59:46 -0500 | [diff] [blame] | 8 | UPSTREAM_VERSION_UNKNOWN = "1" |
| 9 | |
Andrew Geissler | 595f630 | 2022-01-24 19:11:47 +0000 | [diff] [blame] | 10 | SRC_URI = "gitsm://git.yoctoproject.org/git-submodule-test;branch=master" |
Andrew Geissler | 5a43b43 | 2020-06-13 10:46:56 -0500 | [diff] [blame] | 11 | SRCREV = "a2885dd7d25380d23627e7544b7bbb55014b16ee" |
Andrew Geissler | d583833 | 2022-05-27 11:33:10 -0500 | [diff] [blame] | 12 | |
| 13 | S = "${WORKDIR}/git" |
| 14 | |
| 15 | do_test_git_as_user() { |
| 16 | cd ${S} |
| 17 | git status |
| 18 | } |
| 19 | addtask test_git_as_user after do_unpack |
| 20 | |
| 21 | fakeroot do_test_git_as_root() { |
| 22 | cd ${S} |
| 23 | git status |
| 24 | } |
| 25 | do_test_git_as_root[depends] += "virtual/fakeroot-native:do_populate_sysroot" |
| 26 | addtask test_git_as_root after do_unpack |