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 11set -o errexit 12set -o nounset 13set -o pipefail 14set -o xtrace 15 16CARGOFLAGS=${CARGOFLAGS:-""} # default to empty if not set 17 18pushd wrench 19# Test that all shaders compile successfully. 20python script/headless.py --precache test_init 21python script/headless.py --precache --use-unoptimized-shaders test_init 22 23python script/headless.py reftest 24python script/headless.py rawtest 25python script/headless.py test_invalidation 26CXX=clang++ cargo run ${CARGOFLAGS} --release --features=software -- \ 27 --software --headless reftest 28popd 29