summaryrefslogtreecommitdiffstats
path: root/toolkit/crashreporter/google-breakpad/src/tools/windows/converter_exe/winsymconv_test.cmd
blob: c177706608db1a34ee7a50ec4a73c3f9150e2b5f (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
65
66
67
68
69
70
71
72
@if "%ECHOON%"=="" @echo off
SETLOCAL

REM ******************************************************************
REM Usage:
REM        winsymconv_test
REM ******************************************************************

REM ******************************************************************
REM Initialize
REM ******************************************************************
SET SCRIPT_LOCATION=%~dp0
SET DBGHELP_WINHTTP=
SET USE_WINHTTP=

REM ******************************************************************
REM Go to script location
REM ******************************************************************
pushd %SCRIPT_LOCATION%

REM ******************************************************************
REM  Make sure the symbol file directory exists
REM ******************************************************************
SET SYMBOL_DIR=%SCRIPT_LOCATION%symbol
if NOT EXIST %SYMBOL_DIR% MKDIR %SYMBOL_DIR%
if NOT EXIST %SYMBOL_DIR% echo Failed to create directory '%SYMBOL_DIR%' & goto :fail

REM ******************************************************************
REM Testing on the staging instance.
REM ******************************************************************
echo Testing on the staging instance ...

google_converter.exe ^
    -n http://msdl.microsoft.com/download/symbols ^
    -n http://symbols.mozilla.org/firefox ^
    -n http://chromium-browser-symsrv.commondatastorage.googleapis.com ^
    -n https://download.amd.com/dir/bin ^
    -n https://driver-symbols.nvidia.com ^
    -n https://software.intel.com/sites/downloads/symbols ^
    -l %SYMBOL_DIR% ^
    -s https://clients2.google.com/cr/staging_symbol ^
    -mf %SCRIPT_LOCATION%missing_symbols_test.txt ^
    -t https://clients2.google.com/cr/staging_symbol/fetchfailed ^
    -b "google|chrome|internal|private" ^
    > %SCRIPT_LOCATION%last_cycle_staging.txt

REM ******************************************************************
REM Testing on the production instance.
REM ******************************************************************
echo Testing on the production instance ...

google_converter.exe ^
    -n http://msdl.microsoft.com/download/symbols ^
    -n http://symbols.mozilla.org/firefox ^
    -n http://chromium-browser-symsrv.commondatastorage.googleapis.com ^
    -n https://download.amd.com/dir/bin ^
    -n https://driver-symbols.nvidia.com ^
    -n https://software.intel.com/sites/downloads/symbols ^
    -l %SYMBOL_DIR% ^
    -s https://clients2.google.com/cr/symbol ^
    -mf %SCRIPT_LOCATION%missing_symbols_test.txt ^
    -t https://clients2.google.com/cr/symbol/fetchfailed ^
    -b "google|chrome|internal|private" ^
    > %SCRIPT_LOCATION%last_cycle_prod.txt

:success
ENDLOCAL
exit /b 0

:fail
ENDLOCAL
exit /b 1