mirror of
https://gitlab.alpinelinux.org/alpine/abuild.git
synced 2024-12-24 16:02:23 +00:00
41 lines
650 B
Bash
41 lines
650 B
Bash
setup() {
|
|
export ABUILD="$PWD/../abuild"
|
|
export ABUILD_SHAREDIR="$PWD/.."
|
|
export REPODEST="$BATS_TMPDIR"/packages
|
|
}
|
|
|
|
teardown() {
|
|
rm -rf "$REPODEST"
|
|
}
|
|
|
|
@test "abuild: help text" {
|
|
$ABUILD -h
|
|
}
|
|
|
|
@test "abuild: version string" {
|
|
$ABUILD -V
|
|
}
|
|
|
|
@test "abuild: build simple package without deps" {
|
|
cd testrepo/pkg1
|
|
$ABUILD
|
|
}
|
|
|
|
@test "abuild: build failure" {
|
|
cd testrepo/buildfail
|
|
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
|
|
}
|