macos-debug-tests.sh (1482B)
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 11 # Note that this script is run in a special cross-compiling configuration, 12 # where CARGOTESTFLAGS includes `--no-run`, and the binaries produced by 13 # `cargo test` are run on a different machine. When making changes to this 14 # file, please ensure any such binaries produced by `cargo test` are not 15 # deleted, or they may not get run as expected. 16 17 set -o errexit 18 set -o nounset 19 set -o pipefail 20 set -o xtrace 21 22 CARGOFLAGS=${CARGOFLAGS:-"--verbose"} # default to --verbose if not set 23 CARGOTESTFLAGS=${CARGOTESTFLAGS:-""} 24 25 python3 -m pip install -r $(dirname ${0})/requirements.txt 26 27 pushd webrender 28 cargo check ${CARGOFLAGS} --no-default-features 29 cargo check ${CARGOFLAGS} --no-default-features --features capture 30 cargo check ${CARGOFLAGS} --features capture,profiler 31 cargo check ${CARGOFLAGS} --features replay 32 popd 33 34 pushd wrench 35 cargo check ${CARGOFLAGS} --features env_logger 36 popd 37 38 pushd examples 39 cargo check ${CARGOFLAGS} 40 popd 41 42 cargo test ${CARGOFLAGS} ${CARGOTESTFLAGS} \ 43 --all --exclude compositor --exclude compositor-wayland \ 44 --exclude compositor-windows --exclude glsl-to-cxx --exclude swgl