2019-05-02 19:26:24 +00:00
|
|
|
#!/bin/bash
|
|
|
|
# Copyright 2019 The Chromium OS Authors. All rights reserved.
|
|
|
|
# Use of this source code is governed by a BSD-style license that can be
|
|
|
|
# found in the LICENSE file.
|
|
|
|
|
|
|
|
set -ex
|
|
|
|
|
|
|
|
cd "$(dirname "${BASH_SOURCE[0]}")"
|
|
|
|
cd ../
|
|
|
|
|
|
|
|
rustup default "$(cat rust-toolchain)"
|
|
|
|
rustup component add rustfmt-preview
|
|
|
|
cargo --version && rustc --version && rustfmt --version
|
|
|
|
echo "Running cargo test"
|
2019-12-09 18:19:54 +00:00
|
|
|
cargo test --no-fail-fast --features plugin,default-no-sandbox,wl-dmabuf,gpu,tpm \
|
2019-05-02 19:26:24 +00:00
|
|
|
--all --exclude aarch64 $TEST_FLAGS -- \
|
|
|
|
--test-threads=1 $TEST_RUNNER_FLAGS
|
|
|
|
echo "Running cargo fmt"
|
|
|
|
bin/fmt --check
|
2020-04-10 12:43:45 +00:00
|
|
|
echo "Running cargo clippy"
|
|
|
|
bin/clippy
|