Skip to content

Commit

Permalink
Leaving out disabled unit tests when they are disabled.
Browse files Browse the repository at this point in the history
  • Loading branch information
László Pere committed Jun 25, 2010
1 parent d573565 commit 5fe073c
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 1 deletion.
2 changes: 1 addition & 1 deletion tests/tests.pro
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ contains(BUILD_FEATURES,coverage) {
# test for a while.
#
#SUBDIRS = ut_lockscreenui
SUBDIRS = $$system(ls -1d ut_*/ | grep -v ut_template)
SUBDIRS = $$system(./unit_tests.sh)
} else {
SUBDIRS = $$system(ls -1d ut_*/*.pro ft_*/*.pro 2>/dev/null | sed 's!/.*!!')
}
Expand Down
16 changes: 16 additions & 0 deletions tests/unit_tests.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
#! /bin/bash

#
# If a unit test fails we the calculation of the coverage will fail. This script
# will print the names of those unit tests that are not set to be deleted and
# disabled.
#
for f in ut_*; do
if [ $f == "ut_template" ]; then
continue
fi

if [ ! -e $f/disabled -a ! -e $f/deleted ]; then
echo $f
fi
done
Empty file.

0 comments on commit 5fe073c

Please sign in to comment.