2021-02-22 22:40:08 +00:00
|
|
|
#!/bin/bash
|
2022-09-13 17:55:17 +00:00
|
|
|
# Copyright 2021 The ChromiumOS Authors
|
2021-02-22 22:40:08 +00:00
|
|
|
# Use of this source code is governed by a BSD-style license that can be
|
|
|
|
# found in the LICENSE file
|
|
|
|
|
|
|
|
# We require the crosvm binary to build before running the integration tests.
|
|
|
|
# There is an RFC for cargo to allow for this kind of dependency:
|
|
|
|
# https://github.com/rust-lang/cargo/issues/9096
|
|
|
|
cd $(dirname $0)
|
2022-06-06 13:13:43 +00:00
|
|
|
(cd .. && cargo build $@ && cargo build --features=direct --bin crosvm-direct)
|
2021-02-22 22:40:08 +00:00
|
|
|
cargo test $@
|