[Title] fix unittest pull bug
authorho.namkoong <ho.namkoong@samsung.com>
Wed, 19 Jun 2013 12:58:30 +0000 (21:58 +0900)
committerho.namkoong <ho.namkoong@samsung.com>
Fri, 21 Jun 2013 11:27:40 +0000 (20:27 +0900)
[Type]
[Module]
[Priority]
[CQ#]
[Redmine#] 9670
[Problem]
[Cause]
[Solution]
[TestCase]

Change-Id: I26f1c17e26cfcf095e3cf5d21741cb5330d95084

sdk_launch
src/file_sync_service.c

index 10b2310..cf48ea8 100755 (executable)
@@ -77,7 +77,8 @@ until [ -z "$1" ]; do
                 then
                     result_mode="$result_mode,UNIT_TEST"
                 else
-                    result_mode="OPROFILE,UNIT_TEST"
+                    launch_app_mode="__LAUNCH_APP_MODE__ SYNC"
+                    result_mode="UNIT_TEST"
                 fi
             fi
             if [ "$type" = "gcov" ]
@@ -87,7 +88,8 @@ until [ -z "$1" ]; do
                 then
                     result_mode="$result_mode,CODE_COVERAGE"
                 else
-                    result_mode="OPROFILE,CODE_COVERAGE"
+                    launch_app_mode="__LAUNCH_APP_MODE__ SYNC"
+                    result_mode="CODE_COVERAGE"
                 fi
             fi
         done;
@@ -111,22 +113,28 @@ done
 if [ "$mode" = "debug" ]
 then
     if [ "" != "$attach_id" ]
-        #debug attach
-        then
-            cmd="$COV_TEST_PREFIX /home/developer/sdk_tools/gdbserver/gdbserver :$port --attach $attach_id"
+    #debug attach
+    then
+        cmd="$COV_TEST_PREFIX /home/developer/sdk_tools/gdbserver/gdbserver :$port --attach $attach_id $launch_app_mode"
     #debug
     else
-#debugging using debug_launchpad        cmd="/usr/bin/launch_app $pkgid.$exe __AUL_SDK__ DEBUG __DLP_DEBUG_ARG__ :$port"
-        cmd="$COV_TEST_PREFIX /home/developer/sdk_tools/gdbserver/gdbserver :$port /opt/apps/$pkgid/bin/$exe"
+        if [ "" != "$result_mode" ]
+        then
+            result_mode="DEBUG,$result_mode"
+        else
+            result_mode="DEBUG"
+        fi
+        cmd="/usr/bin/launch_app $pkgid.$exe __AUL_SDK__ $result_mode __DLP_DEBUG_ARG__ :$port $args $launch_app_mode"
+#       cmd="$COV_TEST_PREFIX /home/developer/sdk_tools/gdbserver/gdbserver :$port /opt/apps/$pkgid/bin/$exe"
     fi
 else
     if [ "$mode" = "run" ]
     then
         if [ "" != "$result_mode" ]
         then
-            cmd="/usr/bin/launch_app $pkgid.$exe __AUL_SDK__ $result_mode $args"
+            cmd="/usr/bin/launch_app $pkgid.$exe __AUL_SDK__ $result_mode $args $launch_app_mode"
         else
-            cmd="/usr/bin/launch_app $pkgid.$exe"
+            cmd="/usr/bin/launch_app $pkgid.$exe $launch_app_mode"
         fi
     else
         if [ "$mode" = "da" ]
@@ -145,10 +153,10 @@ else
                 result_mode="OPROFILE"
             fi
         fi
-        cmd="/usr/bin/launch_app $pkgid.$exe __AUL_SDK__ $result_mode $args"
+        cmd="/usr/bin/launch_app $pkgid.$exe __AUL_SDK__ $result_mode $args $launch_app_mode"
     fi
 fi
 
 # execute command
 echo $cmd
-#$cmd $args
+$cmd $args
index c5a98fa..aa5c415 100644 (file)
@@ -43,7 +43,7 @@ struct sync_permit_rule
 
 struct sync_permit_rule sdk_sync_permit_rule[] = {
 //    /* 0 */ {"rds", "^((/opt/apps)|(/opt/usr/apps))/[a-zA-Z0-9]{10}/info/\\.sdk_delta\\.info$", 1},
-    /* 1 */ {"unitest", "^((/opt/apps)|(/opt/usr/apps))/[a-zA-Z0-9]{10}/data/[a-zA-Z0-9_\\-]{1,50}\\.xml$", 1},
+    /* 1 */ {"unitest", "^((/tmp)|(/opt/apps)|(/opt/usr/apps))/[a-zA-Z0-9]{10}/data/[a-zA-Z0-9_\\-]{1,50}\\.xml$", 1},
     /* 2 */ {"codecoverage", "^((/opt/apps)|(/opt/usr/apps))/[a-zA-Z0-9]{10}/data/+([a-zA-Z0-9_/\\.])*+[a-zA-Z0-9_\\-\\.]{1,50}\\.gcda$", 1},
     /* 3 */ {"da", "^(/tmp/da/)*+[a-zA-Z0-9_\\-\\.]{1,50}\\.png$", 1},
     /* end */ {NULL, NULL, 0}