Commit f9528723 authored by Leo's avatar Leo

extend tests for pkgver-has-pkgrel

parent 052bc871
...@@ -329,7 +329,25 @@ is_travis() { ...@@ -329,7 +329,25 @@ is_travis() {
run $cmd $apkbuild run $cmd $apkbuild
[[ $status -eq 1 ]] [[ $status -eq 1 ]]
assert_match "${lines[0]}" "pkgver must not have -rN" assert_match "${lines[0]}" "pkgver must not have -r or _r"
cat <<-"EOF" >$apkbuild
pkgname=foo
pkgver=0.1_r3a1
EOF
run $cmd $apkbuild
[[ $status -eq 1 ]]
assert_match "${lines[0]}" "pkgver must not have -r or _r"
cat <<-"EOF" >$apkbuild
pkgname=foo
pkgver=02-r3a1
EOF
run $cmd $apkbuild
[[ $status -eq 1 ]]
assert_match "${lines[0]}" "pkgver must not have -r or _r"
} }
# vim: noexpandtab # vim: noexpandtab
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment