-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtest.ps1
41 lines (30 loc) · 1.18 KB
/
test.ps1
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
Set-StrictMode -Version 3.0
$ErrorActionPreference = "Stop"
$PSNativeCommandUserErrorActionPerference = $true
# get the location of this file
$scriptpath = $MyInvocation.MyCommand.Path
# get the directory path to this file
$workingdirectory = Split-Path $scriptpath
# set the working directory as this file's directory
Push-Location $workingdirectory
Write-Output "------------------"
Write-Output "Building x86 Debug"
Write-Output "------------------"
# build the solution
& "MSBuild.exe" /t:Build /p:Platform=x86 /p:Configuration=Debug "foolsgoldsource.sln"
Write-Output "-----------------"
Write-Output "Testing x86 Debug"
Write-Output "-----------------"
# run the tests
& "vstest.console.exe" Debug\foolsgoldsource_test.dll --logger:"console;verbosity=Normal"
Write-Output "------------------"
Write-Output "Building x64 Debug"
Write-Output "------------------"
# build the solution
& "MSBuild.exe" /t:Build /p:Platform=x64 /p:Configuration=Debug "foolsgoldsource.sln"
Write-Output "-----------------"
Write-Output "Testing x64 Debug"
Write-Output "-----------------"
# run the tests
& "vstest.console.exe" x64\Debug\foolsgoldsource_test.dll --logger:"console;verbosity=Normal"
Pop-Location