mirror of
https://gitlab.alpinelinux.org/alpine/abuild.git
synced 2025-03-10 14:17:33 +00:00
tests: add test for lib64
This commit is contained in:
parent
5111ca5fc8
commit
614fbc507b
@ -23,7 +23,18 @@ teardown() {
|
||||
|
||||
@test "abuild: build failure" {
|
||||
cd testrepo/buildfail
|
||||
run $ABUILD
|
||||
run $ABUILD cleanpkg all
|
||||
[ $status -ne 0 ]
|
||||
}
|
||||
|
||||
@test "abuild: test check for /usr/lib64" {
|
||||
cd testrepo/lib64test
|
||||
run $ABUILD cleanpkg all
|
||||
[ $status -ne 0 ]
|
||||
}
|
||||
|
||||
@test "abuild: test options=lib64" {
|
||||
cd testrepo/lib64test
|
||||
options=lib64 $ABUILD
|
||||
$ABUILD cleanpkg
|
||||
}
|
||||
|
34
tests/testrepo/lib64test/APKBUILD
Normal file
34
tests/testrepo/lib64test/APKBUILD
Normal file
@ -0,0 +1,34 @@
|
||||
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
|
||||
|
||||
# test package
|
||||
pkgname="lib64test"
|
||||
pkgver="1.0"
|
||||
pkgrel=0
|
||||
pkgdesc="Dummy test package"
|
||||
url="https://gitlab.alpinelinux.org/alpine/aports"
|
||||
arch="noarch"
|
||||
license="MIT"
|
||||
subpackages="$pkgname-dev $pkgname-doc"
|
||||
source=""
|
||||
builddir="$srcdir/$pkgname-$pkgver"
|
||||
|
||||
prepare() {
|
||||
mkdir -p "$builddir"
|
||||
}
|
||||
|
||||
build() {
|
||||
mkdir -p usr/include usr/bin usr/share/man/man1 usr/lib64
|
||||
touch usr/include/$pkgname.h
|
||||
touch usr/bin/$pkgname
|
||||
touch usr/share/man/man1/$pkgname.1
|
||||
}
|
||||
|
||||
check() {
|
||||
true
|
||||
}
|
||||
|
||||
package() {
|
||||
mkdir -p "$pkgdir"
|
||||
cp -r * "$pkgdir"/
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user