summaryrefslogtreecommitdiffstats
path: root/meta-selftest/recipes-test
diff options
context:
space:
mode:
authorTrevor Woerner <twoerner@gmail.com>2020-12-27 00:24:01 -0500
committerRichard Purdie <richard.purdie@linuxfoundation.org>2020-12-30 14:01:07 +0000
commit50734c7f71c7ead1e71cd447918463ff56465d11 (patch)
tree2d217695fd8506d073804d5acef79d5bac31a70e /meta-selftest/recipes-test
parent53afafe42930aada4924cfa2fb5b6be587713312 (diff)
downloadpoky-50734c7f71c7ead1e71cd447918463ff56465d11.tar.gz
selftest-chown: add test for fifos
Verify that fifos are properly handled by the build system. (From OE-Core rev: 53988b6389ce618d4cff52bd09ae91108beca354) Signed-off-by: Trevor Woerner <twoerner@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta-selftest/recipes-test')
-rw-r--r--meta-selftest/recipes-test/selftest-chown/selftest-chown.bb5
1 files changed, 5 insertions, 0 deletions
diff --git a/meta-selftest/recipes-test/selftest-chown/selftest-chown.bb b/meta-selftest/recipes-test/selftest-chown/selftest-chown.bb
index 87bf9438b8..440471fe80 100644
--- a/meta-selftest/recipes-test/selftest-chown/selftest-chown.bb
+++ b/meta-selftest/recipes-test/selftest-chown/selftest-chown.bb
@@ -3,6 +3,8 @@ LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/MIT;md5=0835ade698e0bcf8506ecda
3 3
4LICENSE = "MIT" 4LICENSE = "MIT"
5 5
6DEPENDS += "coreutils-native"
7
6S = "${WORKDIR}" 8S = "${WORKDIR}"
7 9
8inherit useradd allarch 10inherit useradd allarch
@@ -16,10 +18,13 @@ do_install() {
16 install -d ${TESTDIR}/dir 18 install -d ${TESTDIR}/dir
17 touch ${TESTDIR}/file 19 touch ${TESTDIR}/file
18 ln -s ./file ${TESTDIR}/symlink 20 ln -s ./file ${TESTDIR}/symlink
21 install -d ${TESTDIR}/fifotest
22 mkfifo ${TESTDIR}/fifotest/fifo
19 23
20 chown test:test ${TESTDIR}/file 24 chown test:test ${TESTDIR}/file
21 chown -R test:test ${TESTDIR}/dir 25 chown -R test:test ${TESTDIR}/dir
22 chown -h test:test ${TESTDIR}/symlink 26 chown -h test:test ${TESTDIR}/symlink
27 chown -R test:test ${TESTDIR}/fifotest
23} 28}
24 29
25FILES_${PN} = "${sysconfdir}/selftest-chown/*" 30FILES_${PN} = "${sysconfdir}/selftest-chown/*"