tests: add test with invalid version of subpkgs' dependency
Ref: https://gitlab.alpinelinux.org/alpine/abuild/-/issues/10058
This commit is contained in:
parent
9a96275d87
commit
681ef9dfcf
|
@ -236,3 +236,8 @@ teardown() {
|
||||||
&& ! TESTSUBNAME="-foo" $ABUILD sanitycheck
|
&& ! TESTSUBNAME="-foo" $ABUILD sanitycheck
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@test "abuild: invalid subpkg's version" {
|
||||||
|
cd testrepo/test-pkgname
|
||||||
|
! TESTDEPVER="1.0-0" $ABUILD all
|
||||||
|
}
|
||||||
|
|
||||||
|
|
|
@ -28,5 +28,6 @@ package() {
|
||||||
}
|
}
|
||||||
|
|
||||||
_sub() {
|
_sub() {
|
||||||
|
depends="$pkgname=${TESTDEPVER-$pkgver-r$pkgrel}"
|
||||||
mkdir -p "$subpkgdir"
|
mkdir -p "$subpkgdir"
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue