debian/rust-vendor/proc-macro-crate/tests/workspace_deps.rs
raw| 1 | use std::{path::PathBuf, process::Command}; |
| 2 | |
| 3 | #[test] |
| 4 | fn workspace_deps_working() { |
| 5 | let manifest_dir = |
| 6 | PathBuf::from(env!("CARGO_MANIFEST_DIR")).join("tests/workspace_deps/Cargo.toml"); |
| 7 | |
| 8 | assert!(Command::new("cargo") |
| 9 | .arg("build") |
| 10 | .arg("--all") |
| 11 | .arg(format!("--manifest-path={}", manifest_dir.display())) |
| 12 | .spawn() |
| 13 | .unwrap() |
| 14 | .wait() |
| 15 | .unwrap() |
| 16 | .success()); |
| 17 | } |