[NUI][TEST] change Tizen.NUI.Components.Devel.Tests to run on the tizen_7.0's csharp-tct
authordongsug.song <dongsug.song@samsung.com>
Thu, 31 Mar 2022 10:35:14 +0000 (19:35 +0900)
committerJaehyun Cho <jaehyun0cho@gmail.com>
Wed, 20 Apr 2022 08:38:08 +0000 (17:38 +0900)
test/Tizen.NUI.Tests/Tizen.NUI.Components.Devel.Tests/Program.cs
test/Tizen.NUI.Tests/Tizen.NUI.Components.Devel.Tests/Properties/Resources.Designer.cs [moved from test/Tizen.NUI.Tests/Tizen.NUI.Components.Devel.Tests/Resource.Designer.cs with 82% similarity]
test/Tizen.NUI.Tests/Tizen.NUI.Components.Devel.Tests/Properties/Resources.resx [moved from test/Tizen.NUI.Tests/Tizen.NUI.Components.Devel.Tests/Resource.resx with 91% similarity]
test/Tizen.NUI.Tests/Tizen.NUI.Components.Devel.Tests/README.md [new file with mode: 0644]
test/Tizen.NUI.Tests/Tizen.NUI.Components.Devel.Tests/Tizen.NUI.Components.Devel.Tests.csproj
test/Tizen.NUI.Tests/Tizen.NUI.Components.Devel.Tests/Tizen.NUI.Components.Devel.Tests.sln [deleted file]
test/Tizen.NUI.Tests/Tizen.NUI.Components.Devel.Tests/res/demoVideo.mp4 [deleted file]
test/Tizen.NUI.Tests/Tizen.NUI.Components.Devel.Tests/shared/res/Tizen.NUI.Components.Devel.Tests.png [new file with mode: 0755]
test/Tizen.NUI.Tests/Tizen.NUI.Components.Devel.Tests/shared/res/nui-csharp.png [deleted file]
test/Tizen.NUI.Tests/Tizen.NUI.Components.Devel.Tests/tizen-manifest.xml

index 90e368f..ac2760f 100755 (executable)
@@ -23,7 +23,7 @@ using System.Threading;
 using System.Diagnostics;
 using System.Threading.Tasks;
 
