lines1 = [l for l in raw.splitlines()]
raw = cmd(f"shell find {DOTNET_DIR}Xamarin.Forms/4.8.0.1364/ -name *.dll -not -name *.ni.dll")
lines2 = [l for l in raw.splitlines()]
- raw = cmd(f"shell find {DOTNET_DIR}Newtonsoft.Json/12.0.1/ -name *.dll -not -name *.ni.dll")
+ raw = cmd(f"shell find {DOTNET_DIR}Newtonsoft.Json/13.0.1/ -name *.dll -not -name *.ni.dll")
lines3 = [l for l in raw.splitlines()]
if len(lines1) != len(lines2)+len(lines3):
return "FAIL : The number of .dll in the .tac_symlink and .dll in the TAC must match"
return "FAIL : The Xamarin.Forms in the TAC should be loaded when running the application"
raw = cmd(f"shell cat /proc/{pid}/smaps | grep Newtonsoft.Json.dll")
- if f"{DOTNET_DIR}Newtonsoft.Json/12.0.1/Newtonsoft.Json.dll" not in raw:
+ if f"{DOTNET_DIR}Newtonsoft.Json/13.0.1/Newtonsoft.Json.dll" not in raw:
return "FAIL : The Newtonsoft.Json in the TAC should be loaded when running the application"
cmd(f"shell app_launcher -t {pkg_id}")
if exist(f"{DOTNET_DIR}Xamarin.Forms/4.8.0.1364/ -name *.dll"):
return f"FAIL : The Xamarin.Forms/4.8.0.1364 nuget should not exist in {DOTNET_DIR}"
- if exist(f"{DOTNET_DIR}Newtonsoft.Json/12.0.1/ -name *.dll"):
- return f"FAIL : The Newtonsoft.Json/12.0.1 nuget should not exist in {DOTNET_DIR}"
+ if exist(f"{DOTNET_DIR}Newtonsoft.Json/13.0.1/ -name *.dll"):
+ return f"FAIL : The Newtonsoft.Json/13.0.1 nuget should not exist in {DOTNET_DIR}"
pid = launch_and_get_pid(f"-e", f"{pkg_id}")
if 0 == pid:
if exist(f"{DOTNET_DIR}Xamarin.Forms/4.8.0.1364/ -name *.dll"):
return f"FAIL : The Xamarin.Forms/4.8.0.1364 nuget should not exist in {DOTNET_DIR}"
- if exist(f"{DOTNET_DIR}Newtonsoft.Json/12.0.1/ -name *.dll"):
- return f"FAIL : The Newtonsoft.Json/12.0.1 nuget should not exist in {DOTNET_DIR}"
+ if exist(f"{DOTNET_DIR}Newtonsoft.Json/13.0.1/ -name *.dll"):
+ return f"FAIL : The Newtonsoft.Json/13.0.1 nuget should not exist in {DOTNET_DIR}"
if exist(f"{DOTNET_DIR}sqlite-net-base/1.7.335/ -name *.dll"):
return f"FAIL : The sqlite-net-base/1.7.335 nuget should not exist in {DOTNET_DIR}"
for rcd in lines:
is_exist = False
if ("Xamarin.Forms/4.8.0.1560" in rcd) or \
+ ("Newtonsoft.Json/12.0.3" in rcd) or \
("Google.Apis.Core/1.49.0" in rcd) or \
- ("Google.Apis/1.49.0" in rcd) or \
- ("Newtonsoft.Json/12.0.3" in rcd):
+ ("Google.Apis/1.49.0" in rcd):
is_exist = True
continue
if not is_exist:
tpk_list = search_tpk(f"{module_name}")
pn = run_tc_array(module_name, tc_array)
- p = int(pn.split(":")[0])
- n = int(pn.split(":")[1])
+ n = int(pn.split(":")[0])
+ f = int(pn.split(":")[1])
+ p = int(pn.split(":")[2])
r = 0.0
- f = len(tc_array) - p - n
if (len(tc_array) - n) != 0:
r = round(((p / (len(tc_array) - n)) * 100), 2)
print(f"--- {module_name} TCT Result ---\nNONE : [{n}] / FAIL : [{f}] / PASS : [{p}] - [{r}%]\n")