Add initial system tests for quadlets

This adds basic container and volume system tests for quadlet. These
install and run actual systemd units and ensure they work.

Signed-off-by: Alexander Larsson <alexl@redhat.com>
This commit is contained in:
Alexander Larsson
2022-12-13 14:14:50 +01:00
parent 20b10574d7
commit 80878f20bc
5 changed files with 287 additions and 1 deletions

View File

@ -2,6 +2,7 @@
# Podman command to run; may be podman-remote
PODMAN=${PODMAN:-podman}
QUADLET=${QUADLET:-quadlet}
# Standard image to use for most tests
PODMAN_TEST_IMAGE_REGISTRY=${PODMAN_TEST_IMAGE_REGISTRY:-"quay.io"}
@ -864,5 +865,13 @@ EOF
run_podman build -t $imagename ${PODMAN_TMPDIR}
}
##########################
# sleep_to_next_second # Sleep until second rolls over
##########################
function sleep_to_next_second() {
sleep 0.$(printf '%04d' $((10000 - 10#$(date +%4N))))
}
# END miscellaneous tools
###############################################################################