Change-Id: Id8cf0dac0e413c571dacf7daadede10dae78d886
Co-authored-by: 조웅석/Common Platform Lab(SR)/Principal Engineer/삼성전자 <ws77.cho@samsung.com>
tpk_list = search_tpk(f"{module_name}")
pn = run_tc_array(module_name, tc_array)
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])
- 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")
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")
tpk_list = search_tpk(f"{module_name}")
pn = run_tc_array(module_name, tc_array)
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])
- 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")
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")
tpk_list = search_tpk(f"{module_name}")
pn = run_tc_array(module_name, tc_array)
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])
- 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")
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")
tpk_list = search_tpk(f"{module_name}")
pn = run_tc_array(module_name, tc_array)
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])
- 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")
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")
return f"FAIL : Get the pid for {pkg_id}"
raw = cmd(f"shell cat /proc/{pid}/smaps | grep libSkiaSharp.so")
return f"FAIL : Get the pid for {pkg_id}"
raw = cmd(f"shell cat /proc/{pid}/smaps | grep libSkiaSharp.so")
- if (f"{DOTNET_DIR}Libraries/libSkiaSharp.so.." in raw) or \
- (f"{root_path}/bin/libSkiaSharp.so" not in raw):
+ if (f"{root_path}/bin/libSkiaSharp.so" not in raw) or \
+ (f"{DOTNET_DIR}Libraries/libSkiaSharp.so.." in raw):
return "FAIL : The libSkiaSharp.so library in the application should be loaded when running the application"
cmd(f"shell app_launcher -t {pkg_id}")
return "FAIL : The libSkiaSharp.so library in the application should be loaded when running the application"
cmd(f"shell app_launcher -t {pkg_id}")
tpk_list = search_tpk(f"{module_name}")
pn = run_tc_array(module_name, tc_array)
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])
- 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")
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")
tpk_list = search_tpk(f"{module_name}")
pn = run_tc_array(module_name, tc_array)
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])
- 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")
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")
tpk_list = search_tpk(f"{module_name}")
pn = run_tc_array(module_name, tc_array)
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])
- 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")
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")
# Run the test array
def run_tc_array(module_name, tc_array):
# Run the test array
def run_tc_array(module_name, tc_array):
for tc in tc_array:
print(f">{module_name}_{tc.__name__}...", end="\r")
ret = tc()
print(f">{module_name}_{tc.__name__} : {ret}")
for tc in tc_array:
print(f">{module_name}_{tc.__name__}...", end="\r")
ret = tc()
print(f">{module_name}_{tc.__name__} : {ret}")
- if "PASS" == ret: p += 1
+ if "FAIL" in ret: f += 1
+ if "PASS" == ret: p += 1
- return str(p) + ":" + str(n)
+ return str(n) + ":" + str(f) + ":" + str(p)
def check_tc_support():
if "armv8" == get_device_arch():
def check_tc_support():
if "armv8" == get_device_arch():