blob: 87bf9438b861319e33a7bfc072ef8483036d6243 [file] [log] [blame]
Andrew Geissler82c905d2020-04-13 13:39:40 -05001SUMMARY = "selftest chown"
2LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/MIT;md5=0835ade698e0bcf8506ecda2f7b4f302"
3
4LICENSE = "MIT"
5
6S = "${WORKDIR}"
7
8inherit useradd allarch
9
10USERADD_PACKAGES = "${PN}"
11USERADD_PARAM_${PN} = "-u 1234 -M test"
12TESTDIR = "${D}${sysconfdir}/selftest-chown"
13
14do_install() {
15 install -d ${TESTDIR}
16 install -d ${TESTDIR}/dir
17 touch ${TESTDIR}/file
18 ln -s ./file ${TESTDIR}/symlink
19
20 chown test:test ${TESTDIR}/file
21 chown -R test:test ${TESTDIR}/dir
22 chown -h test:test ${TESTDIR}/symlink
23}
24
25FILES_${PN} = "${sysconfdir}/selftest-chown/*"