abuild/tests/abuild.bats
2020-10-29 13:30:30 +00:00

26 lines
383 B
Bash

setup() {
export ABUILD="$PWD/../abuild"
export ABUILD_SHAREDIR="$PWD/.."
export REPODEST="$BATS_TMPDIR"/packages
}
@test "abuild: help text" {
$ABUILD -h
}
@test "abuild: version string" {
$ABUILD -V
}
@test "abuild: build simple package without deps" {
cd testrepo/pkg1
$ABUILD
}
@test "abuild: build failure" {
cd testrepo/buildfail
run $ABUILD
[ $status -ne 0 ]
}