Updated patch coverage script.
[platform/core/uifw/dali-toolkit.git] / automated-tests / execute.sh
index 902ba11..add0e78 100755 (executable)
@@ -77,9 +77,8 @@ fi
 rm -f tct*core-tests.xml
 
 # Clean up old coverage data
-if [ -d ../build/tizen ] ; then
-    rm -f ../build/tizen/dali/.libs/*.gcda
-fi
+[ -d ../build/tizen ] && rm -f ../build/tizen/dali/.libs/*.gcda
+[ -d ../build/tizen-cmake ] && find ../build/tizen-cmake/ -name \*.gcda -exec rm {} \;
 
 find build \( -name "*.gcda" \) -exec rm '{}' \;
 
@@ -119,7 +118,7 @@ else
         do
             echo -e "$ASCII_BOLD"
             echo -e "Executing $mod$ASCII_RESET"
-            build/src/$mod/tct-$mod-core $opt_serial $opt_noFailedRerun
+            dbus-launch build/src/$mod/tct-$mod-core $opt_serial $opt_noFailedRerun
         done
         summary_end
 
@@ -129,7 +128,7 @@ else
         summary_start
         module=$1
         shift;
-        build/src/$module/tct-$module-core $opt_serial $opt_noFailedRerun $*
+        dbus-launch build/src/$module/tct-$module-core $opt_serial $opt_noFailedRerun $*
         summary_end
 
     else
@@ -142,7 +141,7 @@ else
             if [ $ret -ne 6 ] ; then
                 if [ $opt_debug -ne 0 ] ; then
                     echo DEBUGGING:
-                    gdb --args build/src/$mod/tct-$mod-core $1
+                    dbus-launch gdb --args build/src/$mod/tct-$mod-core $1
 
                 else
                     echo $output