From a8de7b7f55a2d495f674f481f4e9e95224fb5ffe Mon Sep 17 00:00:00 2001 From: Natanael Copa Date: Wed, 28 Apr 2021 10:57:26 +0200 Subject: [PATCH] tests: add tests for SETFATTR see https://gitlab.alpinelinux.org/alpine/abuild/-/issues/10027 --- tests/abuild.bats | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/tests/abuild.bats b/tests/abuild.bats index 6ec3ff5..724123f 100644 --- a/tests/abuild.bats +++ b/tests/abuild.bats @@ -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)