summary refs log blame commit diff
path: root/bin/smoke_test
blob: 74e1cd0a591697f3228eab47debebb9474f63432 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
                   










                                                                        

                                                         
                         
                                                                                  



                                            

                           
#!/usr/bin/env 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 \
    && cargo clippy --version
echo "Running cargo test"
cargo test --no-fail-fast --features plugin,default-no-sandbox,wl-dmabuf,gpu,tpm \
    --all --exclude aarch64 $TEST_FLAGS -- \
    --test-threads=1 $TEST_RUNNER_FLAGS
echo "Running cargo fmt"
bin/fmt --check
echo "Running cargo clippy"
bin/clippy