Commit 3a58c52c authored by Leo's avatar Leo Committed by maxice8

adapt tests for new pkgname_has_uppercase and test pkgver_has_pkgrel

parent 145c69c3
......@@ -269,7 +269,7 @@ assert_match() {
assert_match "${lines[0]}" "pkgname must not have uppercase characters"
cat <<-"EOF" >$apkbuild
pkgname=fOo
pkgname=foo-FONT
EOF
run $cmd $apkbuild
......@@ -277,14 +277,14 @@ assert_match() {
assert_match "${lines[0]}" "pkgname must not have uppercase characters"
cat <<-"EOF" >$apkbuild
pkgname=fOo
pkgname=f_oO
EOF
run $cmd $apkbuild
[[ $status -eq 1 ]]
assert_match "${lines[0]}" "pkgname must not have uppercase characters"
cat <<-"EOF" >$apkbuild
pkgname=FOO
pkgname=f.o.O
EOF
run $cmd $apkbuild
......@@ -292,7 +292,7 @@ assert_match() {
assert_match "${lines[0]}" "pkgname must not have uppercase characters"
cat <<-"EOF" >$apkbuild
pkgname=fOO
pkgname=9Foo
EOF
run $cmd $apkbuild
......@@ -308,5 +308,23 @@ assert_match() {
assert_match "${lines[0]}" "pkgname must not have uppercase characters"
}
@test 'pkgname must not have -rN' {
cat <<-"EOF" >$apkbuild
pkgname=foo
pkgver=1
EOF
run $cmd $apkbuild
[[ $status -eq 0 ]]
cat <<-"EOF" >$apkbuild
pkgname=foo
pkgver=1-r3
EOF
run $cmd $apkbuild
[[ $status -eq 1 ]]
assert_match "${lines[0]}" "pkgver must not have -rN"
}
# 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