1#!/bin/bash 2# Copyright 2019 The Chromium OS Authors. All rights reserved. 3# Use of this source code is governed by a BSD-style license that can be 4# found in the LICENSE file. 5 6set -ex 7 8cd "$(dirname "${BASH_SOURCE[0]}")" 9cd ../ 10 11rustup default "$(cat rust-toolchain)" 12rustup component add rustfmt-preview 13cargo --version && rustc --version && rustfmt --version 14echo "Running cargo test" 15cargo test --no-fail-fast --features plugin,default-no-sandbox,wl-dmabuf,gpu,tpm,gpu-forward \ 16 --all --exclude aarch64 $TEST_FLAGS -- \ 17 --test-threads=1 $TEST_RUNNER_FLAGS 18echo "Running cargo fmt" 19bin/fmt --check 20