coreutils/tests
Nick Fitzgerald 3972c6eb53 tail: Clean up and test suffix multiplier
Makes `parse_size` return a `Result` where the `Err` part indicates whether
there was a parsing error, or the parse size is too big to store. Also makes the
value parsed a `u64` rather than a `usize`.

Adds unit tests for `parse_size` and integration tests using the suffix
multiplier in a number passed with the `-n` flag.
2016-04-02 14:16:11 -07:00
..
common tests: remove unused method 2016-03-28 23:25:50 -04:00
fixtures tail: Implement tail -z. 2016-04-02 12:32:33 +02:00
base64.rs base64: tests for incorrect wrap args 2016-02-16 16:47:09 -05:00
basename.rs basename: tests for bad inputs 2016-02-16 16:47:09 -05:00
cat.rs tests/cat: --squeeze-blank test 2016-02-17 08:06:32 +01:00
chmod.rs chmod: fix reference option 2016-03-10 20:34:49 +01:00
cksum.rs rewrite tests for cargo compat, decoupled directory, output handling 2015-11-23 02:04:15 -05:00
comm.rs comm: additional tests and status/stderr checking for existing tests 2016-02-22 09:59:06 -05:00
cp.rs rewrite tests for cargo compat, decoupled directory, output handling 2015-11-23 02:04:15 -05:00
cut.rs rewrite tests for cargo compat, decoupled directory, output handling 2015-11-23 02:04:15 -05:00
dirname.rs dirname: add some tests 2015-12-21 11:17:37 +01:00
echo.rs rewrite tests for cargo compat, decoupled directory, output handling 2015-11-23 02:04:15 -05:00
env.rs tests/env: don't assume vars are ordered 2015-12-22 12:44:05 +01:00
expr.rs expr: add basic tests 2015-12-22 14:10:43 +01:00
factor.rs rewrite tests for cargo compat, decoupled directory, output handling 2015-11-23 02:04:15 -05:00
false.rs rewrite tests for cargo compat, decoupled directory, output handling 2015-11-23 02:04:15 -05:00
fold.rs rewrite tests for cargo compat, decoupled directory, output handling 2015-11-23 02:04:15 -05:00
hashsum.rs Split utility files into separate library. 2015-11-24 22:20:27 -05:00
head.rs rewrite tests for cargo compat, decoupled directory, output handling 2015-11-23 02:04:15 -05:00
link.rs rewrite tests for cargo compat, decoupled directory, output handling 2015-11-23 02:04:15 -05:00
ln.rs more ergonomic testing 2016-02-18 13:24:36 -05:00
mkdir.rs rewrite tests for cargo compat, decoupled directory, output handling 2015-11-23 02:04:15 -05:00
mktemp.rs tests/mktemp: fix build on nightly 2016-02-14 03:31:10 +01:00
mv.rs more ergonomic testing 2016-02-18 13:24:36 -05:00
nl.rs rewrite tests for cargo compat, decoupled directory, output handling 2015-11-23 02:04:15 -05:00
paste.rs rewrite tests for cargo compat, decoupled directory, output handling 2015-11-23 02:04:15 -05:00
printf.rs allow feature-gated integration tests for unimplemented functionality 2016-02-15 23:48:37 -05:00
ptx.rs rewrite tests for cargo compat, decoupled directory, output handling 2015-11-23 02:04:15 -05:00
pwd.rs tests: fix tests that broke when using a symlinked /tmp 2016-01-10 02:50:39 -08:00
readlink.rs tests/{readlink, realpath}: fix tests on Windows 2016-03-28 23:24:40 -04:00
realpath.rs tests/{readlink, realpath}: fix tests on Windows 2016-03-28 23:24:40 -04:00
rm.rs more ergonomic testing 2016-02-18 13:24:36 -05:00
rmdir.rs rewrite tests for cargo compat, decoupled directory, output handling 2015-11-23 02:04:15 -05:00
seq.rs rewrite tests for cargo compat, decoupled directory, output handling 2015-11-23 02:04:15 -05:00
sort.rs tests/sort: simplify input to helper 2016-03-29 00:58:24 -04:00
split.rs rewrite tests for cargo compat, decoupled directory, output handling 2015-11-23 02:04:15 -05:00
stdbuf.rs tests/stdbuf: disable on non-linux os 2015-12-22 12:55:51 +01:00
sum.rs sum: fix sysv_stdin testcase 2015-11-25 09:58:58 +01:00
tac.rs rewrite tests for cargo compat, decoupled directory, output handling 2015-11-23 02:04:15 -05:00
tail.rs tail: Clean up and test suffix multiplier 2016-04-02 14:16:11 -07:00
test.rs rewrite tests for cargo compat, decoupled directory, output handling 2015-11-23 02:04:15 -05:00
touch.rs tests/touch: fix tests 2016-01-02 09:55:20 +01:00
tr.rs more ergonomic testing 2016-02-18 13:24:36 -05:00
true.rs rewrite tests for cargo compat, decoupled directory, output handling 2015-11-23 02:04:15 -05:00
truncate.rs rewrite tests for cargo compat, decoupled directory, output handling 2015-11-23 02:04:15 -05:00
tsort.rs rewrite tests for cargo compat, decoupled directory, output handling 2015-11-23 02:04:15 -05:00
unexpand.rs rewrite tests for cargo compat, decoupled directory, output handling 2015-11-23 02:04:15 -05:00
uniq.rs uniq: add tests 2016-02-29 11:07:16 +05:30
unlink.rs rewrite tests for cargo compat, decoupled directory, output handling 2015-11-23 02:04:15 -05:00
wc.rs rewrite tests for cargo compat, decoupled directory, output handling 2015-11-23 02:04:15 -05:00