]> git.ipfire.org Git - thirdparty/bird.git/commitdiff
Birdtest: Fix calc num of build-failured tests
authorPavel Tvrdík <pawel.tvrdik@gmail.cz>
Fri, 27 Mar 2015 13:01:30 +0000 (14:01 +0100)
committerPavel Tvrdík <pawel.tvrdik@gmail.cz>
Fri, 27 Mar 2015 13:01:30 +0000 (14:01 +0100)
tools/Makefile-top.in
tools/run_tests.sh

index ff98037f4577c00a161507bd4f825258002bd074..4a8883b5d6afb457e17002076bc426949f9c7843 100644 (file)
@@ -10,7 +10,7 @@ docs userdocs progdocs:
        $(MAKE) -C doc $@
 
 check: tests
-       tools/run_tests.sh $(objdir) $(srcdir)
+       tools/run_tests.sh "@objdir@" "@srcdir@"
 
 clean:
        $(MAKE) -C $(objdir) clean
index d06d341beb607fe1cae2c8c623a7ad416e62443e..f1a2b0d38158039b0492e41a0702031a0fc00798 100755 (executable)
@@ -3,7 +3,7 @@
 objdir=$1
 srcdir=$2
 
-all_tests=$(find $objdir -name '*_test')
+all_tests=$(find "$objdir" -name '*_test')
 
 num_all_tests=0
 for i in $all_tests; do num_all_tests=$((num_all_tests + 1)); done
@@ -20,7 +20,9 @@ for test in $all_tests ; do
 done
 
 num_all_tests_src=0
-for i in $(find $srcdir -name '*_test.c'); do num_all_tests_src=$((num_all_tests_src + 1)); done
+for dir in client conf filter lib misc nest proto sysdep; do
+       for i in $(find "$srcdir/$dir" -name '*_test.c'); do num_all_tests_src=$((num_all_tests_src + 1)); done
+done
 num_build_fail_tests=$((num_all_tests_src - num_all_tests))
 
 echo ""