anchor.diff: +# Copyright 2018 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.
  +
   FROM debian:stretch
   LABEL description="Test crosvm using a command like the following: \
   docker run --privileged -v /dev/log:/dev/log -v <path to crosvm>:/src:ro <crosvm base image>"
  
positive.code:     && echo "f69dafcca62fe70d7882113e21bb96a2cbdf4fc4636d25337d6de9191bdec8da *rustup-init" | sha256sum -c - \
      && chmod +x rustup-init \
      && ./rustup-init -y --no-modify-path --default-toolchain $RUST_VERSION \
      && rm rustup-init \
      && chmod -R a+w $RUSTUP_HOME $CARGO_HOME \
      && rustup --version \
  
negative.code: RUN mkdir -p $CARGO_TARGET_DIR
  WORKDIR /src
  CMD cargo test --no-fail-fast --all-features --all --exclude aarch64 $TEST_FLAGS -- \
      --test-threads=1 $TEST_RUNNER_FLAGS && \
      cargo fmt --all -- --check
  