diff options
Diffstat (limited to 'meta-selftest')
-rw-r--r-- | meta-selftest/recipes-test/git-submodule-test/git-submodule-test.bb | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/meta-selftest/recipes-test/git-submodule-test/git-submodule-test.bb b/meta-selftest/recipes-test/git-submodule-test/git-submodule-test.bb index cc5d7eae5a..fa3041b7d8 100644 --- a/meta-selftest/recipes-test/git-submodule-test/git-submodule-test.bb +++ b/meta-selftest/recipes-test/git-submodule-test/git-submodule-test.bb | |||
@@ -7,3 +7,18 @@ INHIBIT_DEFAULT_DEPS = "1" | |||
7 | 7 | ||
8 | SRC_URI = "gitsm://git.yoctoproject.org/git-submodule-test;branch=master" | 8 | SRC_URI = "gitsm://git.yoctoproject.org/git-submodule-test;branch=master" |
9 | SRCREV = "a2885dd7d25380d23627e7544b7bbb55014b16ee" | 9 | SRCREV = "a2885dd7d25380d23627e7544b7bbb55014b16ee" |
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 | ||