tests: add tests for SETFATTR

see https://gitlab.alpinelinux.org/alpine/abuild/-/issues/10027
This commit is contained in:
Natanael Copa 2021-04-28 10:57:26 +02:00
parent b0fb0de17c
commit a8de7b7f55

View File

@ -55,6 +55,17 @@ teardown() {
$ABUILD
}
@test "abuild: test SETFATTR in -dbg subpackage" {
cd testrepo/dbgpkg
ERROR_CLEANUP="$CLEANUP" SETFATTR=true $ABUILD
}
@test "abuild: test SETFATTR failure in -dbg subpackage" {
cd testrepo/dbgpkg
run ERROR_CLEANUP="$CLEANUP" SETFATTR=false $ABUILD
[ $status -ne 0 ]
}
@test "abuild: verify that packages are reproducible built" {
cd testrepo/pkg1
arch=$($ABUILD -A)