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" ]
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;
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" ]
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
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}