test/system: Test that toolboxes start alright

This commit is contained in:
Ondřej Míchal 2020-09-24 16:01:42 +02:00 committed by Ondřej "Harry" Míchal
parent ecc796246b
commit bbc23f3fb0

View file

@ -2,6 +2,15 @@
load helpers
@test "Start the 'running' container" {
run_podman --log-level debug start running
}
@test "Logs of container 'running' look alright" {
run_podman logs running
is "${lines[${#lines[@]} - 1]}" "level=debug msg=\"Going to sleep\"" "The last line of the logs should say the entry-point went to sleep"
}
@test "Echo 'Hello World' inside of the default container" {
run_toolbox run echo "Hello World"
# is "$output" "Hello World" "Should say 'Hello World'"