Small clean of subtitles applet code.
[mafwsubrenderer] / qmafw-gst-subtitles-renderer / unittests / run_all_tests.sh
1 #!/bin/sh
2 STATUS=0
3
4 qmake -project SUBDIRS+=`find . -type d -name ut_\*` -t subdirs -nopwd
5 qmake
6 if [ $SINGLE_PROCESS == "yes" ]; then 
7   make -B 
8 else
9   make -B -j3
10 fi
11 if [ $? -ne 0 ]; then
12   exit 1
13 fi
14
15 files=`find . -maxdepth 2 -name 'ut_*' -type f -perm -u+x -print`
16
17 echo '<?xml version="1.0"?>' > result.xml
18 echo '<unittestresults>'  >> result.xml
19 for file in $files; do
20     echo "Running test $file"
21     $file -lightxml -o tmp_result.xml;
22     
23     if [ $? -ne 0 ]; then
24       STATUS=2
25     fi
26
27     cat tmp_result.xml >>result.xml
28 done
29 echo '</unittestresults>'  >> result.xml
30 rm -f tmp_result.xml
31 sh run_valgrind.sh
32
33 echo "Done"
34 exit $STATUS
35