From b8be6bab1606a2e73483463092b7e063869104f7 Mon Sep 17 00:00:00 2001 From: Rob Bradford Date: Fri, 3 Jul 2020 15:03:28 +0100 Subject: [PATCH] tests: Prepare for splitting binaries by building all binaries In preparation for splitting the binaries into their own crates start building all the binaries in the workspace as part of the integration testing suite. Signed-off-by: Rob Bradford --- scripts/run_cargo_tests.sh | 2 +- scripts/run_integration_tests.sh | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/run_cargo_tests.sh b/scripts/run_cargo_tests.sh index da6f24abf..1abbc7acc 100755 --- a/scripts/run_cargo_tests.sh +++ b/scripts/run_cargo_tests.sh @@ -25,4 +25,4 @@ time cargo clippy --all-targets --no-default-features --features "mmio" -- -D wa time cargo rustc --bin cloud-hypervisor --no-default-features --features "mmio" -- -D warnings time cargo rustc --bin vhost_user_net --no-default-features --features "mmio" -- -D warnings time cargo fmt -- --check -time cargo build --release +time cargo build --all --release diff --git a/scripts/run_integration_tests.sh b/scripts/run_integration_tests.sh index 3da2d8908..25339de87 100755 --- a/scripts/run_integration_tests.sh +++ b/scripts/run_integration_tests.sh @@ -201,7 +201,7 @@ TARGET_CC="musl-gcc" CFLAGS="-I /usr/include/x86_64-linux-musl/ -idirafter /usr/include/" fi -cargo build --release --target $BUILD_TARGET +cargo build --all --release --target $BUILD_TARGET strip target/$BUILD_TARGET/release/cloud-hypervisor strip target/$BUILD_TARGET/release/vhost_user_net strip target/$BUILD_TARGET/release/ch-remote @@ -249,7 +249,7 @@ fi if [ $RES -eq 0 ]; then # virtio-mmio based testing - cargo build --release --target $BUILD_TARGET --no-default-features --features "mmio" + cargo build --all --release --target $BUILD_TARGET --no-default-features --features "mmio" strip target/$BUILD_TARGET/release/cloud-hypervisor strip target/$BUILD_TARGET/release/vhost_user_net strip target/$BUILD_TARGET/release/ch-remote