File: version.bats

package info (click to toggle)
runc 1.3.3%2Bds1-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 3,000 kB
  • sloc: sh: 2,298; ansic: 1,125; makefile: 229
file content (11 lines) | stat: -rw-r--r-- 233 bytes parent folder | download | duplicates (9)
1
2
3
4
5
6
7
8
9
10
11
#!/usr/bin/env bats

load helpers

@test "runc version" {
	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]+ ]]
}