-namespace Tizen.NUI.Devel.Tests
+namespace Tizen.NUI.Components.Devel.Tests
 {
     using tlog = Tizen.Log;
     public class App : Tizen.NUI.NUIApplication
@@ -8,10 +8,10 @@
 // </auto-generated>
 //------------------------------------------------------------------------------
 
-namespace Tizen.NUI.Devel.Tests {
+namespace Tizen.NUI.Components.Devel.Tests.Properties {
     using System;
-    
-    
+
+
     /// <summary>
     ///   A strongly-typed resource class, for looking up localized strings, etc.
     /// </summary>
@@ -22,16 +22,16 @@ namespace Tizen.NUI.Devel.Tests {
     [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "16.0.0.0")]
     [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
     [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
-    internal class Resource {
-        
+    internal class Resources {
+
         private static global::System.Resources.ResourceManager resourceMan;
-        
+
         private static global::System.Globalization.CultureInfo resourceCulture;
-        
+
         [global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")]
-        internal Resource() {
+        internal Resources() {
         }
-        
+
         /// <summary>
         ///   Returns the cached ResourceManager instance used by this class.
         /// </summary>
@@ -39,13 +39,13 @@ namespace Tizen.NUI.Devel.Tests {
         internal static global::System.Resources.ResourceManager ResourceManager {
             get {
                 if (object.ReferenceEquals(resourceMan, null)) {
-                    global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("Tizen.NUI.Devel.Tests.Resource", typeof(Resource).Assembly);
+                    global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("Tizen.NUI.Components.Tests.Properties.Resources", typeof(Resources).Assembly);
                     resourceMan = temp;
                 }
                 return resourceMan;
             }
         }
-        
+
         /// <summary>
         ///   Overrides the current thread's CurrentUICulture property for all
         ///   resource lookups using this strongly typed resource class.
@@ -59,14 +59,5 @@ namespace Tizen.NUI.Devel.Tests {
                 resourceCulture = value;
             }
         }
-        
-        /// <summary>
-        ///   Looks up a localized string similar to Test.
-        /// </summary>
-        internal static string Test {
-            get {
-                return ResourceManager.GetString("Test", resourceCulture);
-            }
-        }
     }
 }
@@ -1,17 +1,17 @@
 <?xml version="1.0" encoding="utf-8"?>
 <root>
-  <!-- 
-    Microsoft ResX Schema 
-    
+  <!--
+    Microsoft ResX Schema
+
     Version 2.0
-    
-    The primary goals of this format is to allow a simple XML format 
-    that is mostly human readable. The generation and parsing of the 
-    various data types are done through the TypeConverter classes 
+
+    The primary goals of this format is to allow a simple XML format
+    that is mostly human readable. The generation and parsing of the
+    various data types are done through the TypeConverter classes
     associated with the data types.
-    
+
     Example:
-    
+
     ... ado.net/XML headers & schema ...
     <resheader name="resmimetype">text/microsoft-resx</resheader>
     <resheader name="version">2.0</resheader>
         <value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
         <comment>This is a comment</comment>
     </data>
-                
-    There are any number of "resheader" rows that contain simple 
+
+    There are any number of "resheader" rows that contain simple
     name/value pairs.
-    
-    Each data row contains a name, and value. The row also contains a 
-    type or mimetype. Type corresponds to a .NET class that support 
-    text/value conversion through the TypeConverter architecture. 
-    Classes that don't support this are serialized and stored with the 
+
+    Each data row contains a name, and value. The row also contains a
+    type or mimetype. Type corresponds to a .NET class that support
+    text/value conversion through the TypeConverter architecture.
+    Classes that don't support this are serialized and stored with the
     mimetype set.
-    
-    The mimetype is used for serialized objects, and tells the 
-    ResXResourceReader how to depersist the object. This is currently not 
+
+    The mimetype is used for serialized objects, and tells the
+    ResXResourceReader how to depersist the object. This is currently not
     extensible. For a given mimetype the value must be set accordingly:
-    
-    Note - application/x-microsoft.net.object.binary.base64 is the format 
-    that the ResXResourceWriter will generate, however the reader can 
+
+    Note - application/x-microsoft.net.object.binary.base64 is the format
+    that the ResXResourceWriter will generate, however the reader can
     read any of the formats listed below.
-    
+
     mimetype: application/x-microsoft.net.object.binary.base64
-    value   : The object must be serialized with 
+    value   : The object must be serialized with
             : System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
             : and then encoded with base64 encoding.
-    
+
     mimetype: application/x-microsoft.net.object.soap.base64
-    value   : The object must be serialized with 
+    value   : The object must be serialized with
             : System.Runtime.Serialization.Formatters.Soap.SoapFormatter
             : and then encoded with base64 encoding.
 
     mimetype: application/x-microsoft.net.object.bytearray.base64
-    value   : The object must be serialized into a byte array 
+    value   : The object must be serialized into a byte array
             : using a System.ComponentModel.TypeConverter
             : and then encoded with base64 encoding.
     -->
   <resheader name="writer">
     <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
   </resheader>
-  <data name="Test" xml:space="preserve">
-    <value>Test</value>
+  <data name="String1" xml:space="preserve">
+    <value />
+    <comment>test</comment>
   </data>
 </root>
\ No newline at end of file
diff --git a/test/Tizen.NUI.Tests/Tizen.NUI.Components.Devel.Tests/README.md b/test/Tizen.NUI.Tests/Tizen.NUI.Components.Devel.Tests/README.md
new file mode 100644 (file)
index 0000000..de1b0d4
--- /dev/null
@@ -0,0 +1,14 @@
+This (Tizen.NUI.Components.Devel.Tests) is an auto TCT project for the internal API of Tizen.NUI.Components.Tests.
+
+You can use it like below.
+
+1. download or do "git clone" the csharp-tct project from review.tizen.org : https://review.tizen.org/gerrit/#/admin/projects/test/tct/csharp/api
+
+2. copy this Tizen.NUI.Components.Devel.Tests project into the below of "api/tct-suite-vs/" folder
+  ex) $ cp -rf Tizen.NUI.Components.Devel.Tests ~/SomePath/api/tct-suite-vs/
+
+3. package Tizen.NUI.Components.Devel.Tests tpk into csharp-tct. execute the following command in "api/tool/script" folder
+  ex) $ sudo python pack.py auto NUI.Components.Devel
+
+4. execute csharp-tct and you can see the Tizen.NUI.Components.Devel.Tests item shown
+  ex) $ sudo tct-mgr  
index efce8cd..10844e7 100755 (executable)
@@ -1,9 +1,10 @@
-<Project Sdk="Microsoft.NET.Sdk">
+<Project Sdk="Microsoft.NET.Sdk">
 
   <!-- Property Group for .NET Core Project -->
   <PropertyGroup>
     <OutputType>Exe</OutputType>
-    <TargetFramework>netcoreapp3.1</TargetFramework>
+    <TargetFramework>tizen10.0</TargetFramework>
+    <TargetFrameworkIdentifier>Tizen</TargetFrameworkIdentifier>
   </PropertyGroup>
 
   <!-- Property Group for Tizen Project -->
     <DebugType>None</DebugType>
   </PropertyGroup>
 
+  <ItemGroup>
+       <Folder Include="lib\" />
+  </ItemGroup>
+
   <Import Project="..\Common\dependencies.props" />
   <ItemGroup>
-    <PackageReference Include="Tizen.NET" Version="9.0.0.16715">
+    <PackageReference Include="Tizen.NET" Version="$(TizenNETVersion)">
       <ExcludeAssets>Runtime</ExcludeAssets>
     </PackageReference>
-    <PackageReference Include="Tizen.NET.Sdk" Version="1.1.6" />
+    <PackageReference Include="Tizen.NET.Sdk" Version="$(TizenNETSdkVersion)" />
   </ItemGroup>
+
+  <!-- Include Nuget Package for Tizen Project building -->
   <ItemGroup>
-    <ProjectReference Include="..\..\..\src\Tizen.NUI.Components\Tizen.NUI.Components.csproj" />
-    <ProjectReference Include="..\..\..\src\Tizen.NUI\Tizen.NUI.csproj" />
     <ProjectReference Include="..\nunit.framework\nunit.framework.csproj" />
     <ProjectReference Include="..\nunitlite\nunitlite.csproj" />
   </ItemGroup>
 
-  <!-- Include Nuget Package for Tizen Project building -->
-
   <PropertyGroup>
     <SignAssembly>true</SignAssembly>
     <AssemblyOriginatorKeyFile>./NuiTest.snk</AssemblyOriginatorKeyFile>
     <PublicSign Condition=" '$(OS)' != 'Windows_NT' ">true</PublicSign>
-    <UserSecretsId>5cd04a1b-2080-411b-935e-62d2a4971abc</UserSecretsId>
   </PropertyGroup>
 
 </Project>
diff --git a/test/Tizen.NUI.Tests/Tizen.NUI.Components.Devel.Tests/Tizen.NUI.Components.Devel.Tests.sln b/test/Tizen.NUI.Tests/Tizen.NUI.Components.Devel.Tests/Tizen.NUI.Components.Devel.Tests.sln
deleted file mode 100755 (executable)
index 6410d43..0000000
+++ /dev/null
@@ -1,37 +0,0 @@
-
-Microsoft Visual Studio Solution File, Format Version 12.00
-# Visual Studio Version 16
-VisualStudioVersion = 16.0.31112.23
-MinimumVisualStudioVersion = 10.0.40219.1
-Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Tizen.NUI.Components.Devel.Tests", "Tizen.NUI.Components.Devel.Tests.csproj", "{FDD59395-4BD7-4F1A-A7A1-9C95929A0902}"
-EndProject
-Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "nunit.framework", "..\nunit.framework\nunit.framework.csproj", "{400E7822-8340-4AB7-A78F-9CC41CBE1969}"
-EndProject
-Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "nunitlite", "..\nunitlite\nunitlite.csproj", "{68DA4488-EF9F-4497-8681-DE094BDD5744}"
-EndProject
-Global
-       GlobalSection(SolutionConfigurationPlatforms) = preSolution
-               Debug|Any CPU = Debug|Any CPU
-               Release|Any CPU = Release|Any CPU
-       EndGlobalSection
-       GlobalSection(ProjectConfigurationPlatforms) = postSolution
-               {FDD59395-4BD7-4F1A-A7A1-9C95929A0902}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
-               {FDD59395-4BD7-4F1A-A7A1-9C95929A0902}.Debug|Any CPU.Build.0 = Debug|Any CPU
-               {FDD59395-4BD7-4F1A-A7A1-9C95929A0902}.Release|Any CPU.ActiveCfg = Release|Any CPU
-               {FDD59395-4BD7-4F1A-A7A1-9C95929A0902}.Release|Any CPU.Build.0 = Release|Any CPU
-               {400E7822-8340-4AB7-A78F-9CC41CBE1969}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
-               {400E7822-8340-4AB7-A78F-9CC41CBE1969}.Debug|Any CPU.Build.0 = Debug|Any CPU
-               {400E7822-8340-4AB7-A78F-9CC41CBE1969}.Release|Any CPU.ActiveCfg = Release|Any CPU
-               {400E7822-8340-4AB7-A78F-9CC41CBE1969}.Release|Any CPU.Build.0 = Release|Any CPU
-               {68DA4488-EF9F-4497-8681-DE094BDD5744}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
-               {68DA4488-EF9F-4497-8681-DE094BDD5744}.Debug|Any CPU.Build.0 = Debug|Any CPU
-               {68DA4488-EF9F-4497-8681-DE094BDD5744}.Release|Any CPU.ActiveCfg = Release|Any CPU
-               {68DA4488-EF9F-4497-8681-DE094BDD5744}.Release|Any CPU.Build.0 = Release|Any CPU
-       EndGlobalSection
-       GlobalSection(SolutionProperties) = preSolution
-               HideSolutionNode = FALSE
-       EndGlobalSection
-       GlobalSection(ExtensibilityGlobals) = postSolution
-               SolutionGuid = {913AE2D0-5429-42FF-9269-B40FA5D29E84}
-       EndGlobalSection
-EndGlobal
diff --git a/test/Tizen.NUI.Tests/Tizen.NUI.Components.Devel.Tests/res/demoVideo.mp4 b/test/Tizen.NUI.Tests/Tizen.NUI.Components.Devel.Tests/res/demoVideo.mp4
deleted file mode 100755 (executable)
index 9232219..0000000
Binary files a/test/Tizen.NUI.Tests/Tizen.NUI.Components.Devel.Tests/res/demoVideo.mp4 and /dev/null differ
diff --git a/test/Tizen.NUI.Tests/Tizen.NUI.Components.Devel.Tests/shared/res/Tizen.NUI.Components.Devel.Tests.png b/test/Tizen.NUI.Tests/Tizen.NUI.Components.Devel.Tests/shared/res/Tizen.NUI.Components.Devel.Tests.png
new file mode 100755 (executable)
index 0000000..9765b1b
Binary files /dev/null and b/test/Tizen.NUI.Tests/Tizen.NUI.Components.Devel.Tests/shared/res/Tizen.NUI.Components.Devel.Tests.png differ
diff --git a/test/Tizen.NUI.Tests/Tizen.NUI.Components.Devel.Tests/shared/res/nui-csharp.png b/test/Tizen.NUI.Tests/Tizen.NUI.Components.Devel.Tests/shared/res/nui-csharp.png
deleted file mode 100755 (executable)
index 673d6c7..0000000
Binary files a/test/Tizen.NUI.Tests/Tizen.NUI.Components.Devel.Tests/shared/res/nui-csharp.png and /dev/null differ
index 848e3cb..6f8b23b 100755 (executable)
@@ -1,17 +1,13 @@
 <?xml version="1.0" encoding="utf-8"?>
-<manifest xmlns="http://tizen.org/ns/packages" api-version="9" package="Tizen.NUI.Components.Devel.Tests" version="1.0.0">
+<manifest package="Tizen.NUI.Components.Devel.Tests" version="1.0.0" api-version="7" xmlns="http://tizen.org/ns/packages">
     <profile name="common" />
-    <ui-application appid="Tizen.NUI.Components.Devel.Tests"
-                    exec="Tizen.NUI.Components.Devel.Tests.dll"
-                    type="dotnet"
-                    multiple="false"
-                    taskmanage="true"
-                    launch_mode="single">
-    <icon>Tizen.NUI.Components.Devel.Tests.png</icon>
-    <label>Tizen.NUI.Components.Devel.Tests</label>
+    <ui-application appid="Tizen.NUI.Components.Devel.Tests" exec="Tizen.NUI.Components.Devel.Tests.dll" multiple="false" taskmanage="true" splash-screen-display="true" type="dotnet" launch_mode="single">
+        <icon>Tizen.NUI.Components.Devel.Tests.png</icon>
+        <label>Tizen.NUI.Components.Devel.Tests</label>
     </ui-application>
     <privileges>
-          <privilege>http://tizen.org/privilege/appmanager.launch</privilege>
-          <privilege>http://tizen.org/privilege/window.priority.set</privilege>
-  </privileges>
+        <privilege>http://tizen.org/privilege/appmanager.launch</privilege>
+        <privilege>http://tizen.org/privilege/window.priority.set</privilege>
+    </privileges>
+    <provides-appdefined-privileges />
 </manifest>