2016-02-20 19:47:27 +03:00
|
|
|
@echo off
|
|
|
|
|
2016-03-31 00:38:56 +03:00
|
|
|
echo Starting Initial Cleanup
|
|
|
|
echo -----------------------------
|
|
|
|
|
2016-07-13 00:40:11 +03:00
|
|
|
if exist "tests/output" rmdir /s /q "tests/output"
|
2016-02-20 19:47:27 +03:00
|
|
|
|
2016-03-31 00:38:56 +03:00
|
|
|
echo -----------------------------
|
|
|
|
echo Initial Cleanup finished
|
|
|
|
echo -----------------------------
|
|
|
|
echo Starting Build
|
|
|
|
echo -----------------------------
|
|
|
|
|
|
|
|
set _msbuildexe="%ProgramFiles%\MSBuild\14.0\Bin\MSBuild.exe"
|
|
|
|
if not exist %_msbuildexe% set _msbuildexe="%ProgramFiles(x86)%\MSBuild\14.0\Bin\MSBuild.exe"
|
|
|
|
if not exist %_msbuildexe% (
|
|
|
|
echo Error: Could not find MSBuild.exe.
|
|
|
|
exit /B
|
|
|
|
)
|
|
|
|
|
|
|
|
call %_msbuildexe% BenchmarkDotNet.sln /t:build /property:Configuration=Release
|
|
|
|
if NOT %ERRORLEVEL% == 0 (
|
|
|
|
echo Error: Build has failed
|
|
|
|
exit /B
|
|
|
|
)
|
2016-02-20 19:47:27 +03:00
|
|
|
|
2016-03-31 00:38:56 +03:00
|
|
|
echo -----------------------------
|
|
|
|
echo Build finished
|
|
|
|
echo -----------------------------
|
|
|
|
echo Starting Copying files
|
2016-02-20 19:47:27 +03:00
|
|
|
echo -----------------------------
|
|
|
|
|
2016-07-13 00:40:11 +03:00
|
|
|
mkdir "tests/output"
|
|
|
|
call build/batchcopy.cmd "src/BenchmarkDotNet/bin/Release/net45/*.*" "tests/output"
|
|
|
|
call build/batchcopy.cmd "src/BenchmarkDotNet.Diagnostics.Windows/bin/Release/net45/*.*" "tests/output"
|
|
|
|
call build/batchcopy.cmd "tests/BenchmarkDotNet.IntegrationTests/bin/Release/net451/*.*" "tests/output"
|
|
|
|
call build/batchcopy.cmd "tests/BenchmarkDotNet.Tests/bin/Release/net451/*.*" "tests/output"
|
|
|
|
call build/batchcopy.cmd "tests/BenchmarkDotNet.IntegrationTests.Classic/bin/Release/*.*" "tests/output"
|
|
|
|
call build/batchcopy.cmd "%USERPROFILE%/.nuget/packages/Microsoft.Diagnostics.Tracing.TraceEvent/1.0.41/lib/net40" "tests/output"
|
|
|
|
call build/batchcopy.cmd "%USERPROFILE%/.nuget/packages/xunit.runner.console/2.2.0-beta2-build3300/tools" "tests/output"
|
|
|
|
call build/batchcopy.cmd "%USERPROFILE%/.nuget/packages/xunit.extensibility.execution/2.2.0-beta2-build3300/lib/net45" "tests/output"
|
|
|
|
call build/batchcopy.cmd "%USERPROFILE%/.nuget/packages/xunit.extensibility.core/2.2.0-beta2-build3300/lib/net45" "tests/output"
|
|
|
|
call build/batchcopy.cmd "%USERPROFILE%/.nuget/packages/xunit.assert/2.2.0-beta2-build3300/lib/netstandard1.0" "tests/output"
|
2016-02-20 19:47:27 +03:00
|
|
|
|
|
|
|
echo -----------------------------
|
|
|
|
echo Copying files ended
|
2016-03-31 00:38:56 +03:00
|
|
|
echo -----------------------------
|
2016-05-26 02:36:44 +03:00
|
|
|
echo Running Tests for Classic Desktop CLR
|
2016-02-20 19:47:27 +03:00
|
|
|
echo -----------------------------
|
|
|
|
|
2016-07-13 00:40:11 +03:00
|
|
|
call "tests/output/xunit.console.exe" "tests/output/BenchmarkDotNet.Tests.dll" "tests/output/BenchmarkDotNet.IntegrationTests.dll" "tests/output/BenchmarkDotNet.IntegrationTests.Classic.exe" -noshadow 2> failedTests.txt
|
2016-03-29 22:02:34 +03:00
|
|
|
|
2016-03-31 00:38:56 +03:00
|
|
|
if NOT %ERRORLEVEL% == 0 (
|
|
|
|
type failedTests.txt
|
|
|
|
goto cleanup
|
2016-03-29 22:02:34 +03:00
|
|
|
)
|
|
|
|
|
|
|
|
echo -----------------------------
|
2016-05-26 02:36:44 +03:00
|
|
|
echo All classic tests has passed
|
2016-03-31 00:38:56 +03:00
|
|
|
echo -----------------------------
|
2016-03-29 22:02:34 +03:00
|
|
|
|
2016-03-31 00:38:56 +03:00
|
|
|
:cleanup
|
|
|
|
del failedTests.txt
|