Skip to content

Commit

Permalink
Added stubbed tests for all classes in gui lib. Made some improvemtns…
Browse files Browse the repository at this point in the history
… 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
  • Loading branch information
timlinux committed Apr 11, 2006
1 parent dc29cd3 commit 927f5d5
Show file tree
Hide file tree
Showing 75 changed files with 4,754 additions and 6 deletions.
23 changes: 21 additions & 2 deletions tests/src/core/runtests.sh
@@ -1,7 +1,26 @@
#!/bin/bash
#set -x
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=`

TOTALEXES=0
TOTALFAILED=0
TOTALPASSED=0
TOTALSKIPPED=0
for FILE in $LIST;
do
echo "Running $FILE"
./${FILE} | tail -2 |head -1
RESULT=`./${FILE} | tail -2 |head -1`
PASSED=`echo ${RESULT} | awk '{print $2}'`
FAILED=`echo ${RESULT} | awk '{print $4}'`
SKIPPED=`echo ${RESULT} | awk '{print $6}'`
TOTALFAILED=`expr $TOTALFAILED + $FAILED`
TOTALPASSED=`expr $TOTALPASSED + $PASSED`
TOTALSKIPPED=`expr $TOTALSKIPPED + $SKIPPED`
TOTALEXES=`expr $TOTALEXES + 1`
done
echo "-------------------------------"
echo "TOTAL TESTS : ${TOTALEXES}"
echo "-------------------------------"
echo "TOTAL TEST CASES PASSED : ${TOTALPASSED}"
echo "TOTAL TEST CASES FAILED : ${TOTALFAILED}"
echo "TOTAL TEST CASES SKIPPED : ${TOTALSKIPPED}"
echo "-------------------------------"

0 comments on commit 927f5d5

Please sign in to comment.