1
Fork 0
mirror of https://github.com/RGBCube/uutils-coreutils synced 2025-07-28 03:27:44 +00:00

Implement skeleton install utility

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.
This commit is contained in:
Ben Eills 2016-07-12 20:56:21 +02:00
parent 61cf4e4fba
commit e72ec4a5bb
8 changed files with 174 additions and 0 deletions

21
tests/test_install.rs Normal file
View file

@ -0,0 +1,21 @@
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:"));
}

View file

@ -27,6 +27,7 @@ macro_rules! unix_only {
unix_only! {
"chmod", test_chmod;
"chown", test_chown;
"install", test_install;
"mv", test_mv;
"pathchk", test_pathchk;
"stdbuf", test_stdbuf;