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:
Peter Kjellerstedt
2024-08-20 21:54:40 +02:00
committed by Richard Purdie
parent 36fb595c62
commit b971a3a77c
3 changed files with 135 additions and 0 deletions

View 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"

View 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"