kumquat-buildroot/support/testing/tests/init
Yann E. MORIN 50e398e2d9 support/run-test: add test for systemd using dbus-broker
Add four new tests for systemd (rw and ro in each case):
  - use dbus-broker instead of the original dbus
  - use the original dbus, with dbus-broker installed

The first two extend the existing IfUpDown test cases by just enabling
dbus-broker; the second ones extend this further, by explicitly enabling
the original dbus.

For one of the tests, we overload the test_run() function to test that
the dbus-broker daemon is indeed running as root. We need not replicate
that check in the other dbus-broker-only test, and it does not make
sense to test that in tests that have the original dbus enabled.

Presence of the original dbus and dbus-broker on the same system is
valid: the original dbus is used as the default system bus daemon. We do
not test switching between the two at runtime, though as this is really
too corner-case specific. We just test to ensure the original dbus
system bus daemon is not impacted by the presence of dbus-broker.

Note: the 'full' test-case enables all systemd options, and some of them
do pull the original dbus package, so we can't use that to test the
integration of dbus-broker; instead, we extend the ifupdown case, which
does not enable the original dbus.

The default external toolchain for cortex-A9 is the old ARM toolchain
which has kernel headers 4.10 Since dbus-broker needs toolchain headers
>= 4.17, it can't be selected with this toolchain. Switch the systemd
tests to the Bootlin toolchains instead. We switch all of them to make
things easier. Note that we will need to take care in the future that
the headers version used in the bootlin toolchain doesn't get bigger
than the kernel that is used. The kernel is currently 5.10, the headers
in the bleeding edge bootlin toolchain are 5.4.

Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
Cc: Norbert Lange <nolange79@gmail.com>
Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
2022-07-28 00:48:54 +02:00
..
systemd-factory/var/foo
test_systemd_selinux support/testing/tests/init/test_systemd_selinux: new SELinuxSystemdSquashfs test 2020-10-06 15:30:12 +02:00
__init__.py
base.py support/testing: revert the last change of check_network() 2021-08-24 23:54:53 +02:00
test_busybox.py testing/tests/init: use lowercase method names 2017-10-06 18:58:16 +02:00
test_none.py support/testing: use .assertRunOk() when possible 2021-06-26 17:41:10 +02:00
test_openrc.py support/testing: test_openrc: switch to ARM arm toolchain and builtin kernel 2021-09-21 22:21:00 +02:00
test_systemd_selinux.py support/testing/tests: fix flake8 warnings 2020-11-06 08:11:25 +01:00
test_systemd.py support/run-test: add test for systemd using dbus-broker 2022-07-28 00:48:54 +02:00