import sys
import subprocess
import string
-from optparse import OptionParser, make_option\r
+from optparse import OptionParser, make_option
import ConfigParser
tct_parser.read(TCT_CONFIG_FILE)
SRC_DIR = tct_parser.get('DEVICE', 'DEVICE_SUITE_TARGET_30')
PKG_SRC_DIR = "%s/tct/opt/%s" % (SRC_DIR, PKG_NAME)
+EXECUTION_MODE_30 = tct_parser.get('DEVICE', 'DEVICE_EXECUTION_MODE_30')
+ADMIN_USER_30 = tct_parser.get('DEVICE', 'DEVICE_ADMIN_USER_30')
+
+def userCheck():
+ global GLOVAL_OPT
+ if ADMIN_USER_30 == EXECUTION_MODE_30:
+ GLOVAL_OPT="--global"
+ else:
+ GLOVAL_OPT=""
def doCMD(cmd):
return doCMD(cmd)
-
-
def getPKGID(pkg_name=None):
if PARAMETERS.mode == "SDB":
cmd = "sdb -s %s shell %s" % (
action_status = False
continue
(return_code, output) = doRemoteCMD(
- "pkgcmd -u -t wgt -q -n %s" % pkg_id)
+ "pkgcmd %s -q -u -n %s" % (GLOVAL_OPT, pkg_id))
for line in output:
if "Failure" in line:
action_status = False
if not doRemoteCopy(os.path.join(root, file), "%s/%s" % (SRC_DIR, file)):
action_status = False
(return_code, output) = doRemoteCMD(
- "pkgcmd -i -t wgt -q -p %s/%s" % (SRC_DIR, file))
+ "pkgcmd %s -i -t wgt -q -p %s/%s" % (GLOVAL_OPT, SRC_DIR, file))
doRemoteCMD("rm -rf %s/%s" % (SRC_DIR, file))
for line in output:
if "Failure" in line:
sys.exit(1)
if not PARAMETERS.user:
- PARAMETERS.user = "owner"
+ PARAMETERS.user = EXECUTION_MODE_30
if not PARAMETERS.mode:
PARAMETERS.mode = "SDB"
if not PARAMETERS.device:
print "No device provided"
sys.exit(1)
-
+
+ userCheck()
+
user_info = getUSERID()
re_code = user_info[0]
if re_code == 0 :
<?xml-stylesheet type="text/xsl" href="./testcase.xsl"?>
<test_definition>
<suite name="tct-vibration-w3c-tests" category="W3C/HTML5 APIs">
- <set name="Vibration" type="js">
- <testcase component="W3C_HTML5 APIs/Device/Vibration API" execution_type="auto" id="api-is-present" priority="P1" purpose="Check that the vibrate() method is present" status="approved" type="compliance">
+ <set name="Vibration_32bit_target" type="js">
+ <capabilities>
+ <capability name="http://tizen.org/feature/platform.core.cpu.arch.armv7"/>
+ </capabilities>
+ <testcase purpose="Check that the vibrate() method works correctly" type="compliance" status="approved" component="W3C_HTML5 APIs/Device/Vibration API" execution_type="maunal" priority="P1" id="vibrate_basic">
<description>
- <test_script_entry>/opt/tct-vibration-w3c-tests/vibration/w3c/api-is-present.html</test_script_entry>
+ <test_script_entry>/opt/tct-vibration-w3c-tests/vibration/w3c/vibrate_basic.html</test_script_entry>
</description>
<specs>
<spec>
- <spec_assertion category="Tizen W3C API Specifications" element_name="vibrate" element_type="method" interface="Vibration" section="Device" specification="Vibration API"/>
+ <spec_assertion element_type="method" element_name="vibrate" interface="Vibration" specification="Vibration API" section="Device" category="Tizen W3C API Specifications"/>
<spec_url>http://www.w3.org/TR/vibration/#methods</spec_url>
<spec_statement/>
</spec>
</specs>
</testcase>
+ </set>
+ <set name="Vibration_64bit_target" type="js">
+ <capabilities>
+ <capability name="http://tizen.org/feature/platform.core.cpu.arch.aarch64"/>
+ </capabilities>
<testcase purpose="Check that the vibrate() method works correctly" type="compliance" status="approved" component="W3C_HTML5 APIs/Device/Vibration API" execution_type="maunal" priority="P1" id="vibrate_basic">
<description>
<test_script_entry>/opt/tct-vibration-w3c-tests/vibration/w3c/vibrate_basic.html</test_script_entry>
</spec>
</specs>
</testcase>
+ </set>
+ <set name="Vibration" type="js">
+ <testcase component="W3C_HTML5 APIs/Device/Vibration API" execution_type="auto" id="api-is-present" priority="P1" purpose="Check that the vibrate() method is present" status="approved" type="compliance">
+ <description>
+ <test_script_entry>/opt/tct-vibration-w3c-tests/vibration/w3c/api-is-present.html</test_script_entry>
+ </description>
+ <specs>
+ <spec>
+ <spec_assertion category="Tizen W3C API Specifications" element_name="vibrate" element_type="method" interface="Vibration" section="Device" specification="Vibration API"/>
+ <spec_url>http://www.w3.org/TR/vibration/#methods</spec_url>
+ <spec_statement/>
+ </spec>
+ </specs>
+ </testcase>
<testcase component="W3C_HTML5 APIs/Device/Vibration API" execution_type="manual" id="cancel-with-0" priority="P1" purpose="If pattern is 0, cancel the pre-existing instance of the processing vibration patterns algorithm" status="ready" type="compliance">
<description>
<test_script_entry>/opt/tct-vibration-w3c-tests/vibration/w3c/cancel-with-0-manual.html</test_script_entry>
<?xml-stylesheet type="text/xsl" href="./testcase.xsl"?>
<test_definition>
<suite name="tct-vibration-w3c-tests" category="W3C/HTML5 APIs">
- <set name="Vibration" type="js">
- <testcase component="W3C_HTML5 APIs/Device/Vibration API" execution_type="auto" id="api-is-present" purpose="Check that the vibrate() method is present">
+ <set name="Vibration_32bit_target" type="js">
+ <capabilities>
+ <capability name="http://tizen.org/feature/platform.core.cpu.arch.armv7"/>
+ </capabilities>
+ <testcase component="W3C_HTML5 APIs/Device/Vibration API" execution_type="manual" id="vibrate-once" purpose="Check that the vibrate() method works correctly">
<description>
- <test_script_entry>/opt/tct-vibration-w3c-tests/vibration/w3c/api-is-present.html</test_script_entry>
+ <test_script_entry>/opt/tct-vibration-w3c-tests/vibration/w3c/vibrate_basic.html</test_script_entry>
</description>
</testcase>
+ </set>
+ <set name="Vibration_64bit_target" type="js">
+ <capabilities>
+ <capability name="http://tizen.org/feature/platform.core.cpu.arch.aarch64"/>
+ </capabilities>
<testcase component="W3C_HTML5 APIs/Device/Vibration API" execution_type="manual" id="vibrate-once" purpose="Check that the vibrate() method works correctly">
<description>
<test_script_entry>/opt/tct-vibration-w3c-tests/vibration/w3c/vibrate_basic.html</test_script_entry>
</description>
</testcase>
+ </set>
+ <set name="Vibration" type="js">
+ <testcase component="W3C_HTML5 APIs/Device/Vibration API" execution_type="auto" id="api-is-present" purpose="Check that the vibrate() method is present">
+ <description>
+ <test_script_entry>/opt/tct-vibration-w3c-tests/vibration/w3c/api-is-present.html</test_script_entry>
+ </description>
+ </testcase>
<testcase component="W3C_HTML5 APIs/Device/Vibration API" execution_type="manual" id="cancel-with-0" purpose="If pattern is 0, cancel the pre-existing instance of the processing vibration patterns algorithm">
<description>
<test_script_entry>/opt/tct-vibration-w3c-tests/vibration/w3c/cancel-with-0-manual.html</test_script_entry>