Skip to content
This repository was archived by the owner on Jan 23, 2023. It is now read-only.
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 9 additions & 4 deletions tests/scripts/perf-prep.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ function print_usage {
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).'
Expand All @@ -21,7 +21,8 @@ readonly EXIT_CODE_SUCCESS=0 # Script ran normally.
# Argument variables
perfArch="x64"
perfConfig="Release"
perfBranch=
perfBranch="master"
perfRepo=
throughput=0
nocorefx=0

Expand All @@ -32,6 +33,9 @@ do
print_usage
exit $EXIT_CODE_SUCCESS
;;
--repo=*)
perfRepo=${i#*=}
;;
--branch=*)
perfBranch=${i#*=}
;;
Expand All @@ -52,7 +56,8 @@ do
esac
done

perfBranch="dotnet_coreclr"
perfRepo="dotnet_coreclr"
echo "repo = $perfRepo"
echo "branch = $perfBranch"
echo "architecture = $perfArch"
echo "configuration = $perfConfig"
Expand Down Expand Up @@ -116,7 +121,7 @@ else

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
Expand Down