-
Notifications
You must be signed in to change notification settings - Fork 3.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
70e7568
commit c0a2212
Showing
3 changed files
with
125 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,90 @@ | ||
@ECHO OFF | ||
SETLOCAL | ||
SET EL=0 | ||
|
||
ECHO NUMBER_OF_PROCESSORS^: %NUMBER_OF_PROCESSORS% | ||
|
||
SET PROJECT_DIR=%CD% | ||
SET CONFIGURATION=Release | ||
|
||
mkdir build | ||
IF %ERRORLEVEL% NEQ 0 GOTO ERROR | ||
cd build | ||
IF %ERRORLEVEL% NEQ 0 GOTO ERROR | ||
cmake -DENABLE_CONAN=ON -DENABLE_NODE_BINDINGS=ON -DCMAKE_BUILD_TYPE=%CONFIGURATION% -G "Visual Studio 17 2022" .. | ||
IF %ERRORLEVEL% NEQ 0 GOTO ERROR | ||
|
||
msbuild OSRM.sln ^ | ||
/p:Configuration=%CONFIGURATION% ^ | ||
/p:Platform=x64 ^ | ||
/t:rebuild ^ | ||
/p:BuildInParallel=true ^ | ||
/m:%NUMBER_OF_PROCESSORS% ^ | ||
/toolsversion:Current ^ | ||
/clp:Verbosity=quiet ^ | ||
/nologo | ||
IF %ERRORLEVEL% NEQ 0 GOTO ERROR | ||
|
||
@REM CD %PROJECT_DIR%\build | ||
@REM IF %ERRORLEVEL% NEQ 0 GOTO ERROR | ||
|
||
@REM ECHO running extractor-tests.exe ... | ||
@REM unit_tests\%CONFIGURATION%\extractor-tests.exe | ||
@REM IF %ERRORLEVEL% NEQ 0 GOTO ERROR | ||
|
||
@REM ECHO running contractor-tests.exe ... | ||
@REM unit_tests\%CONFIGURATION%\contractor-tests.exe | ||
@REM IF %ERRORLEVEL% NEQ 0 GOTO ERROR | ||
|
||
@REM ECHO running engine-tests.exe ... | ||
@REM unit_tests\%CONFIGURATION%\engine-tests.exe | ||
@REM IF %ERRORLEVEL% NEQ 0 GOTO ERROR | ||
|
||
@REM ECHO running util-tests.exe ... | ||
@REM unit_tests\%CONFIGURATION%\util-tests.exe | ||
@REM IF %ERRORLEVEL% NEQ 0 GOTO ERROR | ||
|
||
@REM ECHO running server-tests.exe ... | ||
@REM unit_tests\%CONFIGURATION%\server-tests.exe | ||
@REM IF %ERRORLEVEL% NEQ 0 GOTO ERROR | ||
|
||
@REM ECHO running partitioner-tests.exe ... | ||
@REM unit_tests\%CONFIGURATION%\partitioner-tests.exe | ||
@REM IF %ERRORLEVEL% NEQ 0 GOTO ERROR | ||
|
||
@REM ECHO running customizer-tests.exe ... | ||
@REM unit_tests\%CONFIGURATION%\customizer-tests.exe | ||
@REM IF %ERRORLEVEL% NEQ 0 GOTO ERROR | ||
|
||
SET test_region=monaco | ||
SET test_region_ch=ch\monaco | ||
SET test_region_mld=mld\monaco | ||
SET test_osm=%test_region%.osm.pbf | ||
COPY %PROJECT_DIR%\test\data\%test_region%.osm.pbf %test_osm% | ||
%CONFIGURATION%\osrm-extract.exe -p %PROJECT_DIR%\profiles\car.lua %test_osm% | ||
IF %ERRORLEVEL% NEQ 0 GOTO ERROR | ||
|
||
MKDIR ch | ||
XCOPY %test_region%.osrm.* ch\ | ||
XCOPY %test_region%.osrm ch\ | ||
MKDIR mld | ||
XCOPY %test_region%.osrm.* mld\ | ||
XCOPY %test_region%.osrm mld\ | ||
%CONFIGURATION%\osrm-contract.exe %test_region_ch%.osrm | ||
%CONFIGURATION%\osrm-partition.exe %test_region_mld%.osrm | ||
%CONFIGURATION%\osrm-customize.exe %test_region_mld%.osrm | ||
XCOPY /Y ch\*.* ..\test\data\ch\ | ||
XCOPY /Y mld\*.* ..\test\data\mld\ | ||
|
||
@REM unit_tests\%CONFIGURATION%\library-tests.exe | ||
@REM IF %ERRORLEVEL% NEQ 0 GOTO ERROR | ||
|
||
:ERROR | ||
ECHO ~~~~~~~~~~~~~~~~~~~~~~ ERROR %~f0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | ||
ECHO ERRORLEVEL^: %ERRORLEVEL% | ||
SET EL=%ERRORLEVEL% | ||
|
||
:DONE | ||
ECHO ~~~~~~~~~~~~~~~~~~~~~~ DONE %~f0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | ||
|
||
EXIT /b %EL% |