Merge "TableView - scripting support" into tizen
[platform/core/uifw/dali-toolkit.git] / automated-tests / execute.sh
1 #!/bin/bash
2
3 function execute
4 {
5     scripts/tctestsgen.sh $1 `pwd` desktop $2
6     testkit-lite -f `pwd`/tests.xml -o tct-${1}-core-tests.xml  -A --comm localhost
7     scripts/add_style.pl $1
8 }
9
10 # Clean up old test results
11 rm -f tct*core-tests.xml
12
13 # Clean up old coverage data
14 if [ -d ../build/slp ] ; then
15     rm -f ../build/slp/dali-core/.libs/*.gcda
16 elif [ -d ../build/tizen ] ; then
17     rm -f ../build/tizen/dali-core/.libs/*.gcda
18 fi
19
20 find build -name "*.gcda" -exec rm '{}' \;
21
22 if [ -n "$1" ] ; then
23   echo EXECUTING ONLY $1
24   execute $*
25
26 else
27   for mod in `ls -1 src/ | grep -v CMakeList `
28   do
29     if [ $mod != 'common' ] && [ $mod != 'manual' ]; then
30         echo EXECUTING $mod
31         execute $mod $*
32     fi
33   done
34 fi
35
36 scripts/summarize.pl