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)"
|
2020-04-15 18:41:50 +00:00
|
|
|
cargo --version && rustc --version && rustfmt --version \
|
|
|
|
&& cargo clippy --version
|
2019-05-02 19:26:24 +00:00
|
|
|
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
|