mirror of
https://github.com/opencontainers/runc.git
synced 2026-07-11 06:03:57 +08:00
39aa5d0b1a
Signed-off-by: Aleksa Sarai <asarai@suse.de>
12 lines
245 B
Bash
12 lines
245 B
Bash
#!/usr/bin/env bats
|
|
|
|
load helpers
|
|
|
|
@test "runc version" {
|
|
run "$RUNC" -v
|
|
[ "$status" -eq 0 ]
|
|
[[ ${lines[0]} =~ runc\ version\ [0-9]+\.[0-9]+\.[0-9]+ ]]
|
|
[[ ${lines[1]} =~ commit:+ ]]
|
|
[[ ${lines[2]} =~ spec:\ [0-9]+\.[0-9]+\.[0-9]+ ]]
|
|
}
|