Knight
580667295c
stat: use struct libc::statfs now
2016-06-05 11:38:56 +08:00
Knight
48968f3d8a
stat: Add tests
2016-06-05 11:38:56 +08:00
Steve Smith
8161bb7fe1
Flag uname/group functions as unix-specific and add NO-OP Windows versions.
2016-06-04 15:30:39 +01:00
Steve Smith
ce7f23bcc4
Fill in group name for ls
2016-06-04 15:14:59 +01:00
Steve Smith
04522760f1
Break cstring->String conversion out into function
2016-06-04 15:12:40 +01:00
Steve Smith
6179b89bcc
Add conversion of UID to username for ls
2016-06-04 14:50:52 +01:00
Knight
ab17a5e544
stat: Add entries
2016-06-04 13:33:08 +08:00
Knight
fd652bc285
stat: TODO: more tests
2016-06-04 13:33:08 +08:00
Heather
73fdc4824f
Merge pull request #894 from kwantam/master
...
fix fmt's behavior for blank prefixed lines
2016-06-02 08:28:52 +04:00
kwantam
e2cb5eec0a
fix fmt's behavior for blank prefixed lines
2016-06-01 18:19:53 -04:00
Knight
e125118510
stat: find mount point
2016-06-01 14:47:37 +08:00
Heather
539bd20319
Merge pull request #892 from mdsn/follow-stdin
...
Follow stdin
2016-06-01 08:30:01 +04:00
Knight
de4a95accb
stat: almost done
...
TODO:
* print escaped char
* find mount point
* more test cases
2016-06-01 09:52:55 +08:00
Mariano Casco
abb9501894
tail: test -f with no files
2016-05-31 17:40:06 -03:00
Knight
03ce99b455
stat: fsext.rs: remove useless brackets
2016-06-01 01:24:13 +08:00
Mariano Casco
79d281394f
tail: -f option on stdin
...
The follow() function takes slices instead of the actual vectors, and in
the case of unbounded_tail the single bufReader is on stdin.
2016-05-31 12:37:03 -03:00
Mariano Casco
fafab00cd8
tail: remove extra println
2016-05-31 10:52:53 -03:00
Heather
f82ba16dc5
Merge pull request #890 from mdsn/follow-multiple
...
tail: Follow multiple files with the -f option
2016-05-31 13:55:24 +04:00
Knight
676f00fea3
stat: add main.rs
2016-05-31 13:27:45 +08:00
Knight
0926cd43ac
stat: add fsext.rs
...
Mainly includes the pretty-* functions, turning the file types, file system types and
time into human-readable form.
2016-05-31 13:22:19 +08:00
Knight
3202c18c54
stat: add Cargo.toml
2016-05-31 13:21:55 +08:00
Mariano Casco
9c584bab9d
tail: test following multiple files
...
The test_follow_multiple() test verifies that input is read upon append
on both files and that headers are printed when expected.
2016-05-30 17:34:53 -03:00
Mariano Casco
f9627e02d0
tail: print empty line between headers
2016-05-30 17:33:16 -03:00
Mariano Casco
440fb867bc
tail: no headers when following a single file
...
Headers should only be printed when following more than one file. This
commit makes the test_follow() test pass again.
2016-05-30 16:43:14 -03:00
Mariano Casco
8866e05e98
tail: print headers when following multiple files
...
Before each line of content is printed, check if it's from a different
file than the last one we printed for. If so, print a '==> file <=='
header to separate the output in the way tail does.
2016-05-30 16:12:00 -03:00
Mariano Casco
966bfde70f
tail: follow multiple files
...
If multiple files are passed as arguments with the -f option, a vector
of BufReaders is built as the files are first tailed, so that follow()
can take control for the rest of the time the program is running.
follow() loops over each reader and prints all new available content on
each file before moving on to the next.
2016-05-30 16:11:49 -03:00
Mariano Casco
2132889940
tail: don't follow() as part of bounded_tail
...
To get the -f option to follow multiple files, bounded_tail should just
tail a single file and return, instead of blocking processing of other
files by calling follow() (which loops forever).
2016-05-30 16:11:32 -03:00
Heather
6a4efdc842
Merge pull request #889 from jbcrail/update-deps
...
Fix Windows build on all supported targets
2016-05-25 08:14:50 +04:00
Joseph Crail
d8d6f99dd1
cargo: update library dependencies
2016-05-24 22:08:03 -04:00
Joseph Crail
b33a4f5b63
Merge pull request #888 from tshepang/warnings
...
remove compiler warnings
2016-05-24 21:54:52 -04:00
Tshepang Lekhonkhobe
1476446ddf
remove compiler warnings
2016-05-24 22:30:48 +02:00
Heather
ccf604f1f9
Merge pull request #887 from jbcrail/fix-cksum-overflow
...
cksum: resolve msvc unsafe issue
2016-05-24 08:07:29 +04:00
Nathan Ross
e827e80a9f
cksum: resolve msvc unsafe issue
...
Fixes #886
2016-05-23 22:06:37 -04:00
Heather
145f2efe89
Merge pull request #885 from jbcrail/refactor-tests
...
Refactor and fix tests
2016-05-23 09:35:34 +04:00
Joseph Crail
56c9ccc347
tests/common: remove prefixed chars on Windows
2016-05-22 22:54:45 -04:00
Joseph Crail
efce1ac3f9
appveyor: don't double build
...
The integration tests build the multicall executable a second time, so
we disable the original build and only run the tests.
2016-05-22 22:54:45 -04:00
Joseph Crail
678a05d90f
mktemp: add build for all systems
2016-05-22 22:54:39 -04:00
Heather
374e3e6ea2
Merge pull request #884 from modelorganism/od-formats
...
od: take more format options, respect their order.
2016-05-23 01:25:47 +04:00
Christopher Ian Stern
e909e665f0
od: take more format options, respect their order.
2016-05-22 15:46:20 -05:00
Joseph Crail
53c62db8d6
pathchk: make Unix only
2016-05-22 16:41:36 -04:00
Joseph Crail
af6c88f676
mktemp: fix whitespace
2016-05-22 16:41:36 -04:00
Joseph Crail
b132f65126
mktemp: build standalone executable
2016-05-22 16:41:36 -04:00
Joseph Crail
b50fc88ead
mktemp: use tempfile crate from crates.io
2016-05-22 16:41:36 -04:00
Joseph Crail
a7a10f357a
tests: remove scoped files
...
Scoped files were deprecated by scoped temporary directories used by the
test harness.
2016-05-22 15:31:02 -04:00
Joseph Crail
8d42cecc5f
tests: remove unused comment
2016-05-22 15:15:57 -04:00
Joseph Crail
6652e6b57d
tests: un-hardcode executable artifact
2016-05-22 15:10:46 -04:00
Joseph Crail
de7b6202a8
tests: move pathchk into new format
2016-05-22 15:10:16 -04:00
Joseph Crail
89b600628d
tests: move macros into separate module
2016-05-22 15:10:06 -04:00
Heather
bdc1ca7426
Merge pull request #882 from jbcrail/fix-windows-build
...
Improve Windows build
2016-05-22 16:02:03 +04:00
ibabushkin
d504ae18c9
pathchk implemented (see #841 ) ( #860 )
...
* Added pathchk
2016-05-22 15:59:57 +04:00