[dali_1.0.12] Merge branch 'tizen'
[platform/core/uifw/dali-toolkit.git] / automated-tests / execute.sh
index ec5c9e2..aedd933 100755 (executable)
@@ -2,7 +2,7 @@
 
 function execute
 {
-    scripts/tctestsgen.sh $1 `pwd` desktop
+    scripts/tctestsgen.sh $1 `pwd` desktop $2
     testkit-lite -f `pwd`/tests.xml -o tct-${1}-core-tests.xml  -A --comm localhost
     scripts/add_style.pl $1
 }
@@ -10,16 +10,23 @@ function execute
 # Clean up old test results
 rm -f tct*core-tests.xml
 
+# Clean up old coverage data
+if [ -d ../build/tizen ] ; then
+    rm -f ../build/tizen/dali-core/.libs/*.gcda
+fi
+
+find build -name "*.gcda" -exec rm '{}' \;
+
 if [ -n "$1" ] ; then
   echo EXECUTING ONLY $1
-  execute $1
+  execute $*
 
 else
   for mod in `ls -1 src/ | grep -v CMakeList `
   do
     if [ $mod != 'common' ] && [ $mod != 'manual' ]; then
         echo EXECUTING $mod
-        execute $mod
+        execute $mod $*
     fi
   done
 fi