Andrew Geissler | 82c905d | 2020-04-13 13:39:40 -0500 | [diff] [blame] | 1 | SUMMARY = "selftest chown" |
| 2 | LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/MIT;md5=0835ade698e0bcf8506ecda2f7b4f302" |
| 3 | |
| 4 | LICENSE = "MIT" |
| 5 | |
| 6 | S = "${WORKDIR}" |
| 7 | |
| 8 | inherit useradd allarch |
| 9 | |
| 10 | USERADD_PACKAGES = "${PN}" |
| 11 | USERADD_PARAM_${PN} = "-u 1234 -M test" |
| 12 | TESTDIR = "${D}${sysconfdir}/selftest-chown" |
| 13 | |
| 14 | do_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 | |
| 25 | FILES_${PN} = "${sysconfdir}/selftest-chown/*" |