1
0
mirror of https://github.com/containers/youki synced 2024-09-20 02:41:47 +02:00
youki/tests/rootless-tests/run.sh

18 lines
616 B
Bash
Raw Normal View History

# This is a temporary test-collection for validating youki runs correctly with podman in rootless mode
# This will be moved to a proper rust based test crate, similar to rust-integration tests soon
set -ex
runtime=$1
podman rm --force --ignore create-test # remove if existing
podman create --runtime $runtime --name create-test hello-world
log=$(podman start -a create-test)
echo $log | grep "This message shows that your installation appears to be working correctly"
podman rm create-test
rand=$(head -c 10 /dev/random | base64)
log=$(podman run --runtime $runtime fedora echo "$rand")
echo $log | grep $rand