1SUMMARY = "selftest chown"
2LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/MIT;md5=0835ade698e0bcf8506ecda2f7b4f302"
3
4LICENSE = "MIT"
5
6DEPENDS += "coreutils-native"
7
8S = "${WORKDIR}"
9
10inherit useradd allarch
11
12USERADD_PACKAGES = "${PN}"
13USERADD_PARAM:${PN} = "-u 1234 -M test"
14TESTDIR = "${D}${sysconfdir}/selftest-chown"
15
16do_install() {
17	install -d   ${TESTDIR}
18	install -d   ${TESTDIR}/dir
19	touch        ${TESTDIR}/file
20	ln -s ./file ${TESTDIR}/symlink
21	install -d   ${TESTDIR}/fifotest
22	mkfifo       ${TESTDIR}/fifotest/fifo
23
24	chown    test:test ${TESTDIR}/file
25	chown -R test:test ${TESTDIR}/dir
26	chown -h test:test ${TESTDIR}/symlink
27	chown -R test:test ${TESTDIR}/fifotest
28}
29
30FILES:${PN} = "${sysconfdir}/selftest-chown/*"
31