-
Notifications
You must be signed in to change notification settings - Fork 1
/
Test.bat
100 lines (87 loc) · 3.11 KB
/
Test.bat
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
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
@ECHO off
ECHO.
ECHO.
ECHO ooooooooooooo .
ECHO 8' 888 `8 .o8
ECHO 888 .ooooo. .oooo.o .o888oo .oooo.o
ECHO 888 d88' `88b d88( "8 888 d88( "8
ECHO 888 888ooo888 `"Y88b. 888 `"Y88b.
ECHO 888 888 .o o. )88b 888 . o. )88b
ECHO o888o `Y8bod8P' 8""888P' "888" 8""888P'
ECHO.
ECHO.
IF NOT [%~1]==[] ( CALL :SPECIFIEDTEST %* )
IF [%~1]==[] ( CALL :ALLTEST )
GOTO :EOF
:SPECIFIEDTEST
ECHO Begin - Specified tests!
Pushd Core
ECHO Begin - Core tests
FOR %%d IN (%*) DO (
ECHO Begin - %%d
dotnet %%d\bin\Release\netcoreapp2.0\%%d.dll > "%%d.results"
ECHO End - %%d
)
ECHO End - Core tests
popd
Pushd Java
ECHO Begin - Java tests!
FOR %%d IN (%*) DO (
ECHO Begin - %%d
if "%%d" == "Recursive" (
java -XX:CompileThreshold=15 -Xss100m -XX:+UseG1GC -Xms50m -Xmx4g -XX:+PrintGCDetails -XX:+PrintFlagsFinal -XX:+UseStringDeduplication -jar %%d\build\libs\%%d-1.0.jar > "%%d.1.results"
)
if NOT "%%d" == "Recursive" (
java -XX:CompileThreshold=15 -XX:+UseG1GC -Xms50m -Xmx4g -XX:+PrintGCDetails -XX:+PrintFlagsFinal -XX:+UseStringDeduplication -jar %%d\build\libs\%%d-1.0.jar > "%%d.1.results"
)
ECHO End - %%d
)
ECHO End - Java tests!
ECHO Begin - Java log analyze!
dotnet build "..\JavaLogAnalyzer" -c Release
FOR %%d IN (%*) DO (
ECHO Begin - %%d
dotnet ..\JavaLogAnalyzer\bin\Release\netcoreapp2.0\JavaLogAnalyzer.dll "%%d.1.results" > "%%d.results";
ECHO End - %%d
)
ECHO End - Java log analyze!
popd
ECHO End - Specified tests!
GOTO :EOF
:ALLTEST
del /q Core\*.results
del /q Java\*.results
ECHO Begin - all tests!
Pushd Core
ECHO Begin - Core tests
FOR /D %%d IN (*) DO (
ECHO Begin - %%d
dotnet %%d\bin\Release\netcoreapp2.0\%%d.dll > "%%d.results"
ECHO End - %%d
)
ECHO End - Core tests
popd
Pushd Java
ECHO Begin - Java tests!
FOR /D %%d IN (*) DO (
ECHO Begin - %%d
if "%%d" == "Recursive" (
java -XX:CompileThreshold=15 -Xss100m -XX:+UseG1GC -Xms50m -Xmx4g -XX:+PrintGCDetails -XX:+PrintFlagsFinal -XX:+UseStringDeduplication -jar %%d\build\libs\%%d-1.0.jar > "%%d.1.results"
)
if NOT "%%d" == "Recursive" (
java -XX:CompileThreshold=15 -XX:+UseG1GC -Xms50m -Xmx4g -XX:+PrintGCDetails -XX:+PrintFlagsFinal -XX:+UseStringDeduplication -jar %%d\build\libs\%%d-1.0.jar > "%%d.1.results"
)
ECHO End - %%d
)
ECHO End - Java tests!
ECHO Begin - Java log analyze!
dotnet build "..\JavaLogAnalyzer" -c Release
FOR /D %%d IN (*) DO (
ECHO Begin - %%d
dotnet ..\JavaLogAnalyzer\bin\Release\netcoreapp2.0\JavaLogAnalyzer.dll "%%d.1.results" > "%%d.results";
ECHO End - %%d
)
ECHO End - Java log analyze!
popd
ECHO End - all tests!
GOTO :EOF