-
Notifications
You must be signed in to change notification settings - Fork 0
/
test_mingw.ps1
63 lines (46 loc) · 1.07 KB
/
test_mingw.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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
Push-Location .
$build_dir = 'build'
if (-Not (Test-Path -Path $build_dir)) {
mkdir $build_dir
}
& .\build_mingw.ps1
if (-Not ($LASTEXITCODE -eq "0")) {
Write-Output "Running build.ps1 failed!"
Pop-Location
exit 1
}
Set-Location $build_dir
Write-Output ""
Write-Output ""
Write-Output ""
Write-Output ">>>>>>>>>>>>>>>>>>>>>>> Starting debug test run (MinGW)"
Set-Location Debug
& .\graph_app.exe
if (-Not ($LASTEXITCODE -eq "0")) {
Write-Output "Debug test run failed!"
Pop-Location
exit 1
}
Write-Output ">>>>>>>>>>>>>>>>>>>>>>> Completed debug test run (MinGW)"
Write-Output ""
Write-Output ""
Write-Output ""
Pop-Location
Push-Location .
Set-Location $build_dir
Write-Output ""
Write-Output ""
Write-Output ""
Write-Output ">>>>>>>>>>>>>>>>>>>>>>> Starting release test run (MinGW)"
Set-Location Release
& .\graph_app.exe
if (-Not ($LASTEXITCODE -eq "0")) {
Write-Output "Release test run failed!"
Pop-Location
exit 1
}
Write-Output ">>>>>>>>>>>>>>>>>>>>>>> Completed release test run (MinGW)"
Write-Output ""
Write-Output ""
Write-Output ""
Pop-Location