tests: improve test output

prefix each test output so its easier to see what is tested
This commit is contained in:
Natanael Copa 2020-07-08 10:59:38 +02:00
parent 84e82828ba
commit 69dd828919
3 changed files with 6 additions and 6 deletions

View File

@ -15,13 +15,13 @@ teardown() {
cd "$startdir"
}
@test "abuild-gzsplit with 3.11 package" {
@test "abuild-gzsplit: 3.11 package" {
run $ABUILD_GZSPLIT < "$datadir"/alpine-base-3.11.6-r0.apk
[ "$status" -eq 0 ]
}
@test "abuild-gzsplit with 3.12 package" {
@test "abuild-gzsplit: 3.12 package" {
run $ABUILD_GZSPLIT < "$datadir"/alpine-base-3.12.0-r0.apk
[ "$status" -eq 0 ]
}

View File

@ -3,10 +3,10 @@ setup() {
export ABUILD_SHAREDIR=$PWD/..
}
@test "help text" {
@test "abuild: help text" {
$ABUILD -h
}
@test "version string" {
@test "abuild: version string" {
$ABUILD -V
}

View File

@ -2,10 +2,10 @@ setup() {
export FUNCS=../functions.sh
}
@test "check if CBUILD is set" {
@test "functions: check if CBUILD is set" {
. $FUNCS && test -n "$CBUILD"
}
@test "check that missing gcc does not kill us" {
@test "functions: check that missing gcc does not kill us" {
sh -e -c "CC=false; . $FUNCS && test -z \"$CBUILD\""
}