mirror of
https://git.yoctoproject.org/poky
synced 2026-09-20 03:49:32 +02:00
oeqa/selftest/bbclasses: Add tests for systemd and update-rc.d interaction
These tests verify that the correct files are left behind when systemd is inherited and depending on whether the systemd and/or sysvinit distro features are enabled. (From OE-Core rev: 4ef25caa00ad08046567d0e7f4523486c3a256d0) Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
36fb595c62
commit
b971a3a77c
17
meta-selftest/recipes-test/bbclasses/systemd-and-sysvinit.bb
Normal file
17
meta-selftest/recipes-test/bbclasses/systemd-and-sysvinit.bb
Normal file
@@ -0,0 +1,17 @@
|
||||
LICENSE = "MIT"
|
||||
|
||||
inherit allarch systemd update-rc.d
|
||||
|
||||
do_install() {
|
||||
install -d ${D}${systemd_system_unitdir}
|
||||
touch ${D}${systemd_system_unitdir}/${BPN}.service
|
||||
|
||||
install -d ${D}${INIT_D_DIR}
|
||||
touch ${D}${INIT_D_DIR}/${BPN}
|
||||
}
|
||||
|
||||
INITSCRIPT_NAME = "${BPN}"
|
||||
|
||||
SYSTEMD_SERVICE:${PN} = "${BPN}.service"
|
||||
|
||||
EXCLUDE_FROM_WORLD="1"
|
||||
12
meta-selftest/recipes-test/bbclasses/systemd-only.bb
Normal file
12
meta-selftest/recipes-test/bbclasses/systemd-only.bb
Normal file
@@ -0,0 +1,12 @@
|
||||
LICENSE = "MIT"
|
||||
|
||||
inherit allarch systemd
|
||||
|
||||
do_install() {
|
||||
install -d ${D}${systemd_system_unitdir}
|
||||
touch ${D}${systemd_system_unitdir}/${BPN}.service
|
||||
}
|
||||
|
||||
SYSTEMD_SERVICE:${PN} = "${BPN}.service"
|
||||
|
||||
EXCLUDE_FROM_WORLD="1"
|
||||
Reference in New Issue
Block a user