Import testcases.bin.tgz for release_2.0.0
authorJiyoung Yun <jy910.yun@samsung.com>
Thu, 6 Jul 2017 08:03:23 +0000 (17:03 +0900)
committerJiyoung Yun <jy910.yun@samsung.com>
Thu, 6 Jul 2017 08:03:23 +0000 (17:03 +0900)
install.sh
tc/testcases.x86.bin.tgz [new file with mode: 0644]

index 451a3f7..aa4fa29 100755 (executable)
@@ -22,6 +22,8 @@ usage()
     echo "--skiprpminstall  - Do not install rpm files"
     echo "--skiptcinstall   - Do not install TC archive"
     echo "--skiptcdirremove - Do not remove TC directory"
+    echo "--uselatesttc - Download a latest unittest file from http://10.113.63.27:8080/"
+    echo "                This option is off by default and use a local unittest file under tc directory."
     exit 1
 }
 
@@ -41,6 +43,7 @@ url=""
 clrdir=""
 skiprpminstall=0
 skiptcinstall=0
+uselatesttc=0
 
 for i in "$@"
 do
@@ -77,6 +80,9 @@ do
         --skiptcdirremove)
             skiptcdirremove=1
             ;;
+        --uselatesttc)
+            uselatesttc=1
+            ;;
         *)
             usage
             exit 1
@@ -148,9 +154,14 @@ if [[ $skiprpminstall == 0 ]]; then
 fi
 
 if [ $skiptcinstall == 0 ]; then
-    echo -e "\n\n---- Download CoreCLR TC ----"
-    tc_url="http://10.113.63.27:8080/job/CLR/job/"$tcarch"_Rel_CLEARED_TC_Pri2/lastSuccessfulBuild/artifact/output/testcases.bin.tgz"
-    wget $tc_url
+    if [ $uselatesttc == 0 ]; then
+        echo -e "\n\n---- Use tc/testcases.${tcarch}.bin.tgz ----"
+        cp -L tc/testcases.${tcarch}.bin.tgz testcases.bin.tgz
+    else
+        echo -e "\n\n---- Download CoreCLR TC ----"
+        tc_url="http://10.113.63.27:8080/job/CLR/job/"$tcarch"_Rel_CLEARED_TC_Pri2/lastSuccessfulBuild/artifact/output/testcases.bin.tgz"
+        wget $tc_url
+    fi
 
     echo -e "\n\n---- Install CoreCLR TC ----"
     sdb ${opt} push testcases.bin.tgz $clrdir
diff --git a/tc/testcases.x86.bin.tgz b/tc/testcases.x86.bin.tgz
new file mode 100644 (file)
index 0000000..2566371
Binary files /dev/null and b/tc/testcases.x86.bin.tgz differ