2 import os, subprocess, sys, argparse
3 sys.path.append(os.path.abspath(os.path.join(os.path.dirname(__file__), "..")))
6 from pathlib import Path
12 # The `dotnettool` works normally.
14 if not exist("/usr/bin/dotnettool"):
15 return "FAIL : The dotnettool works normally"
17 raw = cmd(f"shell dotnettool")
18 if "Dotnet Tool Version: 1.0" not in raw:
19 return "FAIL : The dotnettool works normally"
23 # The `native image` is generated normally.
25 cmd(f"shell dotnettool --ni-system")
27 if not exist(f"{RUNTIME_DIR}{SPC_DLL}.Backup"):
28 return "FAIL : Create the platform native image"
30 raw = cmd(f"shell find {RUNTIME_DIR} -name *.ni.dll")
31 lines1 = [l for l in raw.splitlines()]
32 len1 = len(lines1) + 1 # System.Private.CoreLib.dll
33 raw = cmd(f"shell find {RUNTIME_DIR} -maxdepth 1 -name *.dll -not -name *.ni.dll")
34 lines2 = [l for l in raw.splitlines()]
37 return f"FAIL : The number of .dll({len2}) and .ni.dll({len1}) must match in the {RUNTIME_DIR}"
39 raw = cmd(f"shell find {FRAMEWORK_DIR} -name *.ni.dll")
40 lines1 = [l for l in raw.splitlines()]
42 raw = cmd(f"shell find {FRAMEWORK_DIR} -name *.dll -not -name *.ni.dll")
43 lines2 = [l for l in raw.splitlines() if "/ref/" not in l]
46 return f"FAIL : The number of .dll({len2}) and .ni.dll({len1}) must match in the {FRAMEWORK_DIR}"
51 if Path(ni).name.replace(".ni.dll", "") == Path(dll).name.replace(".dll", ""):
55 return "FAIL : The file name of .dll and .ni.dll must match in the platform"
59 # Remove the `platform` native image.
61 cmd(f"shell dotnettool --ni-reset-system")
63 if exist(f"{RUNTIME_DIR}{SPC_DLL}.Backup"):
64 return "FAIL : Remove the platform native image"
68 # Create native image for `System.Private.CoreLib.dll`.
70 if exist(f"{RUNTIME_DIR}{SPC_DLL}.Backup"):
71 cmd(f"shell rm {RUNTIME_DIR}{SPC_DLL}")
72 cmd(f"shell mv {RUNTIME_DIR}{SPC_DLL}.Backup {RUNTIME_DIR}{SPC_DLL}")
74 raw = cmd(f"shell dotnettool --ni-dll {RUNTIME_DIR}{SPC_DLL}")
75 if (f"{SPC_DLL}" not in raw) or \
76 ("System.Private.CoreLib.dll generated successfully." not in raw):
77 return f"FAIL : Create native image for {SPC_DLL}"
79 if not exist(f"{RUNTIME_DIR}{SPC_DLL}.Backup"):
80 return f"FAIL : Create native image for {SPC_DLL}"
84 # The file name of `.dll` and `.ni.dll` must match in the framework.
86 cmd(f"shell dotnettool --ni-dir {FRAMEWORK_DIR}")
87 raw = cmd(f"shell find {FRAMEWORK_DIR} -name *.ni.dll")
88 lines1 = [l for l in raw.splitlines()]
89 raw = cmd(f"shell find {FRAMEWORK_DIR} -name *.dll -not -name *.ni.dll")
90 lines2 = [l for l in raw.splitlines() if "/ref/" not in l]
91 if len(lines1) != len(lines2):
92 return "FAIL : The number of .dll and .ni.dll must match"
97 if Path(ni).name.replace(".ni.dll", "") == Path(dll).name.replace(".dll", ""):
101 return "FAIL : The file name of .dll and .ni.dll must match in the {FRAMEWORK_DIR}"
105 # The `.ni.dll` files should not exist in the framework.
107 cmd(f"shell dotnettool --ni-reset-dir {FRAMEWORK_DIR}")
108 raw = cmd(f"shell find {FRAMEWORK_DIR} -name *.ni.dll")
109 lines = [l for l in raw.splitlines()]
111 return "FAIL : The .ni.dll files should not exist"
115 # Create native image for Tizen.dll in `R2R` mode.
117 raw = cmd(f"shell dotnettool --r2r --ni-dll {FRAMEWORK_DIR}Tizen.dll")
118 if ("Tizen.dll" not in raw) or \
119 ("Tizen.ni.dll generated successfully." not in raw):
120 return "FAIL : Create native image for Tizen.dll in R2R mode"
124 # Displays detailed information while creating native image for Tizen.Log.dll.
126 raw = cmd(f"shell dotnettool --verbose --ni-dll {FRAMEWORK_DIR}Tizen.Log.dll")
127 if ("Tizen.Log.ni.dll generated successfully." not in raw):
128 return "FAIL : Displays detailed information while creating native image for Tizen.Log.dll"
132 # Create a native image for netstandard.dll by specifying the directory containing the IBC files.
134 packaging_path = os.path.abspath(os.path.join(os.path.dirname(__file__), "../../../packaging"))
137 raw = cmd("capability")
138 line = [l for l in raw.splitlines() if "cpu_arch" in l]
139 target_arch = line[0].split(":")[1]
140 if ("armv7" == target_arch) or \
141 ("x86" == target_arch):
142 ibcdata_zip = "ibcdata_arm.zip"
144 ibcdata_zip = "ibcdata_aarch64.zip"
146 cmd(f"push {packaging_path}/{ibcdata_zip} /tmp")
147 cmd(f"shell unzip /tmp/{ibcdata_zip} -d {IBCDATA_DIR}")
148 cmd(f"shell chsmack -a _ {IBCDATA_DIR} -r")
150 if not exist(f"{IBCDATA_DIR}netstandard.ibc"):
151 return "FAIL : The netstandard.ibc file should exist"
153 raw = cmd(f"shell dotnettool --ibc-dir /usr/share/dotnet.tizen/ibcdata/ --ni-dll {RUNTIME_DIR}netstandard.dll")
154 if ("netstandard.dll" not in raw) or \
155 ("netstandard.ni.dll generated successfully." not in raw):
156 return "FAIL : Create native image for netstandard.dll"
160 # The `Launcher_TC_TOOL_01` application does not have native image.
162 sln_name = "Launcher_TC_TOOL_01.Tizen"
164 tpk_path = get_tpk_path(tpk_list, f"{sln_name}")
166 return f"FAIL : Get the tpk path for {sln_name}"
168 if "OK" not in app_install(f"{tpk_path}"):
169 return f"FAIL : Install the application for {tpk_path}"
171 pkg_id = f"org.tizen.example.Launcher_TC_TOOL_01.Tizen"
173 root_path = get_root_path(f"{pkg_id}")
174 if root_path == "None":
175 return f"FAIL : Get the root path for {pkg_id}"
177 if not exist(f"{root_path}/bin/.native_image"):
178 return "FAIL : The .native_image folder should exist"
180 cmd(f"shell dotnettool --ni-reset-pkg {pkg_id}")
182 if exist(f"{root_path}/bin/.native_image"):
183 return "FAIL : The .native_image folder should not exist"
185 raw = cmd(f"shell find {root_path}/bin/ -name *.ni.dll")
186 lines = [l for l in raw.splitlines()]
188 return "FAIL : The .ni.dll files should not exist"
192 # The `Launcher_TC_TOOL_02` application generates native image.
194 sln_name = "Launcher_TC_TOOL_02.Tizen"
196 tpk_path = get_tpk_path(tpk_list, f"{sln_name}")
198 return f"FAIL : Get the tpk path for {sln_name}"
200 if "OK" not in app_install(f"{tpk_path}"):
201 return f"FAIL : Install the application for {tpk_path}"
203 pkg_id = f"org.tizen.example.Launcher_TC_TOOL_02.Tizen"
205 root_path = get_root_path(f"{pkg_id}")
206 if root_path == "None":
207 return f"FAIL : Get the root path for {pkg_id}"
209 if exist(f"{root_path}/bin/.native_image"):
210 return "FAIL : The .native_image folder not should exist"
212 cmd(f"shell dotnettool --ni-pkg {pkg_id}")
214 if not exist(f"{root_path}/bin/.native_image"):
215 return "FAIL : The .native_image folder should exist"
217 raw = cmd(f"shell find {root_path}/bin/.native_image/ -name *.ni.dll")
218 lines1 = [l for l in raw.splitlines()]
219 raw = cmd(f"shell find {root_path}/bin/ -maxdepth 1 -name *.dll -not -name *.ni.dll")
220 lines2 = [l for l in raw.splitlines()]
221 if len(lines1) != len(lines2):
222 return "FAIL : The number of .dll and .ni.dll must match in the application"
227 if Path(ni).name.replace(".ni.dll", "") == Path(dll).name.replace(".dll", ""):
231 return "FAIL : The file name of .dll and .ni.dll must match in the application"
235 # The `prefer_dotnet_aot` metadata value of `true` will regenerates the native image in all .NET applications.
237 sln_name = "Launcher_TC_TOOL_03.Tizen"
239 tpk_path = get_tpk_path(tpk_list, f"{sln_name}")
241 return f"FAIL : Get the tpk path for {sln_name}"
243 if "OK" not in app_install(f"{tpk_path}"):
244 return f"FAIL : Install the application for {tpk_path}"
246 cmd(f"shell dotnettool --ni-regen-all-app")
248 raw = subprocess.run((f"sdb -s {serial} shell pkginfo --metadata-flt").split(), stdout=subprocess.PIPE, input=f"http://tizen.org/metadata/prefer_dotnet_aot\ntrue\n", encoding="utf-8").stdout
249 lines = [l for l in raw.splitlines() if "appid" in l]
251 pkg_id = app.split(": ")[1]
252 raw = subprocess.run((f"sdb -s {serial} shell pkginfo --pkg {pkg_id}").split(), stdout=subprocess.PIPE, encoding="utf-8").stdout
253 readonly = [l for l in raw.splitlines() if "Readonly" in l]
254 if "0" == readonly[0].split(": ")[1]:
255 path = [l for l in raw.splitlines() if "root_path" in l]
256 root_path = path[0].split(": ")[1]
257 raw = cmd(f"shell find {root_path}/bin/.native_image/ -name *.ni.dll")
258 lines1 = [l for l in raw.splitlines()]
259 raw = cmd(f"shell find {root_path}/bin/ -maxdepth 1 -name *.dll -not -name *.ni.dll")
260 lines2 = [l for l in raw.splitlines()]
261 if len(lines1) != len(lines2):
262 return "FAIL : The number of .dll and .ni.dll must match in the application"
267 if Path(ni).name.replace(".ni.dll", "") == Path(dll).name.replace(".dll", ""):
271 return "FAIL : The file name of .dll and .ni.dll must match in the application"
275 # The `prefer_nuget_cache` metadata value of `true` will regenerates the native image in the `TAC`.
277 sln_name = "Launcher_TC_TOOL_04.Tizen"
279 tpk_path = get_tpk_path(tpk_list, f"{sln_name}")
281 return f"FAIL : Get the tpk path for {sln_name}"
283 if "OK" not in app_install(f"{tpk_path}"):
284 return f"FAIL : Install the application for {tpk_path}"
286 raw = cmd(f"shell dotnettool --tac-regen-all")
287 if (".dll" not in raw) or \
288 (".ni.dll generated successfully." not in raw):
289 return "FAIL : Create native image for TAC"
293 # The `Launcher_TC_TOOL_05` application must not have `TAC` applied.
295 sln_name = "Launcher_TC_TOOL_05.Tizen"
297 tpk_path = get_tpk_path(tpk_list, f"{sln_name}")
299 return f"FAIL : Get the tpk path for {sln_name}"
301 if "OK" not in app_install(f"{tpk_path}"):
302 return f"FAIL : Install the application for {tpk_path}"
304 pkg_id = f"org.tizen.example.Launcher_TC_TOOL_05.Tizen"
306 root_path = get_root_path(f"{pkg_id}")
307 if root_path == "None":
308 return f"FAIL : Get the root path for {pkg_id}"
310 if not exist(f"{root_path}/bin/.tac_symlink"):
311 return "FAIL : The .tac_symlink folder should exist"
313 raw = cmd(f"shell find {root_path}/bin/.tac_symlink/ -name *.dll -not -name *.ni.dll")
314 lines1 = [l for l in raw.splitlines()]
315 raw = cmd(f"shell find {DOTNET_DIR}Xamarin.Forms/4.6.0.967/ -name *.dll -not -name *.ni.dll")
316 lines2 = [l for l in raw.splitlines()]
317 if len(lines1) != len(lines2):
318 return "FAIL : The number of .dll in the .tac_symlink and .dll in the TAC must match"
320 raw = cmd(f"shell ls -alZ {root_path}/bin/.tac_symlink/*.dll")
321 lines = [l for l in raw.splitlines() if ".ni.dll" not in l]
323 origin_path = dll.split("->")[1].strip()
324 if not exist(f"{origin_path}"):
325 return "FAIL : The original file of the symbolic link must exist"
327 cmd(f"shell dotnettool --tac-disable-pkg {pkg_id}")
329 if exist(f"{root_path}/bin/.tac_symlink"):
330 return "FAIL : The .tac_symlink folder should not exist"
332 raw = cmd(f"shell find {root_path}/bin/ -maxdepth 1 -name *.dll -not -name *.ni.dll")
333 lines = [l for l in raw.splitlines()]
335 return "FAIL : The number of .dll must exist correctly in the bin folder"
339 # The `Launcher_TC_TOOL_06` application must have `TAC` applied.
341 sln_name = "Launcher_TC_TOOL_06.Tizen"
343 tpk_path = get_tpk_path(tpk_list, f"{sln_name}")
345 return f"FAIL : Get the tpk path for {sln_name}"
347 if "OK" not in app_install(f"{tpk_path}"):
348 return f"FAIL : Install the application for {tpk_path}"
350 pkg_id = f"org.tizen.example.Launcher_TC_TOOL_06.Tizen"
352 root_path = get_root_path(f"{pkg_id}")
353 if root_path == "None":
354 return f"FAIL : Get the root path for {pkg_id}"
356 cmd(f"shell dotnettool --tac-disable-pkg {pkg_id}")
358 if exist(f"{root_path}/bin/.tac_symlink"):
359 return "FAIL : The .tac_symlink folder should not exist"
361 raw = cmd(f"shell find {root_path}/bin/ -maxdepth 1 -name *.dll -not -name *.ni.dll")
362 lines = [l for l in raw.splitlines()]
364 return "FAIL : The number of .dll must exist correctly in the bin folder"
366 cmd(f"shell dotnettool --tac-enable-pkg {pkg_id}")
368 if not exist(f"{root_path}/bin/.tac_symlink"):
369 return "FAIL : The .tac_symlink folder should exist"
371 raw = cmd(f"shell find {root_path}/bin/.tac_symlink/ -name *.dll -not -name *.ni.dll")
372 lines1 = [l for l in raw.splitlines()]
373 raw = cmd(f"shell find {DOTNET_DIR}Xamarin.Forms/4.6.0.967/ -name *.dll -not -name *.ni.dll")
374 lines2 = [l for l in raw.splitlines()]
375 if len(lines1) != len(lines2):
376 return "FAIL : The number of .dll in the .tac_symlink and .dll in the TAC must match"
378 raw = cmd(f"shell ls -alZ {root_path}/bin/.tac_symlink/*.dll")
379 lines = [l for l in raw.splitlines() if ".ni.dll" not in l]
381 origin_path = dll.split("->")[1].strip()
382 if not exist(f"{origin_path}"):
383 return "FAIL : The original file of the symbolic link must exist"
387 # The `DB` of the restored `TAC` and `TLC` must be a valid value.
389 sln_name = "Launcher_TC_TOOL_07.Tizen"
391 tpk_path = get_tpk_path(tpk_list, f"{sln_name}")
393 return f"FAIL : Get the tpk path for {sln_name}"
395 if "OK" not in app_install(f"{tpk_path}"):
396 return f"FAIL : Install the application for {tpk_path}"
398 cmd(f"shell rm {DOTNET_DIR}.TAC.App.list.db*")
399 cmd(f"shell rm {DOTNET_DIR}.TLC.App.list.db*")
401 cmd(f"shell dotnettool --tac-restore-db")
403 pkg_id = f"org.tizen.example.Launcher_TC_TOOL_07.Tizen"
405 raw = subprocess.run((f"sdb -s {serial} shell sqlite3 {DOTNET_DIR}.TAC.App.list.db").split(), stdout=subprocess.PIPE, input=f"select * from TAC;\n.q\n", encoding="utf-8").stdout
406 lines = [l for l in raw.splitlines() if f"{pkg_id}" in l]
409 if ("SkiaSharp/2.80.2" in rcd) or \
410 ("Xamarin.Forms/4.6.0.967" in rcd):
414 return "FAIL : TAC database must have a valid value"
416 raw = subprocess.run((f"sdb -s {serial} shell sqlite3 {DOTNET_DIR}.TLC.App.list.db").split(), stdout=subprocess.PIPE, input=f"select * from TLC;\n.q\n", encoding="utf-8").stdout
417 lines = [l for l in raw.splitlines() if f"{pkg_id}" in l]
419 if "libSkiaSharp.so..8e2fcc43f9c49b2de7b6212ff5ed914b319bc92f125715b9fe1f35786df82f98" not in rcd:
420 return "FAIL : TLC database must have a valid value"
424 # The prefer_dotnet_aot metadata value of true will regenerates the native image in all .NET applications of read-only type.
426 sln_name = "Launcher_TC_TOOL_08.Tizen"
428 tpk_path = get_tpk_path(tpk_list, f"{sln_name}")
430 return f"FAIL : Get the tpk path for {sln_name}"
432 cmd(f"shell mount -o remount,rw /")
434 raw = cmd(f"push {tpk_path} /usr/apps/.preload-tpk/")
435 if "1 file(s) pushed. 0 file(s) skipped." in raw:
436 cmd(f"shell install_preload_pkg")
438 cmd(f"shell mount -o remount,ro /")
440 cmd(f"shell dotnettool --ni-regen-all-app")
442 raw = subprocess.run((f"sdb -s {serial} shell pkginfo --metadata-flt").split(), stdout=subprocess.PIPE, input=f"http://tizen.org/metadata/prefer_dotnet_aot\ntrue\n", encoding="utf-8").stdout
443 lines = [l for l in raw.splitlines() if "appid" in l]
445 pkg_id = app.split(": ")[1]
446 raw = subprocess.run((f"sdb -s {serial} shell pkginfo --pkg {pkg_id}").split(), stdout=subprocess.PIPE, encoding="utf-8").stdout
447 readonly = [l for l in raw.splitlines() if "Readonly" in l]
448 if "1" == readonly[0].split(": ")[1]:
449 path = [l for l in raw.splitlines() if "root_path" in l]
450 root_path = path[0].split(": ")[1]
451 raw = cmd(f"shell find {DOTNET_DIR}apps/{pkg_id}/bin/.native_image/ -name *.ni.dll")
452 lines1 = [l for l in raw.splitlines()]
453 raw = cmd(f"shell find {root_path}/bin/ -maxdepth 1 -name *.dll -not -name *.ni.dll")
454 lines2 = [l for l in raw.splitlines()]
455 if len(lines1) != len(lines2):
456 return "FAIL : The number of .dll and .ni.dll must match in the application"
461 if Path(ni).name.replace(".ni.dll", "") == Path(dll).name.replace(".dll", ""):
465 return "FAIL : The file name of .dll and .ni.dll must match in the application"
469 # The `Launcher_TC_TOOL_08` application should load the newly generated native image.
471 pkg_id = f"org.tizen.example.Launcher_TC_TOOL_08.Tizen"
473 pid = launch_and_get_pid(f"-e", f"{pkg_id}")
475 return f"FAIL : Get the pid for {pkg_id}"
477 raw = cmd(f"shell cat /proc/{pid}/smaps | grep Xamarin.Forms.*.dll")
478 if (f"{DOTNET_DIR}apps/{pkg_id}/bin/.native_image/Xamarin.Forms.Platform.Tizen.ni.dll" not in raw) or \
479 (f"{DOTNET_DIR}apps/{pkg_id}/bin/.native_image/Xamarin.Forms.Core.ni.dll" not in raw) or \
480 (f"{DOTNET_DIR}apps/{pkg_id}/bin/.native_image/Xamarin.Forms.Platform.ni.dll" not in raw):
481 return "FAIL : The Xamarin.Forms in the application should be loaded when running the application"
483 cmd(f"shell app_launcher -t {pkg_id}")
487 # It should be done together for update test.
499 # The `Launcher_TC_TOOL_09` application of read-only type generates native image.
501 sln_name = "Launcher_TC_TOOL_09.Tizen"
503 tpk_path = get_tpk_path(tpk_list, f"{sln_name}")
505 return f"FAIL : Get the tpk path for {sln_name}"
507 cmd(f"shell mount -o remount,rw /")
508 raw = cmd(f"push {tpk_path} /usr/apps/.preload-tpk/")
509 if "1 file(s) pushed. 0 file(s) skipped." in raw:
510 cmd(f"shell install_preload_pkg")
511 cmd(f"shell mount -o remount,ro /")
513 pkg_id = f"org.tizen.example.Launcher_TC_TOOL_09.Tizen"
515 root_path = get_root_path(f"{pkg_id}")
516 if root_path == "None":
517 return f"FAIL : Get the root path for {pkg_id}"
519 if exist(f"{root_path}/bin/.native_image"):
520 return "FAIL : The .native_image folder not should exist"
522 cmd(f"shell dotnettool --ni-pkg {pkg_id}")
524 if not exist(f"{DOTNET_DIR}apps/{pkg_id}/bin/.native_image"):
525 return "FAIL : The .native_image folder should exist"
527 raw = cmd(f"shell find {DOTNET_DIR}apps/{pkg_id}/bin/.native_image/ -name *.ni.dll")
528 lines1 = [l for l in raw.splitlines()]
529 raw = cmd(f"shell find {root_path}/bin/ -maxdepth 1 -name *.dll -not -name *.ni.dll")
530 lines2 = [l for l in raw.splitlines()]
531 if len(lines1) != len(lines2):
532 return "FAIL : The number of .dll and .ni.dll must match in the application"
537 if Path(ni).name.replace(".ni.dll", "") == Path(dll).name.replace(".dll", ""):
541 return "FAIL : The file name of .dll and .ni.dll must match in the application"
546 #dotnettool --resolve-all-app
552 cmd(f"shell mount -o remount,rw /")
555 tpk_list = search_tpk(f"{module_name}")
557 pn = run_tc_array(module_name, tc_array)
558 n = int(pn.split(":")[0])
559 f = int(pn.split(":")[1])
560 p = int(pn.split(":")[2])
562 if (len(tc_array) - n) != 0:
563 r = round(((p / (len(tc_array) - n)) * 100), 2)
564 print(f"--- {module_name} TCT Result ---\nNONE : [{n}] / FAIL : [{f}] / PASS : [{p}] - [{r}%]\n")
566 # Uninstall the application and restore to original state
568 cmd(f"uninstall org.tizen.example.Launcher_TC_TOOL_01.Tizen")
569 cmd(f"uninstall org.tizen.example.Launcher_TC_TOOL_02.Tizen")
570 cmd(f"uninstall org.tizen.example.Launcher_TC_TOOL_03.Tizen")
571 cmd(f"uninstall org.tizen.example.Launcher_TC_TOOL_04.Tizen")
572 cmd(f"uninstall org.tizen.example.Launcher_TC_TOOL_05.Tizen")
573 cmd(f"uninstall org.tizen.example.Launcher_TC_TOOL_06.Tizen")
574 cmd(f"uninstall org.tizen.example.Launcher_TC_TOOL_07.Tizen")
576 cmd(f"shell rm {FRAMEWORK_DIR}Tizen.ni.dll")
577 cmd(f"shell rm {FRAMEWORK_DIR}Tizen.Log.ni.dll")
578 cmd(f"shell rm {RUNTIME_DIR}netstandard.ni.dll")
580 cmd(f"shell rm -rf {IBCDATA_DIR}")
582 cmd(f"shell rm -rf {DOTNET_DIR}apps/org.tizen.example.Launcher_TC_TOOL_08.Tizen")
583 cmd(f"shell rm -rf {DOTNET_DIR}apps/org.tizen.example.Launcher_TC_TOOL_09.Tizen")
587 parser = argparse.ArgumentParser(formatter_class=argparse.RawDescriptionHelpFormatter)
588 parser.add_argument("TC_NUMBER", type=str, nargs="*", help="Individual excution")
589 args = parser.parse_args()
592 if args.TC_NUMBER and "TC_" in args.TC_NUMBER[0]:
594 for tc_num in args.TC_NUMBER:
595 if tc_num not in funcMap:
596 print(f"There is no {tc_num} test.")
599 tc_array.append(funcMap[tc_num])
601 # skip TC_07 (--r2r), TC_09 (--ibc-dir)
602 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]
605 if len(sys.argv) >= 2 and "TC_" not in sys.argv[1]:
606 serial = read_serial(sys.argv[1])
608 serial = read_serial(None)
611 print("No connected device(s).")
614 device = get_device_type()
615 print(f"=== Dotnet-Launcher [{device}] Test Case - ({module_name}) ===")
622 'TC_01': TC_01, 'TC_02': TC_02, 'TC_03': TC_03, 'TC_04': TC_04, 'TC_05': TC_05, 'TC_06': TC_06,
623 'TC_07': TC_07, 'TC_08': TC_08, 'TC_09': TC_09, 'TC_10': TC_10, 'TC_11': TC_11, 'TC_12': TC_12,
624 '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,
625 '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,
626 '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,
627 '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
631 if __name__ == "__main__":
634 except KeyboardInterrupt:
635 print("\nExit (Pressed Ctrl+C)")