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>
This commit is contained in:
Trevor Woerner
2020-12-27 00:24:01 -05:00
committed by Richard Purdie
parent 53afafe429
commit 50734c7f71
2 changed files with 7 additions and 1 deletions

View File

@@ -3,6 +3,8 @@ LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/MIT;md5=0835ade698e0bcf8506ecda
LICENSE = "MIT"
DEPENDS += "coreutils-native"
S = "${WORKDIR}"
inherit useradd allarch
@@ -16,10 +18,13 @@ do_install() {
install -d ${TESTDIR}/dir
touch ${TESTDIR}/file
ln -s ./file ${TESTDIR}/symlink
install -d ${TESTDIR}/fifotest
mkfifo ${TESTDIR}/fifotest/fifo
chown test:test ${TESTDIR}/file
chown -R test:test ${TESTDIR}/dir
chown -h test:test ${TESTDIR}/symlink
chown -R test:test ${TESTDIR}/fifotest
}
FILES_${PN} = "${sysconfdir}/selftest-chown/*"