tor-browser

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

macos-release-tests.sh (1221B)


      1 #!/usr/bin/env bash
      2 
      3 # This Source Code Form is subject to the terms of the Mozilla Public
      4 # License, v. 2.0. If a copy of the MPL was not distributed with this
      5 # file, You can obtain one at http://mozilla.org/MPL/2.0/. */
      6 
      7 # This must be run from the root webrender directory!
      8 # Users may set the CARGOFLAGS environment variable to pass
      9 # additional flags to cargo if desired.
     10 # The WRENCH_BINARY environment variable, if set, is used to run
     11 # the precached reftest.
     12 
     13 set -o errexit
     14 set -o nounset
     15 set -o pipefail
     16 set -o xtrace
     17 
     18 CARGOFLAGS=${CARGOFLAGS:-""}  # default to empty if not set
     19 WRENCH_BINARY=${WRENCH_BINARY:-""}
     20 
     21 python3 -m pip install -r $(dirname ${0})/requirements.txt
     22 
     23 pushd wrench
     24 
     25 # Test that all shaders compile successfully and pass tests.
     26 python3 script/headless.py --precache test_init
     27 python3 script/headless.py --precache --use-unoptimized-shaders test_init
     28 python3 script/headless.py test_shaders
     29 
     30 python3 script/headless.py reftest
     31 python3 script/headless.py test_invalidation
     32 if [[ -z "${WRENCH_BINARY}" ]]; then
     33    cargo build ${CARGOFLAGS} --release
     34    WRENCH_BINARY="../target/release/wrench"
     35 fi
     36 "${WRENCH_BINARY}" --precache \
     37    reftest reftests/clip/fixed-position-clipping.yaml
     38 popd