tests: add test for basic package

This commit is contained in:
Natanael Copa 2020-10-29 12:04:27 +00:00
parent 4c38544a96
commit 68baa23906
1 changed files with 8 additions and 2 deletions

View File

@ -1,6 +1,7 @@
setup() {
export ABUILD=../abuild
export ABUILD_SHAREDIR=$PWD/..
export ABUILD="$PWD/../abuild"
export ABUILD_SHAREDIR="$PWD/.."
export REPODEST="$BATS_TMPDIR"/packages
}
@test "abuild: help text" {
@ -10,3 +11,8 @@ setup() {
@test "abuild: version string" {
$ABUILD -V
}
@test "abuild: build simple package without deps" {
cd testrepo/pkg1
$ABUILD
}