Upgrade the nuget(Newtonsoft.Json) version of TC (#422)
author최종헌/Common Platform Lab(SR)/삼성전자 <j-h.choi@samsung.com>
Tue, 19 Jul 2022 23:53:03 +0000 (08:53 +0900)
committerGitHub Enterprise <noreply-CODE@samsung.com>
Tue, 19 Jul 2022 23:53:03 +0000 (08:53 +0900)
Change-Id: I9234a89f05489a771f3ea50242d750e71d652951

tests/Apps/Launcher_TC_TAC_02/Launcher_TC_TAC_02/Launcher_TC_TAC_02/Launcher_TC_TAC_02.csproj
tests/Apps/README.md
tests/TCs/4_TAC/TAC.py

index 2304d7d..d105433 100644 (file)
@@ -1,12 +1,12 @@
-<Project Sdk="Tizen.NET.Sdk/1.1.5">\r
-\r
-  <PropertyGroup>\r
-    <TargetFramework>netstandard2.0</TargetFramework>\r
-  </PropertyGroup>\r
-\r
-  <ItemGroup>\r
-    <PackageReference Include="Newtonsoft.Json" Version="12.0.1" />\r
-    <PackageReference Include="Xamarin.Forms" Version="4.8.0.1364" />\r
-  </ItemGroup>\r
-\r
-</Project>\r
+<Project Sdk="Tizen.NET.Sdk/1.1.5">
+
+  <PropertyGroup>
+    <TargetFramework>netstandard2.0</TargetFramework>
+  </PropertyGroup>
+
+  <ItemGroup>
+    <PackageReference Include="Newtonsoft.Json" Version="13.0.1" />
+    <PackageReference Include="Xamarin.Forms" Version="4.8.0.1364" />
+  </ItemGroup>
+
+</Project>
index cea7e95..68447ef 100644 (file)
@@ -79,7 +79,7 @@ Build complete : org.tizen.example.Launcher_TC_TAC_01.Tizen-1.0.0.tpk
  Apps(.sln)         | PackageID                                  | prefer_dotnet_aot | prefer_nuget_cache | Nuget
 --------------------|--------------------------------------------|-------------------|--------------------|-----------------------------------------------------|
  Launcher_TC_TAC_01 | org.tizen.example.Launcher_TC_TAC_01.Tizen | X                 | True               | Xamarin.Forms(4.6.0.967)
- Launcher_TC_TAC_02 | org.tizen.example.Launcher_TC_TAC_00.Tizen | X                 | True               | Xamarin.Forms(4.8.0.1364), Newtonsoft.Json(12.0.3)
+ Launcher_TC_TAC_02 | org.tizen.example.Launcher_TC_TAC_00.Tizen | X                 | True               | Xamarin.Forms(4.8.0.1364), Newtonsoft.Json(13.0.1)
  Launcher_TC_TAC_03 | org.tizen.example.Launcher_TC_TAC_00.Tizen | X                 | True               | Xamarin.Forms(4.8.0.1687), sqlite-net-base(1.7.335)
  Launcher_TC_TAC_04 | org.tizen.example.Launcher_TC_TAC_00.Tizen | X                 | X                  | Xamarin.Forms(4.8.0.1364)
  Launcher_TC_TAC_05 | org.tizen.example.Launcher_TC_TAC_05.Tizen | X                 | True               | Xamarin.Forms(5.0.0.1558-pre3)
index 94fae23..0d8d248 100755 (executable)
@@ -80,7 +80,7 @@ def TC_02():
     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"
@@ -103,7 +103,7 @@ def TC_02():
         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}")
@@ -151,8 +151,8 @@ def TC_03():
     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:
@@ -199,8 +199,8 @@ def TC_04():
     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}"
@@ -461,8 +461,7 @@ def TC_08():
         is_exist = False
         if ("Xamarin.Forms/4.8.0.1560" 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: