Skip to content
This repository was archived by the owner on Jan 23, 2023. It is now read-only.

Commit 76785ed

Browse files
author
José Rivero
committed
Set default BenchView run type to local
- This is the case when running on the dev boxes (outside automation)
1 parent ba68378 commit 76785ed

File tree

1 file changed

+16
-13
lines changed

1 file changed

+16
-13
lines changed

tests/scripts/run-xunit-perf.cmd

Lines changed: 16 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77

88
setlocal
99
set ERRORLEVEL=
10+
set BENCHVIEW_RUN_TYPE=local
1011
set CORECLR_REPO=%CD%
1112
set TEST_FILE_EXT=exe
1213
set TEST_ARCH=x64
@@ -109,7 +110,7 @@ rem ****************************************************************************
109110
goto :parse_command_line_arguments
110111
)
111112
IF /I [%~1] == [-runtype] (
112-
set RUN_TYPE=%~2
113+
set BENCHVIEW_RUN_TYPE=%~2
113114
shift
114115
shift
115116
goto :parse_command_line_arguments
@@ -222,23 +223,25 @@ endlocal& exit /b %ERRORLEVEL%
222223
rem ****************************************************************************
223224
rem Generates BenchView's submission data and upload it
224225
rem ****************************************************************************
225-
call :run_cmd py.exe "%BENCHVIEW_PATH%\submission.py" measurement.json ^
226-
--build ..\build.json ^
227-
--machine-data ..\machinedata.json ^
228-
--metadata ..\submission-metadata.json ^
229-
--group "CoreCLR" ^
230-
--type "%RUN_TYPE%" ^
231-
--config-name "%TEST_CONFIG%" ^
232-
--config Configuration "%TEST_CONFIG%" ^
233-
--config OS "Windows_NT" ^
234-
--arch "%TEST_ARCHITECTURE%" ^
235-
--machinepool "PerfSnake"
226+
setlocal
227+
set LV_SUBMISSION_ARGS=
228+
set LV_SUBMISSION_ARGS=%LV_SUBMISSION_ARGS% --build ..\build.json
229+
set LV_SUBMISSION_ARGS=%LV_SUBMISSION_ARGS% --machine-data ..\machinedata.json
230+
set LV_SUBMISSION_ARGS=%LV_SUBMISSION_ARGS% --metadata ..\submission-metadata.json
231+
set LV_SUBMISSION_ARGS=%LV_SUBMISSION_ARGS% --group "CoreCLR"
232+
set LV_SUBMISSION_ARGS=%LV_SUBMISSION_ARGS% --type "%BENCHVIEW_RUN_TYPE%"
233+
set LV_SUBMISSION_ARGS=%LV_SUBMISSION_ARGS% --config-name "%TEST_CONFIG%"
234+
set LV_SUBMISSION_ARGS=%LV_SUBMISSION_ARGS% --config Configuration "%TEST_CONFIG%"
235+
set LV_SUBMISSION_ARGS=%LV_SUBMISSION_ARGS% --config OS "Windows_NT"
236+
set LV_SUBMISSION_ARGS=%LV_SUBMISSION_ARGS% --arch "%TEST_ARCHITECTURE%"
237+
set LV_SUBMISSION_ARGS=%LV_SUBMISSION_ARGS% --machinepool "PerfSnake"
238+
call :run_cmd py.exe "%BENCHVIEW_PATH%\submission.py" measurement.json %LV_SUBMISSION_ARGS%
236239
IF %ERRORLEVEL% NEQ 0 (
237240
call :print_error Creating BenchView submission data failed.
238241
exit /b 1
239242
)
240243

241-
REM FIXME: call :run_cmd py.exe "%BENCHVIEW_PATH%\upload.py" submission.json --container coreclr
244+
call :run_cmd py.exe "%BENCHVIEW_PATH%\upload.py" submission.json --container coreclr
242245
IF %ERRORLEVEL% NEQ 0 (
243246
call :print_error Uploading to BenchView failed.
244247
exit /b 1

0 commit comments

Comments
 (0)