From 245183cb288c5aaf2faaee859d76b2d1e53aaa78 Mon Sep 17 00:00:00 2001 From: "fupan.lfp" Date: Wed, 4 Mar 2020 14:30:06 +0800 Subject: [PATCH] cargo: add a workspace and run all the tests in the workspace Add a worksapce and run all of the tests in under this workspace. Fixes:#155 Signed-off-by: fupan.lfp --- src/agent/Cargo.toml | 9 +++++++++ src/agent/Makefile | 2 +- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/src/agent/Cargo.toml b/src/agent/Cargo.toml index 8042bc8ed6..3c6922a847 100644 --- a/src/agent/Cargo.toml +++ b/src/agent/Cargo.toml @@ -31,3 +31,12 @@ slog = { version = "2.5.2", features = ["dynamic-keys", "max_level_trace", "rele slog-scope = "4.1.2" # for testing tempfile = "3.1.0" + +[workspace] +members = [ + "logging", + "netlink", + "oci", + "protocols", + "rustjail", +] diff --git a/src/agent/Makefile b/src/agent/Makefile index 81e552163d..8c28065a87 100644 --- a/src/agent/Makefile +++ b/src/agent/Makefile @@ -90,7 +90,7 @@ clean: @cargo clean check: - @cargo test --target $(TRIPLE) + @cargo test --all --target $(TRIPLE) run: @cargo run --target $(TRIPLE)