[Non-ACR][tool/script] Modify Script for tizen70 03/229703/3
authorNguyen Thi Luong <luong.ngthi@samsung.com>
Fri, 3 Apr 2020 02:56:50 +0000 (09:56 +0700)
committerNguyen Thi Luong <luong.ngthi@samsung.com>
Fri, 3 Apr 2020 09:38:16 +0000 (16:38 +0700)
Change-Id: Ic8c118166d82ee09657870ceea8c95a7508f8fe7

tool/script/pack.py
tool/script/template/Tizen.Newmodule.Manual.Tests/Tizen.Newmodule.Manual.Tests.csproj
tool/script/template/Tizen.Newmodule.Manual.Tests/tizen-manifest.xml
tool/script/template/Tizen.Newmodule.Tests/Tizen.Newmodule.Tests.csproj
tool/script/template/Tizen.Newmodule.Tests/tizen-manifest.xml

index 50c9e35..6eb0a60 100755 (executable)
@@ -139,7 +139,7 @@ def file_count(path):
 
     return count
 
-def print_result(success , fails):  
+def print_result(success , fails):
     print('')
     print('-------------------------------------')
     print(' packaging result ')
@@ -148,36 +148,36 @@ def print_result(success , fails):
     print('')
 
 
-def pack(module , cnt):  
+def pack(module , cnt):
 
     MODULE_NAME = module
 
     PACKAGE_NAME = PREFIX+MODULE_NAME+SUFFIX
-    TPK_PATH = PROJECT_PATH+PACKAGE_NAME+'/bin/Debug/tizen60/'+PACKAGE_NAME+'-1.0.0.tpk'
+    TPK_PATH = PROJECT_PATH+PACKAGE_NAME+'/bin/Debug/tizen70/'+PACKAGE_NAME+'-1.0.0.tpk'
     RELEASE_PATH = 'release/'
 
     # Check the module exist or not.
-    if not os.path.isdir(PROJECT_PATH+PACKAGE_NAME+'/'): 
+    if not os.path.isdir(PROJECT_PATH+PACKAGE_NAME+'/'):
         print(bcolors.ERROR +  str(cnt+1) + "  please check the module name. "+bcolors.ENDC+MODULE_NAME+bcolors.ERROR+" package does not exist in tct-suite-vs."+bcolors.ENDC)
         print("  You can choose from below package list.")
         module_list = folder_list(PROJECT_PATH)
-        module_list.sort()   
+        module_list.sort()
         for module in module_list:
             temp = module
             if module.find(".Manual") > -1:
-                temp = module.replace(".Manual" , "") 
+                temp = module.replace(".Manual" , "")
                 temp = "manual " + temp
             else :
-                temp = "auto " + temp          
+                temp = "auto " + temp
             print("      " + temp)
-        global FAILS        
+        global FAILS
         FAILS += 1
         return
 
     if not os.path.isfile(TPK_PATH):
         print(bcolors.ERROR +  str(cnt+1) + "  You should build "+MODULE_NAME+" project before run this script." +bcolors.ENDC)
         FAILS += 1
-        return 
+        return
 
     # Create release / tclist / bin folder.
     create_folder(RELEASE_PATH)
@@ -227,14 +227,14 @@ def pack(module , cnt):
         if file_count(PROJECT_PATH+PACKAGE_NAME+'/res') > 0:
             shutil.copytree(PROJECT_PATH+PACKAGE_NAME+'/res' , 'bin/opt/'+PACKAGE_NAME+'/res')
 
-    # create zip 
+    # create zip
     zip('bin', RELEASE_PATH+PACKAGE_NAME+'-5.5')
     if os.path.isfile(RELEASE_PATH+PACKAGE_NAME+'-5.5.zip'):
         print( str(cnt+1) + "  Created "+bcolors.OKGREEN + MODULE_NAME + bcolors.ENDC + " Packages.")
-        global SUCCESS        
+        global SUCCESS
         SUCCESS += 1
 
-    # copy zip file 
+    # copy zip file
     create_folder('../../release/'+TCT+'/'+TCT+'/package/mobile/')
     shutil.copy(RELEASE_PATH+PACKAGE_NAME+'-5.5.zip', '../../release/'+TCT+'/'+TCT+'/package/mobile/')
 
@@ -263,7 +263,7 @@ if __name__ == "__main__":
         if(sys.argv[1] != 'all'):
             print_error()
             exit(1)
-    elif len(sys.argv) < 3:          
+    elif len(sys.argv) < 3:
         print_error()
         exit(1)
 
@@ -273,11 +273,11 @@ if __name__ == "__main__":
         print_error()
         exit(1)
 
-    if sys.argv[1] == 'all':          
+    if sys.argv[1] == 'all':
         pack_list = folder_list(PROJECT_PATH)
     else:
         MODULE = sys.argv[2]
-        if sys.argv[1] == 'manual':  
+        if sys.argv[1] == 'manual':
             MODULE = MODULE +'.Manual'
         pack_list.append(MODULE)
 
@@ -296,7 +296,7 @@ if __name__ == "__main__":
     if os.path.isdir('/opt/tct/tizen_csharp_5.5'):
         shutil.copy('../../release/'+TCT+'/'+TCT+'/package/pkg_infos/mobile_pkg_info.xml', '/opt/tct/tizen_csharp_5.5/packages/pkg_infos')
 
-        
+
 #    pkg_info_gen = PKGInfoGenerator()
 #    pkg_info_gen.generate_pkg_info()
 
index a171ef7..bbaaefb 100755 (executable)
@@ -3,7 +3,7 @@
   <!-- Property Group for .NET Core Project -->
   <PropertyGroup>
     <OutputType>Exe</OutputType>
-    <TargetFramework>tizen60</TargetFramework>
+    <TargetFramework>tizen70</TargetFramework>
   </PropertyGroup>
 
   <!-- Property Group for Tizen Project -->
index c581c93..f1e5fe1 100755 (executable)
@@ -1,5 +1,5 @@
 <?xml version="1.0" encoding="utf-8"?>
-<manifest xmlns="http://tizen.org/ns/packages" api-version="6" package="Tizen.Newmodule.Manual.Tests" version="1.0.0">
+<manifest xmlns="http://tizen.org/ns/packages" api-version="7" package="Tizen.Newmodule.Manual.Tests" version="1.0.0">
     <profile name="common" />
     <ui-application appid="Tizen.Newmodule.Manual.Tests"
                     exec="Tizen.Newmodule.Manual.Tests.dll"
index 1c4ad04..ed82ea6 100755 (executable)
@@ -3,7 +3,7 @@
   <!-- Property Group for .NET Core Project -->
   <PropertyGroup>
     <OutputType>Exe</OutputType>
-    <TargetFramework>tizen60</TargetFramework>
+    <TargetFramework>tizen70</TargetFramework>
   </PropertyGroup>
 
   <!-- Property Group for Tizen Project -->
index cc45d19..86418b2 100755 (executable)
@@ -1,5 +1,5 @@
 <?xml version="1.0" encoding="utf-8"?>
-<manifest xmlns="http://tizen.org/ns/packages" api-version="6" package="Tizen.Newmodule.Tests" version="1.0.0">
+<manifest xmlns="http://tizen.org/ns/packages" api-version="7" package="Tizen.Newmodule.Tests" version="1.0.0">
     <profile name="common" />
     <ui-application appid="Tizen.Newmodule.Tests"
                     exec="Tizen.Newmodule.Tests.dll"