-
Notifications
You must be signed in to change notification settings - Fork 351
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add initial tests for rootless podman (#2406)
- Loading branch information
Showing
3 changed files
with
46 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# 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 |