Skip to content

Commit 927f5d5

Browse files
author
timlinux
committed
Added stubbed tests for all classes in gui lib. Made some improvemtns to runtests script so that it now produces a grand summary for the module that lookes like:
------------------------------- TOTAL TESTS : 33 ------------------------------- TOTAL TEST CASES PASSED : 293 TOTAL TEST CASES FAILED : 0 TOTAL TEST CASES SKIPPED : 0 ------------------------------- Note that there are only test stubs - the actual test bodies still need to be implemented. git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@5248 c8812cc2-4d05-0410-92ff-de0c093fc19c
1 parent dc29cd3 commit 927f5d5

File tree

75 files changed

+4754
-6
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

75 files changed

+4754
-6
lines changed

tests/src/core/runtests.sh

+21-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,26 @@
11
#!/bin/bash
2+
#set -x
23
LIST=`ls -lah |grep rwxr-xr-x |grep -v ^d |grep -v pl$ |grep -v ~$ |grep -v .sh$ |awk '{print $8}'|awk '$1=$1' RS=`
4+
5+
TOTALEXES=0
6+
TOTALFAILED=0
7+
TOTALPASSED=0
8+
TOTALSKIPPED=0
39
for FILE in $LIST;
410
do
5-
echo "Running $FILE"
6-
./${FILE} | tail -2 |head -1
11+
RESULT=`./${FILE} | tail -2 |head -1`
12+
PASSED=`echo ${RESULT} | awk '{print $2}'`
13+
FAILED=`echo ${RESULT} | awk '{print $4}'`
14+
SKIPPED=`echo ${RESULT} | awk '{print $6}'`
15+
TOTALFAILED=`expr $TOTALFAILED + $FAILED`
16+
TOTALPASSED=`expr $TOTALPASSED + $PASSED`
17+
TOTALSKIPPED=`expr $TOTALSKIPPED + $SKIPPED`
18+
TOTALEXES=`expr $TOTALEXES + 1`
719
done
20+
echo "-------------------------------"
21+
echo "TOTAL TESTS : ${TOTALEXES}"
22+
echo "-------------------------------"
23+
echo "TOTAL TEST CASES PASSED : ${TOTALPASSED}"
24+
echo "TOTAL TEST CASES FAILED : ${TOTALFAILED}"
25+
echo "TOTAL TEST CASES SKIPPED : ${TOTALSKIPPED}"
26+
echo "-------------------------------"

0 commit comments

Comments
 (0)