2016-03-15 03:55:05 +08:00
|
|
|
#!/usr/bin/env bats
|
|
|
|
|
|
|
|
load helpers
|
|
|
|
|
|
|
|
@test "runc version" {
|
2016-05-09 21:06:42 +08:00
|
|
|
runc -v
|
2016-03-15 03:55:05 +08:00
|
|
|
[ "$status" -eq 0 ]
|
|
|
|
[[ ${lines[0]} =~ runc\ version\ [0-9]+\.[0-9]+\.[0-9]+ ]]
|
2016-05-16 16:21:52 +08:00
|
|
|
[[ ${lines[1]} =~ commit:+ ]]
|
2016-03-15 03:55:05 +08:00
|
|
|
[[ ${lines[2]} =~ spec:\ [0-9]+\.[0-9]+\.[0-9]+ ]]
|
|
|
|
}
|