mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-27 11:07:44 +00:00
tests: consolidate into one crate
The main motivation is to move toward running those tests for a specific target, that is, if a test won't run on Windows, then we shouldn't build it. This was previously the default behavior and prevented a successful run on AppVeyor. I borrowed this pattern from the tests in the Cargo project.
This commit is contained in:
parent
dfa8777540
commit
7ef4bb37a8
56 changed files with 128 additions and 207 deletions
69
tests/tests.rs
Normal file
69
tests/tests.rs
Normal file
|
@ -0,0 +1,69 @@
|
|||
extern crate filetime;
|
||||
extern crate libc;
|
||||
extern crate rand;
|
||||
extern crate regex;
|
||||
extern crate tempdir;
|
||||
extern crate time;
|
||||
extern crate uu_tail;
|
||||
|
||||
#[cfg(windows)] extern crate kernel32;
|
||||
#[cfg(windows)] extern crate winapi;
|
||||
|
||||
#[macro_use]
|
||||
mod common;
|
||||
|
||||
#[path="../src/factor/sieve.rs"]
|
||||
mod sieve;
|
||||
|
||||
#[cfg(unix)] mod test_chmod;
|
||||
#[cfg(unix)] mod test_mv;
|
||||
#[cfg(unix)] mod test_stdbuf;
|
||||
#[cfg(unix)] mod test_touch;
|
||||
#[cfg(unix)] mod test_unlink;
|
||||
|
||||
mod test_base64;
|
||||
mod test_basename;
|
||||
mod test_cat;
|
||||
mod test_cksum;
|
||||
mod test_comm;
|
||||
mod test_cp;
|
||||
mod test_cut;
|
||||
mod test_dircolors;
|
||||
mod test_dirname;
|
||||
mod test_echo;
|
||||
mod test_env;
|
||||
mod test_expr;
|
||||
mod test_factor;
|
||||
mod test_false;
|
||||
mod test_fold;
|
||||
mod test_hashsum;
|
||||
mod test_head;
|
||||
mod test_link;
|
||||
mod test_ln;
|
||||
mod test_ls;
|
||||
mod test_mkdir;
|
||||
mod test_mktemp;
|
||||
mod test_nl;
|
||||
mod test_od;
|
||||
mod test_paste;
|
||||
mod test_printf;
|
||||
mod test_ptx;
|
||||
mod test_pwd;
|
||||
mod test_readlink;
|
||||
mod test_realpath;
|
||||
mod test_rm;
|
||||
mod test_rmdir;
|
||||
mod test_seq;
|
||||
mod test_sort;
|
||||
mod test_split;
|
||||
mod test_sum;
|
||||
mod test_tac;
|
||||
mod test_tail;
|
||||
mod test_test;
|
||||
mod test_tr;
|
||||
mod test_true;
|
||||
mod test_truncate;
|
||||
mod test_tsort;
|
||||
mod test_unexpand;
|
||||
mod test_uniq;
|
||||
mod test_wc;
|
Loading…
Add table
Add a link
Reference in a new issue