mirror of
https://gitlab.alpinelinux.org/alpine/abuild.git
synced 2024-12-22 07:00:28 +00:00
tests: functions.sh: test missing git
This commit is contained in:
parent
b9739f2c3f
commit
f24dcff607
@ -4,7 +4,8 @@
|
||||
init_tests \
|
||||
funcs_check_CBUILD \
|
||||
funcs_check_missing_gcc \
|
||||
funcs_check_missing_apk
|
||||
funcs_check_missing_apk \
|
||||
funcs_check_missing_git
|
||||
|
||||
FUNCS=$(atf_get_srcdir)/../functions.sh
|
||||
|
||||
@ -25,3 +26,10 @@ funcs_check_missing_apk_body() {
|
||||
-e match:"Unable to deduce build architecture" \
|
||||
sh -e -c "APK=false; . $FUNCS && test -z \"$CBUILD\""
|
||||
}
|
||||
|
||||
funcs_check_missing_git_body() {
|
||||
atf_check -s exit:0 \
|
||||
-o empty \
|
||||
-e empty \
|
||||
sh -e -c "GIT=false . $FUNCS"
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user