Updated scripts for faster build/execution cycle
[platform/core/uifw/dali-core.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     rm -f ../build/slp/dali-core/.libs/*.gcno
17 elif [ -d ../build/tizen ] ; then
18     rm -f ../build/tizen/dali-core/.libs/*.gcda
19     rm -f ../build/tizen/dali-core/.libs/*.gcno
20 fi
21
22 find build \( -name "*.gcda" -o -name "*.gcno" \) -exec rm '{}' \;
23
24 if [ -n "$1" ] ; then
25   echo EXECUTING ONLY $1
26   execute $*
27
28 else
29   for mod in `ls -1 src/ | grep -v CMakeList `
30   do
31     if [ $mod != 'common' ] && [ $mod != 'manual' ]; then
32         echo EXECUTING $mod
33         execute $mod $*
34     fi
35   done
36 fi
37
38 scripts/summarize.pl