tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

windows-tests.cmd (1385B)


      1 :: This Source Code Form is subject to the terms of the Mozilla Public
      2 :: License, v. 2.0. If a copy of the MPL was not distributed with this
      3 :: file, You can obtain one at http://mozilla.org/MPL/2.0/. */
      4 
      5 :: This must be run from the root webrender directory!
      6 :: Users may set the CARGOFLAGS environment variable to pass
      7 :: additional flags to cargo if desired.
      8 
      9 if NOT DEFINED CARGOFLAGS SET CARGOFLAGS=--verbose
     10 
     11 python3 -m pip install -r %0\\..\\requirements.txt
     12 
     13 pushd webrender_api
     14 cargo test %CARGOFLAGS%
     15 if %ERRORLEVEL% NEQ 0 EXIT /b %ERRORLEVEL%
     16 popd
     17 
     18 pushd webrender
     19 cargo test %CARGOFLAGS%
     20 if %ERRORLEVEL% NEQ 0 EXIT /b %ERRORLEVEL%
     21 popd
     22 
     23 pushd wrench
     24 cargo test --verbose
     25 if %ERRORLEVEL% NEQ 0 EXIT /b %ERRORLEVEL%
     26 :: Test that all shaders compile successfully and pass tests.
     27 :: --precache compiles all shaders during initialization, therefore if init
     28 :: is successful then the shaders compile.
     29 cargo run --release -- --angle --precache test_init
     30 if %ERRORLEVEL% NEQ 0 EXIT /b %ERRORLEVEL%
     31 cargo run --release -- --angle --precache --use-unoptimized-shaders test_init
     32 if %ERRORLEVEL% NEQ 0 EXIT /b %ERRORLEVEL%
     33 cargo run --release -- --angle test_shaders
     34 if %ERRORLEVEL% NEQ 0 EXIT /b %ERRORLEVEL%
     35 
     36 cargo run --release -- --angle reftest
     37 if %ERRORLEVEL% NEQ 0 EXIT /b %ERRORLEVEL%
     38 popd
     39 
     40 pushd examples
     41 cargo check --verbose
     42 if %ERRORLEVEL% NEQ 0 EXIT /b %ERRORLEVEL%
     43 popd