From f24dcff607088ef115171ab1a747b64421bc2f3e Mon Sep 17 00:00:00 2001 From: Natanael Copa Date: Tue, 14 Jun 2022 16:58:21 +0200 Subject: [PATCH] tests: functions.sh: test missing git --- tests/functions_test | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/tests/functions_test b/tests/functions_test index e3f044c..34bc336 100755 --- a/tests/functions_test +++ b/tests/functions_test @@ -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" +}