summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoriAndrew5 <abyzhynar@luxoft.com>2016-06-06 18:29:12 +0300
committeriAndrew5 <abyzhynar@luxoft.com>2016-06-07 12:36:33 +0300
commita1fe008ea3b430b2140111a74b040192a3685c6b (patch)
treee6989fd53e7cd95b3f1e4c7ea1b3ffa3c03257d8
parent60910f108b6956b270e396af866f2333bb50b7b2 (diff)
downloadsdl_core-a1fe008ea3b430b2140111a74b040192a3685c6b.tar.gz
Create script counting DISABLED tests amount
Created bash script which counts all DISABLED unit tests amount and shows it Changed settings in travis.yml file to execute script Related issue: APPLINK-24966
-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 99dcc0e149..bf5a14da46 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -33,6 +33,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
+
+