mirror of
https://github.com/uutils/coreutils
synced 2024-11-16 09:48:03 +00:00
e72ec4a5bb
Add install utility skeleton source, based on mv, including the getopts setup mirroring GNU's `man install` documentation. Also add a single test and build system code.
21 lines
433 B
Rust
21 lines
433 B
Rust
extern crate libc;
|
|
extern crate time;
|
|
extern crate kernel32;
|
|
extern crate winapi;
|
|
extern crate filetime;
|
|
|
|
use self::filetime::*;
|
|
use common::util::*;
|
|
|
|
static UTIL_NAME: &'static str = "install";
|
|
|
|
#[test]
|
|
fn test_install_help() {
|
|
let (at, mut ucmd) = testing(UTIL_NAME);
|
|
|
|
let result = ucmd.arg("--help").run();
|
|
assert_empty_stderr!(result);
|
|
assert!(result.success);
|
|
|
|
// assert!(result.stdout.contains("Usage:"));
|
|
}
|