mirror of
https://github.com/containers/skopeo.git
synced 2026-07-14 13:48:32 +00:00
This is an initial attempt at bringing in the ginkgo test framework into buildah. The inspect bats file was also imported. Signed-off-by: baude <bbaude@redhat.com> Closes: #472 Approved by: rhatdan
19 lines
446 B
Bash
19 lines
446 B
Bash
#!/usr/bin/env bats
|
|
|
|
load helpers
|
|
|
|
@test "buildah version test" {
|
|
run buildah version
|
|
echo "$output"
|
|
[ "$status" -eq 0 ]
|
|
}
|
|
|
|
@test "buildah version up to date in .spec file" {
|
|
skip "cni doesnt version the same"
|
|
run buildah version
|
|
[ "$status" -eq 0 ]
|
|
bversion=$(echo "$output" | awk '/^Version:/ { print $NF }')
|
|
rversion=$(cat ${TESTSDIR}/../contrib/rpm/buildah.spec | awk '/^Version:/ { print $NF }')
|
|
test "$bversion" = "$rversion"
|
|
}
|