Updated test scripts to allow executing smaller numbers of tests
[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 if [ -n "$1" ] ; then
14   echo EXECUTING ONLY $1
15   execute $*
16
17 else
18   for mod in `ls -1 src/ | grep -v CMakeList `
19   do
20     if [ $mod != 'common' ] && [ $mod != 'manual' ]; then
21         echo EXECUTING $mod
22         execute $mod $*
23     fi
24   done
25 fi
26
27 scripts/summarize.pl