\r
DEVID = ""\r
\r
-TIZENV = "tizen_5.0"\r
+TIZENV = "tizen_5.5"\r
\r
DLOG_CLEAR = "dlogutil -c"\r
DLOG_UTIL = "sdb -s %s shell dlogutil -v time"\r
DEVICE_SUITE_TARGET_30 = tct_parser.get('DEVICE', 'DEVICE_SUITE_TARGET_30')\r
DEVICE_EXECUTION_MODE_30 = tct_parser.get('DEVICE', 'DEVICE_EXECUTION_MODE_30')\r
\r
-if TIZENV.find('tizen_5.0') > -1:\r
+if TIZENV.find('tizen_5.5') > -1:\r
DEVICE_SUITE_TARGET = DEVICE_SUITE_TARGET_30\r
else:\r
DEVICE_SUITE_TARGET = DEVICE_SUITE_TARGET_24\r
\r
\r
def uninstall_testconfig():\r
- if TIZENV.find('tizen_5.0') > -1:\r
+ if TIZENV.find('tizen_5.5') > -1:\r
inst_path = RESRC_DIR + os.sep + 'tct-testconfig' + os.sep + 'inst.py'\r
SdbManager.hostCommand("python %s -s %s -u" % (inst_path, DEVID))\r
else:\r
\r
def uninstall_behavior():\r
print "info: Uninstall behavior tool."\r
- if TIZENV.find('tizen_5.0') > -1:\r
+ if TIZENV.find('tizen_5.5') > -1:\r
pass\r
else:\r
uninst_cmd = JOIN(DEVICE_SUITE_TARGET, 'tct/opt/tct-behavior-tests/inst.sh') + ' -u'\r
\r
def install_testconfig():\r
print "info: Install testconfig."\r
- if TIZENV.find('tizen_5.0') > -1:\r
+ if TIZENV.find('tizen_5.5') > -1:\r
instPath = RESRC_DIR + os.sep + 'tct-testconfig' + os.sep + 'inst.py'\r
SdbManager.hostCommand("python %s -s %s" % (instPath, DEVID))\r
else:\r
print "#WARNING#: Invalid device profile value %s" % profile_name\r
return False\r
\r
- if TIZENV.find('tizen_5.0') > -1:\r
- RPMPKG = "tct-behavior-tests-5.0.zip"\r
+ if TIZENV.find('tizen_5.5') > -1:\r
+ RPMPKG = "tct-behavior-tests-5.5.zip"\r
opt_rpm_path = PKGS_DIR + "s" + os.sep + profile_name + os.sep + RPMPKG\r
local_rpm_path = PKGS_DIR + os.sep + profile_name + os.sep + RPMPKG\r
\r
widgetCap = LS(RESRC_DIR, 'getCap', 'wgt')\r
SdbManager.sdbPush(DEVID, JOIN(RESRC_DIR, widgetCap), JOIN(DEVICE_SUITE_TARGET, 'tct/') + widgetCap)\r
\r
- if TIZENV.find('5.0') > -1:\r
+ if TIZENV.find('5.5') > -1:\r
SdbManager.sdbShell(DEVID, "su - " + DEVICE_EXECUTION_MODE_30 + \\r
" -c 'pkgcmd -i -t wgt -q -p " + JOIN(DEVICE_SUITE_TARGET, 'tct/') + widgetCap + '\'')\r
SdbManager.sdbShell(DEVID, 'pkgcmd -i -t wgt -q -p ' + JOIN(DEVICE_SUITE_TARGET, 'tct/') + widgetCap)\r
getcap_pkg = LS(RESRC_DIR, 'getCap', 'tpk')\r
SdbManager.sdbPush(DEVID, JOIN(RESRC_DIR, getcap_pkg), JOIN(DEVICE_SUITE_TARGET, 'tct/') + getcap_pkg)\r
\r
- if TIZENV.find('tizen_5.0') > -1:\r
+ if TIZENV.find('tizen_5.5') > -1:\r
SdbManager.sdbShell(DEVID, "su - " + DEVICE_EXECUTION_MODE_30 + \\r
" -c 'pkgcmd -ipt tpk -p " + JOIN(DEVICE_SUITE_TARGET, 'tct/') + getcap_pkg + '\'')\r
else:\r
wgt_id = getCap_appid()\r
if wgt_id:\r
uninst_cmd = ""\r
- if TIZENV.find('tizen_5.0') > -1:\r
+ if TIZENV.find('tizen_5.5') > -1:\r
uninst_cmd = "su - " + DEVICE_EXECUTION_MODE_30 + \\r
" -c 'pkgcmd -qun " + wgt_id.split('.')[0] + '\''\r
elif TIZENV.find('tizen_2.4') > -1:\r
\r
def getCap_appid():\r
widgetid_cmd = ""\r
- if TIZENV.find('tizen_5.0') > -1:\r
+ if TIZENV.find('tizen_5.5') > -1:\r
widgetid_cmd = "su - " + DEVICE_EXECUTION_MODE_30 + \\r
" -c \"app_launcher -l | grep getCapabilities\""\r
else:\r
wgt_id = getCap_appid()\r
if wgt_id:\r
launchResult = None\r
- if TIZENV.find('tizen_5.0') > -1:\r
+ if TIZENV.find('tizen_5.5') > -1:\r
launchResult = SdbManager.sdbShell(DEVID, 'su - ' + \\r
DEVICE_EXECUTION_MODE_30 + ' -c \"app_launcher -s ' + wgt_id + '\"')\r
else:\r
\r
def launch_ngetCap():\r
launch_result = None\r
- if TIZENV.find('tizen_5.0') > -1:\r
+ if TIZENV.find('tizen_5.5') > -1:\r
launch_result = SdbManager.sdbShell(DEVID, 'su - ' + \\r
DEVICE_EXECUTION_MODE_30 + ' -c \"launch_app org.example.getcap\"')\r
else:\r
kill_process("tinyweb")\r
kill_process("testkit-stub")\r
remove_stub()\r
- if TIZENV.find('5.0') > -1:\r
+ if TIZENV.find('5.5') > -1:\r
uninstall_storage()\r
print "Clean the tct packages in device successfully."\r
\r
check_ngetCap()\r
else:\r
check_getCap()\r
- if TIZENV.find('5.0') > -1:\r
+ if TIZENV.find('5.5') > -1:\r
check_storage()\r
\r
print "Check finished."\r
\r
elif options.bhtest:\r
check_resource_dir()\r
- if TIZENV.find('5.0') > -1:\r
+ if TIZENV.find('5.5') > -1:\r
uninstall_storage()\r
install_storage()\r
launch_storage()\r
uninstall_testconfig()\r
uninstall_getCap()\r
uninstall_ngetCap()\r
- if TIZENV.find('5.0') > -1:\r
+ if TIZENV.find('5.5') > -1:\r
uninstall_storage()\r
\r
print "Clean the tct packages in device successfully."\r
install_getCap()\r
launch_getCap()\r
\r
- if TIZENV.find('5.0') > -1:\r
+ if TIZENV.find('5.5') > -1:\r
install_storage()\r
launch_storage()\r
\r