Fixed sdk_launch script (merged from tizen_2.4) 16/61916/2 accepted/tizen/common/20160311.203902 accepted/tizen/ivi/20160311.150359 accepted/tizen/mobile/20160311.143348 accepted/tizen/tv/20160311.144922 accepted/tizen/wearable/20160311.145729 submit/tizen/20160311.083725
authorshingil.kang <shingil.kang@samsung.com>
Fri, 11 Mar 2016 07:12:10 +0000 (16:12 +0900)
committershingil.kang <shingil.kang@samsung.com>
Fri, 11 Mar 2016 07:14:09 +0000 (16:14 +0900)
Change-Id: I7d07e5749d08647c87477748c809d304ed3e9d23
Signed-off-by: shingil.kang <shingil.kang@samsung.com>
script/sdk_launch

index 941f236..6206e59 100755 (executable)
@@ -132,7 +132,7 @@ then
     if [ "" != "$attach_id" ]
     #debug attach
     then
-        cmd="$COV_TEST_PREFIX ${TZ_SDK_TOOLS}/gdbserver/gdbserver :$port --attach $attach_id"
+        cmd="/usr/bin/launch_debug $launch_app_arg1 __AUL_SDK__ ATTACH __DLP_ATTACH_ARG__ --attach,:$port,$attach_id"
     #debug
     else
         if [ "" != "$result_mode" ]
@@ -141,7 +141,7 @@ then
         else
             result_mode="DEBUG"
         fi
-        cmd="/usr/bin/launch_app $pkgid.$exe __AUL_SDK__ $result_mode __DLP_DEBUG_ARG__ :$port $launch_app_mode"
+        cmd="/usr/bin/launch_app $launch_app_arg1 __AUL_SDK__ $result_mode __DLP_DEBUG_ARG__ :$port $launch_app_mode $args"
 #       cmd="$COV_TEST_PREFIX ${TZ_SDK_TOOLS}/gdbserver/gdbserver :$port ${TZ_SYS_RW_APP}/$pkgid/bin/$exe"
     fi
 else
@@ -149,9 +149,14 @@ else
     then
         if [ "" != "$result_mode" ]
         then
-            cmd="/usr/bin/launch_app $pkgid.$exe __AUL_SDK__ $result_mode $launch_app_mode"
+            if [ "$result_mode" = "UNIT_TEST" ]
+            then
+                cmd="/usr/bin/launch_app $launch_app_arg1 __AUL_SDK__ $result_mode $launch_app_mode"
+            else
+                cmd="/usr/bin/launch_app $launch_app_arg1 __AUL_SDK__ $result_mode $launch_app_mode $args"
+            fi
         else
-            cmd="/usr/bin/launch_app $pkgid.$exe"
+            cmd="/usr/bin/launch_app $launch_app_arg1"
         fi
     else
         if [ "$mode" = "da" ]
@@ -170,7 +175,7 @@ else
                 result_mode="OPROFILE"
             fi
         fi
-        cmd="/usr/bin/launch_app $pkgid.$exe __AUL_SDK__ $result_mode"
+        cmd="/usr/bin/launch_app $launch_app_arg1 __AUL_SDK__ $result_mode"
     fi
 fi