Add steps to install xunit performance packages
authorSmile Wei <xiwe@microsoft.com>
Mon, 29 Aug 2016 23:04:58 +0000 (16:04 -0700)
committerSmile Wei <xiwe@microsoft.com>
Mon, 29 Aug 2016 23:04:58 +0000 (16:04 -0700)
Commit migrated from https://github.com/dotnet/coreclr/commit/0ed1e5143d298f2e568c974b0b49d5e6990084b2

src/coreclr/tests/scripts/run-xunit-perf.sh

index 08b1b26..7be8949 100644 (file)
@@ -367,10 +367,22 @@ if [ -d "$mscorlibDir" ] && [ -d "$mscorlibDir/bin" ]; then
     cp $mscorlibDir/bin/* $mscorlibDir
 fi
 
+# Install xunit performance packages
+export NUGET_PACKAGE=$testNativeBinDir/../../../../packages
+
+echo "dir $testNativeBinDir/../../../../Tools"
+dir $testNativeBinDir/../../../../Tools
+echo "dir $testNativeBinDir/../../../../Tools/dotnetcli"
+dir $testNativeBinDir/../../../../Tools/dotnetcli
+
+$testNativeBinDir/../../../../Tools/dotnetcli/dotnet restore --fallbacksource https://dotnet.myget.org/F/dotnet-buildtools/ --fallbacksource https://dotnet.myget.org/F/dotnet-core/
+
+# Creat coreoverlay dir which contains all dependent binaries
 create_core_overlay
 precompile_overlay_assemblies
 copy_test_native_bin_to_test_root
 
+# Deploy xunit performance packages
 cd $CORE_ROOT
 
 DO_SETUP=TRUE
@@ -396,6 +408,7 @@ sudo cp  $testNativeBinDir/../../../../../packages/Microsoft.DotNet.xunit.perfor
 
 fi
 
+# Run coreclr performance tests
 echo "Test root dir is: $testRootDir"
 tests=($(find $testRootDir/JIT/Performance/CodeQuality -name '*.exe'))