summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.travis.yml1
-rwxr-xr-xtools/infrastructure/show_disabled.sh27
2 files changed, 28 insertions, 0 deletions
diff --git a/.travis.yml b/.travis.yml
index 7796023c26..e52d45dd12 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -34,6 +34,7 @@ script:
- mkdir build && cd build && cmake ../ -DBUILD_TESTS=ON -DENABLE_GCOV=ON && make install
- sudo ldconfig
- make test
+ - bash ../tools/infrastructure/show_disabled.sh
- bash -ex ../tools/infrastructure/collect_coverage.sh ./
env:
global:
diff --git a/tools/infrastructure/show_disabled.sh b/tools/infrastructure/show_disabled.sh
new file mode 100755
index 0000000000..7444755017
--- /dev/null
+++ b/tools/infrastructure/show_disabled.sh
@@ -0,0 +1,27 @@
+#!/usr/bin/env bash
+
+# Variable to store total amount of disabled unit tests
+total_disabled=0
+
+echo ""
+echo "===== DISABLED Unit-tests amount ===== "
+echo ""
+
+# Getting the list of all UT executables
+for test_file in $(ctest -N | awk '{print $3}'); do
+ full_path=`find . -name $test_file -type f 2>/dev/null`
+ if [ $full_path ] ; then
+ # Count amount of disabled tests cases
+ count_of_disabled=$(${full_path} --gtest_list_tests | grep DISABLED | wc -l)
+ if [ 0 != $count_of_disabled ] ; then
+ let "total_disabled = $total_disabled + $count_of_disabled"
+ echo $count_of_disabled " : " $test_file;
+ fi
+ fi
+done
+echo ""
+echo "TOTAL AMOUNT OF DISABLED TESTS : " $total_disabled;
+
+exit 0
+
+