2020-07-08 08:55:01 +00:00
|
|
|
setup() {
|
2021-12-24 20:52:32 +00:00
|
|
|
export ABUILD_GZSPLIT="$PWD/../abuild-gzsplit"
|
2020-07-08 08:55:01 +00:00
|
|
|
datadir="$PWD/testdata"
|
2021-12-24 20:52:32 +00:00
|
|
|
cd "$BATS_TEST_TMPDIR"
|
2020-07-08 08:55:01 +00:00
|
|
|
}
|
|
|
|
|
2020-07-08 08:59:38 +00:00
|
|
|
@test "abuild-gzsplit: 3.11 package" {
|
2020-07-08 08:55:01 +00:00
|
|
|
run $ABUILD_GZSPLIT < "$datadir"/alpine-base-3.11.6-r0.apk
|
|
|
|
[ "$status" -eq 0 ]
|
|
|
|
}
|
|
|
|
|
2020-07-08 08:59:38 +00:00
|
|
|
@test "abuild-gzsplit: 3.12 package" {
|
2020-07-08 08:55:01 +00:00
|
|
|
run $ABUILD_GZSPLIT < "$datadir"/alpine-base-3.12.0-r0.apk
|
|
|
|
[ "$status" -eq 0 ]
|
|
|
|
}
|