echo " The name should can be found under http://165.213.149.200/download/public_mirror/tizen/"
echo " like tizen-mobile_20170215.2."
echo " Default is a latest repository."
- echo "--skiprpminstall - Do not install rpm files"
- echo "--skiptcinstall - Do not install TC archive"
+ echo "--url - You can specify the specific url of packages archive"
+ echo " like http://165.213.149.200/download/public_mirror/tizen/base/tizen-base_20170520.1/repos/arm/packages/"
+ echo " Default is a latest repository."
+ echo "--prefix-dir - You can specify the prefix directory for performing the unittest"
+ echo " like /opt/usr/coreclr-tc"
+ echo " Default is '/opt/usr/coreclr-tc'."
+ echo "--skiprpminstall - Do not install rpm files"
+ echo "--skiptcinstall - Do not install TC archive"
+ echo "--skiptcdirremove - Do not remove TC directory"
exit 1
}
fi
}
-opt="-d"
-devicetype=
+opt=""
+devicetype="mobile"
version="latest"
+url=""
+clrdir=""
skiprpminstall=0
skiptcinstall=0
--version=*)
version=${i#*=}
;;
+ --url=*)
+ url=${i#*=}
+ ;;
+ --prefix-dir=*)
+ clrdir=${i#*=}
+ ;;
--skiprpminstall)
skiprpminstall=1
;;
--skiptcinstall)
skiptcinstall=1
;;
+ --skiptcdirremove)
+ skiptcdirremove=1
+ ;;
*)
usage
exit 1
exit 1
fi
+if [[ ${devicetype} != "mobile" ]] && [[ ${devicetype} != "tv" ]]; then
+ usage
+ exit 1
+fi
+
+
str=$( sdb ${opt} shell "uname -a" )
if [[ $str == *"x86_64"* ]]; then
target_type="emulator"
exit 1
fi
-clrdir="/opt/usr/coreclr-tc"
+if [[ $clrdir == "" ]]; then
+ clrdir="/opt/usr/coreclr-tc"
+fi
tcdir="$clrdir/Windows_NT.${tcarch}.Release"
-sdb ${opt} shell rm -rf $clrdir
+if [ $skiptcdirremove == 0 ]; then
+ sdb ${opt} shell rm -rf $clrdir
+fi
sdb ${opt} shell mkdir -p ${clrdir}
if [ $skiprpminstall == 0 ]; then
echo "Target arch : ${target}"
echo "Check valid repository url"
- repo_url="http://165.213.149.200/download/public_mirror/tizen/unified"
- url=$repo_url"/"$version"/repos/"$target_type"/packages/"$target
+ if [[ $url == "" ]]; then
+ repo_url="http://165.213.149.200/download/public_mirror/tizen/unified"
+ url=$repo_url"/"$version"/repos/"$target_type"/packages/"
+ fi
+ url=$url"/"$target"/"
check_valid_url $url
echo -e " \n\n---- Donwload coreclr-test-*.rpm ----"
echo -e "\nHow to convert useful csv file : "
echo -e "(In host machine, not target)"
echo -e "coreclr$ cd script"
-echo -e "coreclr/script$ ./get_clr_results.sh"
+echo -e "coreclr/script$ ./get_clr_results.sh --prefix-dir=${clrdir}"
+
usage()
{
- echo "Usage: $0 [device-name] --postfix=###"
+ echo "Usage: $0 [device-name] --postfix=### --prefix-dir=###"
echo "device-name - You can get the name by using 'sdb devices' command"
exit 1
}
-opt="-d"
+opt=""
postfix=''
+clrdir=""
for i in "$@"
do
--postfix=*)
postfix="_"${i#*=}
;;
+ --prefix-dir=*)
+ clrdir=${i#*=}
+ ;;
*)
opt="-s ${i#*}"
;;
version=${version%?}
rm -rf ./info.ini
-clrdir="/opt/usr/coreclr-tc"
+if [[ ${clrdir} == "" ]]; then
+ clrdir="/opt/usr/coreclr-tc"
+fi
name="CoreCLR_UnitTest_Results_"$version$postfix
sdb ${opt} pull $clrdir/Windows_NT.${tcarch}.Release/coreclrtests.xml $name.xml