Skip to content

Commit

Permalink
ch: Make integration tests rely on external test_infra crate
Browse files Browse the repository at this point in the history
Instead of copying the test_infra crate content, let's rely on it
directly from the cloud-hypervisor/cloud-hypervisor repository.

Signed-off-by: Sebastien Boeuf <[email protected]>
  • Loading branch information
Sebastien Boeuf authored and bryteise committed Mar 26, 2021
1 parent 9f66275 commit 50f89ee
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 591 deletions.
18 changes: 16 additions & 2 deletions ch_integration_tests/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 3 additions & 2 deletions ch_integration_tests/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,10 @@ license = "LICENSE-APACHE"
[dev-dependencies]
dirs = "3.0.1"
epoll = "4.3.1"
libc = "0.2.90"
libc = ">=0.2.91"
lazy_static= "1.4.0"
ssh2 = "0.9.1"
test_infra = { git = "https://github.com/cloud-hypervisor/cloud-hypervisor" }
uuid = { version = "0.8", features = ["v4"] }
vmm-sys-util = "0.8.0"
wait-timeout = "0.2.0"
wait-timeout = "0.2.0"
6 changes: 1 addition & 5 deletions ch_integration_tests/tests/integration.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,9 @@
#[macro_use]
extern crate lazy_static;

#[cfg(test)]
#[allow(dead_code)]
mod test_infra;

#[cfg(test)]
mod tests {
use crate::test_infra::{
use test_infra::{
DiskConfig, DiskType, GuestNetworkConfig, UbuntuDiskConfig, WaitForBootError,
};
use std::io::{self, Write};
Expand Down
Loading

0 comments on commit 50f89ee

Please sign in to comment.