X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=tests%2FTCs%2F6_TOOL%2FTOOL.py;h=ae53ce52581be34c70c6eb074f42a2fb9e034ffc;hb=1cdab49c2d2a267f43d0ca5a4db2e0efe424cb3a;hp=d6bcd45c585bb6ecf1e3e8f88e45f0ca956244be;hpb=667e87b9e2fd3879ba6100b7fde9295408f9c337;p=platform%2Fcore%2Fdotnet%2Flauncher.git diff --git a/tests/TCs/6_TOOL/TOOL.py b/tests/TCs/6_TOOL/TOOL.py index d6bcd45..ae53ce5 100755 --- a/tests/TCs/6_TOOL/TOOL.py +++ b/tests/TCs/6_TOOL/TOOL.py @@ -611,7 +611,36 @@ def TC_24(): return "PASS" -#def TC_25(): +# Applications that do not have Internet privilege must have ._TIZEN_DOTNET_SYSTEM_NET_DISABLEIPV6 file created. +def TC_25(): + sln_name = "Launcher_TC_TOOL_10.Tizen" + + tpk_path = get_tpk_path(tpk_list, f"{sln_name}") + if tpk_path == None: + return f"FAIL : Get the tpk path for {sln_name}" + + if "OK" not in app_install(f"{tpk_path}"): + return f"FAIL : Install the application for {tpk_path}" + + pkg_id = f"org.tizen.example.Launcher_TC_TOOL_10.Tizen" + + root_path = get_root_path(f"{pkg_id}") + if root_path == "None": + return f"FAIL : Get the root path for {pkg_id}" + + if not exist(f"{root_path}/bin/._TIZEN_DOTNET_SYSTEM_NET_DISABLEIPV6"): + return "FAIL : The ._TIZEN_DOTNET_SYSTEM_NET_DISABLEIPV6 file should exist" + + cmd(f"shell mount -o remount,rw /") + cmd(f"shell rm {root_path}/bin/._TIZEN_DOTNET_SYSTEM_NET_DISABLEIPV6") + + cmd(f"shell dotnettool --check-all-app-privilege") + if not exist(f"{root_path}/bin/._TIZEN_DOTNET_SYSTEM_NET_DISABLEIPV6"): + return "FAIL : The ._TIZEN_DOTNET_SYSTEM_NET_DISABLEIPV6 file should exist" + + return "PASS" + +#def TC_26(): #dotnettool --rm-app-profile #dotnettool --rm-all-app-profile @@ -641,6 +670,7 @@ def clean(): cmd(f"uninstall org.tizen.example.Launcher_TC_TOOL_05.Tizen") cmd(f"uninstall org.tizen.example.Launcher_TC_TOOL_06.Tizen") cmd(f"uninstall org.tizen.example.Launcher_TC_TOOL_07.Tizen") + cmd(f"uninstall org.tizen.example.Launcher_TC_TOOL_10.Tizen") cmd(f"shell rm {FRAMEWORK_DIR}Tizen.ni.dll") cmd(f"shell rm {FRAMEWORK_DIR}Tizen.Log.ni.dll") @@ -671,7 +701,7 @@ def main(): tc_array.append(funcMap[tc_num]) else: # skip TC_07 (--r2r), TC_09 (--ibc-dir) - tc_array = [TC_01, TC_02, TC_03, TC_04, TC_05, TC_06, TC_08, TC_10, TC_11, TC_12, TC_13, TC_14, TC_15, TC_16, TC_17, TC_18, TC_19, TC_20, TC_21, TC_22, TC_23, TC_24] + tc_array = [TC_01, TC_02, TC_03, TC_04, TC_05, TC_06, TC_08, TC_10, TC_11, TC_12, TC_13, TC_14, TC_15, TC_16, TC_17, TC_18, TC_19, TC_20, TC_21, TC_22, TC_23, TC_24, TC_25] global serial if len(sys.argv) >= 2 and "TC_" not in sys.argv[1]: @@ -694,10 +724,11 @@ funcMap = { 'TC_01': TC_01, 'TC_02': TC_02, 'TC_03': TC_03, 'TC_04': TC_04, 'TC_05': TC_05, 'TC_06': TC_06, 'TC_07': TC_07, 'TC_08': TC_08, 'TC_09': TC_09, 'TC_10': TC_10, 'TC_11': TC_11, 'TC_12': TC_12, 'TC_13': TC_13, 'TC_14': TC_14, 'TC_15': TC_15, 'TC_16': TC_16, 'TC_17': TC_17, 'TC_18': TC_17_18, -'TC_19': TC_19, 'TC_20': TC_20, 'TC_21': TC_21, 'TC_22' : TC_22, 'TC_23' : TC_23, 'TC_24' : TC_24, +'TC_19': TC_19, 'TC_20': TC_20, 'TC_21': TC_21, 'TC_22' : TC_22, 'TC_23' : TC_23, 'TC_24' : TC_24, 'TC_25' : TC_25, 'TOOL_TC_01': TC_01, 'TOOL_TC_02': TC_02, 'TOOL_TC_03': TC_03, 'TOOL_TC_04': TC_04, 'TOOL_TC_05': TC_05, 'TOOL_TC_06': TC_06, 'TOOL_TC_07': TC_07, 'TOOL_TC_08': TC_08, 'TOOL_TC_09': TC_09, 'TOOL_TC_10': TC_10, 'TOOL_TC_11': TC_11, 'TOOL_TC_12': TC_12, -'TOOL_TC_13': TC_13, 'TOOL_TC_14': TC_14, 'TOOL_TC_15': TC_15, 'TOOL_TC_16': TC_16, 'TOOL_TC_17': TC_17, 'TOOL_TC_18': TC_17_18, 'TOOL_TC_19': TC_19, 'TOOL_TC_20': TC_20, 'TOOL_TC_21': TC_21, 'TOOL_TC_22' : TC_22, 'TOOL_TC_23' : TC_23, 'TOOL_TC_24' : TC_24 +'TOOL_TC_13': TC_13, 'TOOL_TC_14': TC_14, 'TOOL_TC_15': TC_15, 'TOOL_TC_16': TC_16, 'TOOL_TC_17': TC_17, 'TOOL_TC_18': TC_17_18, +'TOOL_TC_19': TC_19, 'TOOL_TC_20': TC_20, 'TOOL_TC_21': TC_21, 'TOOL_TC_22' : TC_22, 'TOOL_TC_23' : TC_23, 'TOOL_TC_24' : TC_24, 'TOOL_TC_25' : TC_25 }