2020-07-08 08:55:01 +00:00
|
|
|
setup() {
|
|
|
|
startdir=$PWD
|
|
|
|
export ABUILD_GZSPLIT="$PWD/.."/abuild-gzsplit
|
|
|
|
outdir="$PWD/tmp"
|
|
|
|
mkdir -p $outdir
|
|
|
|
datadir="$PWD/testdata"
|
|
|
|
cd "$outdir"
|
|
|
|
}
|
|
|
|
|
|
|
|
teardown() {
|
|
|
|
rm -f "$outdir"/control.tar.gz \
|
|
|
|
"$outdir"/data.tar.gz \
|
|
|
|
"$outdir"/signatures.tar.gz
|
|
|
|
rmdir "$outdir"
|
|
|
|
cd "$startdir"
|
|
|
|
}
|
|
|
|
|
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 ]
|
|
|
|
}
|