mirror of
https://gitlab.alpinelinux.org/alpine/abuild.git
synced 2025-02-03 05:02:13 +00:00
tests: test for build failure
This commit is contained in:
parent
b6a807296f
commit
3a75c39860
@ -16,3 +16,10 @@ setup() {
|
||||
cd testrepo/pkg1
|
||||
$ABUILD
|
||||
}
|
||||
|
||||
@test "abuild: build failure" {
|
||||
cd testrepo/buildfail
|
||||
run $ABUILD
|
||||
[ $status -ne 0 ]
|
||||
}
|
||||
|
||||
|
30
tests/testrepo/buildfail/APKBUILD
Normal file
30
tests/testrepo/buildfail/APKBUILD
Normal file
@ -0,0 +1,30 @@
|
||||
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
|
||||
|
||||
# test package
|
||||
pkgname="buildfail"
|
||||
pkgver="1.0"
|
||||
pkgrel=0
|
||||
pkgdesc="Dummy test package that fails to build"
|
||||
url="https://gitlab.alpinelinux.org/alpine/aports"
|
||||
arch="noarch"
|
||||
license="MIT"
|
||||
subpackages="$pkgname-dev $pkgname-doc"
|
||||
source=""
|
||||
|
||||
prepare() {
|
||||
mkdir -p "$builddir"
|
||||
}
|
||||
|
||||
build() {
|
||||
false
|
||||
}
|
||||
|
||||
check() {
|
||||
true
|
||||
}
|
||||
|
||||
package() {
|
||||
mkdir -p "$pkgdir"
|
||||
cp -r * "$pkgdir"/
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user