]> git.ipfire.org Git - thirdparty/bird.git/commitdiff
Birdtest: Output the number of Test Build Failures
authorPavel Tvrdík <pawel.tvrdik@gmail.cz>
Thu, 19 Mar 2015 17:37:18 +0000 (18:37 +0100)
committerPavel Tvrdík <pawel.tvrdik@gmail.cz>
Thu, 19 Mar 2015 17:37:18 +0000 (18:37 +0100)
tools/Makefile-top.in

index 506423543f591d13166637c279e54a49c638383d..c5ebff6bf06d463088f4b28923960bb43d953e48 100644 (file)
@@ -11,6 +11,8 @@ docs userdocs progdocs:
 
 check: build-tests
        @all_tests=( `find . -name '*_test' -executable` )                              ; \
+       all_tests_source=( `find . -name '*_test.c'` )                                  ; \
+       num_build_fail_tests=$$(($${#all_tests_source[@]} - $${#all_tests[@]}))         ; \
        test_num=1                                                                      ; \
        num_succ_tests=0                                                                ; \
        num_fail_tests=0                                                                ; \
@@ -25,6 +27,7 @@ check: build-tests
        echo "------------------------------"                                           ; \
        echo "  Success: $$num_succ_tests"                                              ; \
        echo "  Failure: $$num_fail_tests"                                              ; \
+       echo "  Build-Failure: $$num_build_fail_tests"                                  ; \
        echo "------------------------------"
 
 clean: