From dbf7ad9db239ae6d23d7335cdfa2acc32e5794ab Mon Sep 17 00:00:00 2001 From: raycad Date: Mon, 7 Sep 2020 10:19:54 +0700 Subject: [PATCH] [Non-ACR][Script] Apply new repository to tizen_5.5 Change-Id: I69bee9f2f36e760e76d30756a3016ca9cbfa279d --- tool/script/creating_auto_binary.sh | 66 ++++++++++++++++++++++--------------- 1 file changed, 39 insertions(+), 27 deletions(-) diff --git a/tool/script/creating_auto_binary.sh b/tool/script/creating_auto_binary.sh index 0d95de9..7cabe2f 100755 --- a/tool/script/creating_auto_binary.sh +++ b/tool/script/creating_auto_binary.sh @@ -1,52 +1,64 @@ #!/bin/bash +#Setup version for TCT +TCT_VERSION='5.5' -# tct-toolkit path -# {repository_path}/tct-toolkit/tct-tools/ -TOOL_KIT='/home/hoon/share/repository/tct-tools/tct-toolkit/tct-tools/' +# tct-common path +# {repository_path}/tct-common +TCT_COMMON='/home/tizen/ReleaseIOT/TCT/tct-common' -# tool path -# {repository_path}/tools/tct_5.5/ -TOOLS='/home/hoon/share/repository/tct-tools/tools/tct_5.5/' +# tct-mgr path +# {repository_path}/tct-mgr +TCT_MGR='/home/tizen/ReleaseIOT/TCT/tct-mgr' +# tct-shell path +# {repository_path}/tct-shell +TCT_SHELL='/home/tizen/ReleaseIOT/TCT/tct-shell' # tct path # {repository_path}/api/release/chsarp-tct_5.5_dotnet -TCT_PATH='/home/hoon/share/repository/public/csharp/net5.5/api/release/csharp-tct_5.5_dotnet' +TCT_PATH='/home/tizen/ReleaseIOT/TCT/TCT_5.5/api/release/csharp-tct_5.5_dotnet' - -echo "Getting latest tools in spin repository." -cd $TOOL_KIT +echo "Getting latest tct-common, tct-mgr & tct-shell in spin repository." +cd $TCT_COMMON git reset --hard git pull -cd $TOOLS +cd $TCT_SHELL git reset --hard git pull +cd $TCT_MGR +git reset --hard +git pull echo "Updating resource folder" -rsync -avz --exclude=tct-testconfig --exclude=tct-testconfig-3.0.zip $TOOLS/resource/ $TCT_PATH/csharp-tct_5.5_dotnet/resource/ +rsync -avz --exclude=tct-testconfig --exclude=tct-testconfig-3.0.zip $TCT_COMMON/tools/tct_$TCT_VERSION/resource/ $TCT_PATH/csharp-tct_"$TCT_VERSION"_dotnet/resource/ + # remove tizen-web-ui-fw and tinyweb folder -rm -rf $TCT_PATH/csharp-tct_5.5_dotnet/resource/tizen-web-ui-fw/ -rm -rf $TCT_PATH/csharp-tct_5.5_dotnet/resource/tinyweb/ +rm -rf $TCT_PATH/csharp-tct_"$TCT_VERSION"_dotnet/resource/tizen-web-ui-fw/ +rm -rf $TCT_PATH/csharp-tct_"$TCT_VERSION"_dotnet/resource/tinyweb/ echo "Updating tools folder" -rsync -avz --exclude=healthcheck.ini --exclude=manager $TOOLS/tools/ $TCT_PATH/csharp-tct_5.5_dotnet/tools/ - - -echo "Updating tct-toolkit" -rm -rf $TCT_PATH/tct-tools_r4_rc1/* -sudo cp -r $TOOL_KIT/* $TCT_PATH/tct-tools_r4_rc1/ - - - -echo "Changing folder permission" -sudo chmod -R 777 $TCT_PATH/csharp-tct_5.5_dotnet/ +rsync -avz --exclude=healthcheck.ini --exclude=manager $TCT_COMMON/tools/tct_$TCT_VERSION/tools/ $TCT_PATH/csharp-tct_"$TCT_VERSION"_dotnet/tools/ + +echo "Updating tct-tools_xxxx" +sudo rm -rf $TCT_PATH/tct-tools_r4_rc1/* +rsync -avz --exclude=dev_scripts --exclude=tools --exclude=bin --exclude=testkit-lite --exclude=testkit-stub $TCT_COMMON/ $TCT_PATH/tct-tools_r4_rc1/ +cp -r $TCT_COMMON/bin/* $TCT_PATH/tct-tools_r4_rc1/ +cp -r $TCT_COMMON/testkit-lite/* $TCT_PATH/tct-tools_r4_rc1/ +cp -r $TCT_MGR/release/tct-mgr-app.jar $TCT_PATH/tct-tools_r4_rc1/manager/lib + +#Create shell folder in destination directory +mkdir $TCT_PATH/tct-tools_r4_rc1/shell +rsync -avz $TCT_SHELL/ $TCT_PATH/tct-tools_r4_rc1/shell + +cp -r $TCT_COMMON/dev_scripts/README $TCT_PATH +cp -r $TCT_COMMON/dev_scripts/tct-setup.py $TCT_PATH +#echo "Changing folder permission" +sudo chmod -R 777 $TCT_PATH/csharp-tct_"$TCT_VERSION"_dotnet/ sudo chmod -R 777 $TCT_PATH/tct-tools_r4_rc1/ - cd $TCT_PATH cd ../../tool/script - sudo python auto_binary.py -- 2.7.4