mirror of
https://chromium.googlesource.com/crosvm/crosvm
synced 2024-11-25 05:03:05 +00:00
40af8ee748
Enable cargo clippy in the smoke test script for kokoro with many whitelisted rules to be resolved. This check will reject compile warnings as well. Also, this CL removes cargo check in Docker.crosvm as cargo clippy is a superset of cargo check. BUG=chromium:908640 TEST=./wrapped_smoke_test.sh Change-Id: Iaa546fc0166e3d9762c5e91144d036725d38b0f9 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/crosvm/+/2145538 Commit-Queue: Keiichi Watanabe <keiichiw@chromium.org> Tested-by: Keiichi Watanabe <keiichiw@chromium.org> Reviewed-by: Daniel Verkamp <dverkamp@chromium.org> Reviewed-by: Zach Reizner <zachr@chromium.org>
21 lines
637 B
Bash
Executable file
21 lines
637 B
Bash
Executable file
#!/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"
|
|
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
|