summaryrefslogtreecommitdiff
path: root/tests/src/performance/linkbench/scripts/clone.cmd
blob: 60cfe202b69e1c9da03288e91426b82e00770614 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
setlocal ENABLEDELAYEDEXPANSION 
@echo off

set EXITCODE=0
pushd %LinkBenchRoot%

if not exist %__dotnet1% call :DotNet

if defined __test_HelloWorld call :HelloWorld
if defined __test_WebAPI call :WebAPI
if defined __test_MusicStore call :MusicStore
if defined __test_MusicStore_R2R call :MusicStore_R2R 
if defined __test_CoreFx call :CoreFx
if defined __test_Roslyn call :Roslyn

popd
exit /b %EXITCODE%

:DotNet
REM Roslyn needs SDK 1.0.0, other benchmarks need SDK 2.0.0
mkdir .Net1
mkdir .Net2
powershell -noprofile -executionPolicy RemoteSigned wget  https://raw.githubusercontent.com/dotnet/cli/master/scripts/obtain/dotnet-install.ps1 -OutFile dotnet-install.ps1
powershell -noprofile -executionPolicy RemoteSigned -file dotnet-install.ps1 -InstallDir .Net1
powershell -noprofile -executionPolicy RemoteSigned -file dotnet-install.ps1 -Channel master -InstallDir .Net2 -version 2.0.0-preview2-005905
if not exist %__dotnet1% set EXITCODE=1&& echo DotNet.1.0.0 uninstalled
if not exist %__dotnet2% set EXITCODE=1&& echo DotNet.2.0.0 uninstalled
exit /b 

:HelloWorld
mkdir HelloWorld
cd HelloWorld
call %__dotnet2% new console
if errorlevel 1 set EXITCODE=1
cd ..
exit /b 

:WebAPI
mkdir WebAPI
cd WebAPI
call %__dotnet2% new webapi
if errorlevel 1 set EXITCODE=1
cd ..
exit /b

:MusicStore
git clone https://github.com/aspnet/JitBench -b dev
if errorlevel 1 set EXITCODE=1
exit /b

:MusicStore_R2R
REM MusicStore_R2R requires a previous MusicStore run.
REM No Additional Setup
exit /b

:CoreFx
git clone http://github.com/dotnet/corefx
if errorlevel 1 set EXITCODE=1
exit /b

:Roslyn
git clone https://github.com/dotnet/roslyn.git
if errorlevel 1 set EXITCODE=1
exit /b