abuild/tests/abuild-gzsplit.bats
Natanael Copa 69dd828919 tests: improve test output
prefix each test output so its easier to see what is tested
2020-07-08 10:59:38 +02:00

28 lines
537 B
Bash

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"
}
@test "abuild-gzsplit: 3.11 package" {
run $ABUILD_GZSPLIT < "$datadir"/alpine-base-3.11.6-r0.apk
[ "$status" -eq 0 ]
}
@test "abuild-gzsplit: 3.12 package" {
run $ABUILD_GZSPLIT < "$datadir"/alpine-base-3.12.0-r0.apk
[ "$status" -eq 0 ]
}