mirror of
https://github.com/rust-lang/cargo
synced 2024-10-13 19:22:33 +00:00
8cce8996be
This commit removes all distributed executables except for `cargo`. All builtin subcommands are implemented through library calls, and the fallback methods are retained to maintain extensability through new subcommands. Closes #393
14 lines
283 B
Rust
14 lines
283 B
Rust
use support::{project, execs};
|
|
use hamcrest::assert_that;
|
|
use cargo;
|
|
|
|
fn setup() {}
|
|
|
|
test!(simple {
|
|
let p = project("foo");
|
|
|
|
assert_that(p.cargo_process("version"),
|
|
execs().with_status(0).with_stdout(format!("{}\n",
|
|
cargo::version()).as_slice()));
|
|
})
|