From: ho.namkoong Date: Wed, 19 Jun 2013 12:58:30 +0000 (+0900) Subject: [Title] fix unittest pull bug X-Git-Tag: submit/tizen_2.2/20130623.112729~5 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=0a4c26f0b0a6ce2d67976da90e122fe01b47ab4b;p=sdk%2Ftarget%2Fsdbd.git [Title] fix unittest pull bug [Type] [Module] [Priority] [CQ#] [Redmine#] 9670 [Problem] [Cause] [Solution] [TestCase] Change-Id: I26f1c17e26cfcf095e3cf5d21741cb5330d95084 --- diff --git a/sdk_launch b/sdk_launch index 10b2310..cf48ea8 100755 --- a/sdk_launch +++ b/sdk_launch @@ -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 diff --git a/src/file_sync_service.c b/src/file_sync_service.c index c5a98fa..aa5c415 100644 --- a/src/file_sync_service.c +++ b/src/file_sync_service.c @@ -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}