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 <fupan.lfp@antfin.com>
This commit is contained in:
fupan.lfp 2020-03-04 14:30:06 +08:00
parent 35c33bba47
commit 245183cb28
2 changed files with 10 additions and 1 deletions

View File

@ -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",
]

View File

@ -90,7 +90,7 @@ clean:
@cargo clean
check:
@cargo test --target $(TRIPLE)
@cargo test --all --target $(TRIPLE)
run:
@cargo run --target $(TRIPLE)