echo 'Typical command line:'
echo ''
echo 'coreclr/tests/scripts/perf-perp.sh'
- echo ' --branch="dotnet_coreclr"'
+ echo ' --repo="dotnet_coreclr"'
echo ''
echo 'Required arguments:'
echo ' --branch=<path> : branch where coreclr/corefx/test bits are copied from (e.g. dotnet_coreclr).'
# Argument variables
perfArch="x64"
perfConfig="Release"
-perfBranch=
+perfBranch="master"
+perfRepo=
throughput=0
nocorefx=0
print_usage
exit $EXIT_CODE_SUCCESS
;;
+ --repo=*)
+ perfRepo=${i#*=}
+ ;;
--branch=*)
perfBranch=${i#*=}
;;
esac
done
-perfBranch="dotnet_coreclr"
+perfRepo="dotnet_coreclr"
+echo "repo = $perfRepo"
echo "branch = $perfBranch"
echo "architecture = $perfArch"
echo "configuration = $perfConfig"
if [ ! -d "bin/tests/Windows_NT.$perfArch.$perfConfig" ]; then
echo "Downloading tests"
- curl https://ci.dot.net/job/$perfBranch/job/master/job/release_windows_nt/lastSuccessfulBuild/artifact/bin/tests/tests.zip -o tests.zip
+ curl https://ci.dot.net/job/$perfRepo/job/$perfBranch/job/release_windows_nt/lastSuccessfulBuild/artifact/bin/tests/tests.zip -o tests.zip
echo "unzip tests to ./bin/tests/Windows_NT.$perfArch.$perfConfig"
unzip -q -o tests.zip -d ./bin/tests/Windows_NT.$perfArch.$perfConfig || exit 0
fi