mirror of
https://github.com/containers/podman.git
synced 2025-08-06 11:32:07 +08:00
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:
@ -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
|
||||
###############################################################################
|
||||
|
Reference in New Issue
Block a user