d7342731ab
We actually want systemd's `ConditionFirstBoot` to fire. The primary rationale here is that we're adopting Ignition for Fedora CoreOS, and having `ConditionFirstBoot=` function will help a lot, as the idea is it only runs once. However, I discovered that this breaks the `units` directive for example, as systemd blows away all the unit state in `/etc`. The correct thing to do from the start is to use presets. We could add an implementation of `units` which works with this on and instead writes a preset file but...eh. My plan is to at some point introduce an "epoch" and flip various defaults, this one, `tmp-is-dir`, the passwd file handling, etc. See: https://github.com/dustymabe/bootengine/pull/11 Closes: #1425 Approved by: jlebon |
||
---|---|---|
.. | ||
check | ||
common | ||
compose-tests | ||
composedata | ||
ex-container-tests | ||
gpghome | ||
manual | ||
utils | ||
vmcheck | ||
compose | ||
ex-container | ||
README.md |
Tests are divided into three groups:
-
Tests in the
check
directory are non-destructive and uninstalled. Some of the tests require root privileges. Usemake check
to run these. -
The
composecheck
tests currently require uid 0 capabilities - the default in Docker, or you can run them via a user namespace. They are non-destructive, but are installed.To use them, you might do a
make && sudo make install
inside a Docker container.Then invoke
./tests/compose
. Alternatively of course, you can simply run the tests on a host system or in an existing container, without doing a build.Note: This is intentionally not a
Makefile
target because it doesn't require building and doesn't use uninstalled binaries. -
Tests in the
vmcheck
directory are oriented around using Vagrant. Usemake vmcheck
to run them. See alsoHACKING.md
in the top directory.
The common
directory contains files used by multiple
tests. The utils
directory contains helper utilities
required to run the tests.