if root_path == "None":
return f"FAIL : Get the root path for {pkg_id}"
+ if not exist(f"{root_path}/bin/libSkiaSharp.so"):
+ return "FAIL : The libSkiaSharp.so library should exist in the application"
+
raw = cmd(f"shell ls -alZ {root_path}/bin/libSkiaSharp.so")
if (f"{root_path}/bin/libSkiaSharp.so" not in raw) or \
(f"{DOTNET_DIR}Libraries/libSkiaSharp.so.." not in raw):
if root_path == "None":
return f"FAIL : Get the root path for {pkg_id}"
+ if not exist(f"{root_path}/bin/libSkiaSharp.so"):
+ return "FAIL : The libSkiaSharp.so library should exist in the application"
+
raw = cmd(f"shell ls -alZ {root_path}/bin/libSkiaSharp.so")
if (f"{root_path}/bin/libSkiaSharp.so" not in raw) or \
(f"{DOTNET_DIR}Libraries/libSkiaSharp.so.." not in raw):
if root_path == "None":
return f"FAIL : Get the root path for {pkg_id}"
+ if not exist(f"{root_path}/bin/libSkiaSharp.so"):
+ return "FAIL : The libSkiaSharp.so library should exist in the application"
+
raw = cmd(f"shell ls -alZ {root_path}/bin/libSkiaSharp.so")
if (f"{root_path}/bin/libSkiaSharp.so" not in raw) or \
(f"{DOTNET_DIR}Libraries/libSkiaSharp.so.." not in raw):
if sha in raw:
return f"FAIL : The libSkiaSharp.so library should not exist in {DOTNET_DIR}"
- raw = cmd(f"shell find {root_path}/bin/ -name libSkiaSharp.so")
- if f"{root_path}/bin/libSkiaSharp.so" in raw:
+ if exist(f"{root_path}/bin/libSkiaSharp.so"):
return "FAIL : The libSkiaSharp.so library should not exist in the application"
pid = launch_and_get_pid(f"-e", f"{pkg_id}")
if root_path == "None":
return f"FAIL : Get the root path for {pkg_id}"
+ if not exist(f"{root_path}/bin/libSkiaSharp.so"):
+ return "FAIL : The libSkiaSharp.so library should exist in the application"
+
raw = cmd(f"shell ls -alZ {root_path}/bin/libSkiaSharp.so")
if (f"{root_path}/bin/libSkiaSharp.so" not in raw) or \
(f"{DOTNET_DIR}Libraries/libSkiaSharp.so.." not in raw):
if root_path == "None":
return f"FAIL : Get the root path for {pkg_id}"
+ if not exist(f"{root_path}/bin/libSkiaSharp.so"):
+ return "FAIL : The libSkiaSharp.so library should exist in the application"
+
raw = cmd(f"shell ls -alZ {root_path}/bin/libSkiaSharp.so")
if (f"{root_path}/bin/libSkiaSharp.so" not in raw) or \
(f"{DOTNET_DIR}Libraries/libSkiaSharp.so.." not in raw):
if sha in raw:
return f"FAIL : The libSkiaSharp.so library should not exist in {DOTNET_DIR}"
+ if not exist(f"{root_path}/bin/libSkiaSharp.so"):
+ return "FAIL : The libSkiaSharp.so library should exist in the application"
+
raw = cmd(f"shell ls -alZ {root_path}/bin/libSkiaSharp.so")
if (f"{root_path}/bin/libSkiaSharp.so" not in raw) or \
(f"{DOTNET_DIR}Libraries/libSkiaSharp.so.." not in raw):
if root_path == "None":
return f"FAIL : Get the root path for {pkg_id}"
+ if not exist(f"{root_path}/bin/libSkiaSharp.so"):
+ return "FAIL : The libSkiaSharp.so library should exist in the application"
+
raw = cmd(f"shell ls -alZ {root_path}/bin/libSkiaSharp.so")
if (f"{root_path}/bin/libSkiaSharp.so" not in raw) or \
(f"{DOTNET_DIR}Libraries/libSkiaSharp.so.." not in raw):
if sha in raw:
return f"FAIL : The libSkiaSharp.so library should not exist in {DOTNET_DIR}"
+ if not exist(f"{root_path}/bin/libSkiaSharp.so"):
+ return "FAIL : The libSkiaSharp.so library should exist only in the application"
+
raw = cmd(f"shell ls -alZ {root_path}/bin/libSkiaSharp.so")
- if f"{root_path}/bin/libSkiaSharp.so" not in raw:
- return "FAIL : The libSkiaSharp.so library should exist only"
if "->" in raw:
return "FAIL : The libSkiaSharp.so library should not be a symbolic link"
if root_path == "None":
return f"FAIL : Get the root path for {pkg_id1}"
+ if not exist(f"{root_path}/bin/libHarfBuzzSharp.so"):
+ return "FAIL : The libHarfBuzzSharp.so library should exist in the application"
+
raw = cmd(f"shell ls -alZ {root_path}/bin/libHarfBuzzSharp.so")
if (f"{root_path}/bin/libHarfBuzzSharp.so" not in raw) or \
(f"{DOTNET_DIR}Libraries/libHarfBuzzSharp.so.." not in raw):
if root_path == "None":
return f"FAIL : Get the root path for {pkg_id2}"
- raw = cmd(f"shell ls -alZ {root_path}/bin/libHarfBuzzSharp.so")
- if f"{root_path}/bin/libHarfBuzzSharp.so" not in raw:
+ if not exist(f"{root_path}/bin/libHarfBuzzSharp.so"):
return "FAIL : The libHarfBuzzSharp.so library should exist"
+ raw = cmd(f"shell ls -alZ {root_path}/bin/libHarfBuzzSharp.so")
+ if (f"{root_path}/bin/libHarfBuzzSharp.so" not in raw) or \
+ (f"{DOTNET_DIR}Libraries/libHarfBuzzSharp.so.." not in raw):
+ return "FAIL : The libHarfBuzzSharp.so library should exist or be a symbolic link"
+
if "OK" not in check_library_arch(f"{root_path}", "libHarfBuzzSharp.so"):
return "FAIL : The arch of the target and the arch of the library must match"
if root_path == "None":
return f"FAIL : Get the root path for {pkg_id}"
+ if not exist(f"{root_path}/bin/libSkiaSharp.so"):
+ return "FAIL : The libSkiaSharp.so library should exist"
+
raw = cmd(f"shell ls -alZ {root_path}/bin/libSkiaSharp.so")
if (f"{root_path}/bin/libSkiaSharp.so" not in raw) or \
(f"{DOTNET_DIR}Libraries/libSkiaSharp.so.." not in raw):