-
-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathDiffVTests.bat
More file actions
77 lines (59 loc) · 2.26 KB
/
DiffVTests.bat
File metadata and controls
77 lines (59 loc) · 2.26 KB
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
65
66
67
68
69
70
71
72
73
74
75
76
77
::! Copyright (c) 2017 Denis Kuzmin <x-3F@outlook.com> github/3F
::! Copyright (c) hMSBuild contributors https://github.com/3F/hMSBuild/graphs/contributors
::! Licensed under the MIT License (MIT).
::! See accompanying License.txt file or visit https://github.com/3F/hMSBuild
@echo off
setlocal enableDelayedExpansion
call a isNotEmptyOrWhitespaceOrFail %~1 || exit /B1
set /a gcount=!%~1! & set /a failedTotal=!%~2!
set "appA=%~3" & set "wdir=%~4" & set "appB=%~5"
set appA="%appA%" & set appB="%appB%"
:::::::::::::::::: :::::::::::::: :::::::::::::::::::::::::
:: Tests
call :execAB "-only-path"
call :execAB "-only-path -no-vswhere"
call :execAB "-only-path -no-vs"
call :execAB "-only-path -no-netfx"
call :execAB "-only-path -vswhere local"
call :execAB "-only-path -vswhere 3.1.7"
call :execAB "-only-path -vswhere latest"
call :execAB "-only-path -no-cache"
call :execAB "-only-path -notamd64"
call :execAB "-only-path -eng"
call :execAB "-GetNuTool -unpack"
call :execAB "-only-path -vswhere local -no-cache"
call :execAB "-only-path -vswhere 3.1.7 -no-cache"
call :execAB "-only-path -vswhere latest -no-cache"
call :execAB "-no-vswhere -no-vs -only-path"
call :execAB "-no-vswhere -no-netfx -only-path"
call :execAB "-no-vswhere -no-vs -notamd64 -only-path"
call :execAB "-no-vswhere -no-netfx -notamd64 -only-path"
call :execAB "-no-netfx -notamd64 -only-path"
call :execAB "-no-vs -notamd64 -only-path"
call :execAB "-notamd64 -vswhere local -only-path"
call :execAB "-notamd64 -vswhere 3.1.7 -only-path"
call :execAB "-notamd64 -vswhere latest -only-path"
call :execAB "-no-vswhere -no-vs -no-netfx -only-path"
:::::::::::::
call :cleanup
:::::::::::::::::: :::::::::::::: :::::::::::::::::::::::::
endlocal & set /a %1=%gcount% & set /a %2=%failedTotal%
if !failedTotal! EQU 0 exit /B 0
exit /B 1
:cleanup
call a unsetFile gnt.core
exit /B 0
:execAB
call a startABTest "%~1" %appA% %appB% outA outB
echo "%outA%"
echo. ==
echo "%outB%"
if not "!outA!"=="!outB!" (
echo [Failed]: ~
echo A: %appA%
echo B: %appB%
call a failTest
exit /B 1
)
call a completeTest
exit /B 0