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
Joseph Crail
d4994233c7
whoami: remove unused import
2016-05-22 04:39:02 -04:00
Joseph Crail
5b77b82884
appveyor: disable Unix features
2016-05-22 04:22:54 -04:00
Joseph Crail
7ef4bb37a8
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.
2016-05-22 03:46:54 -04:00
Joseph Crail
dfa8777540
appveyor: use only built artifacts
2016-05-21 21:46:08 -04:00
Heather
583ed341a7
Merge pull request #880 from knight42/fix
...
Fix #879
2016-05-21 18:08:35 +04:00
Knight
a196bebd1b
uucore: add disp_err macro
2016-05-21 18:19:13 +08:00
Knight
aac1d40f64
dircolors: bypass the missing SHELL on windows
2016-05-21 18:18:40 +08:00
Heather
de910b266d
Merge pull request #878 from jbcrail/update-appveyor-build
...
Update Appveyor build
2016-05-21 09:01:46 +04:00
Joseph Crail
61fd13078a
appveyor: re-add build artifacts
2016-05-20 21:37:14 -04:00
Joseph Crail
77783180a0
appveyor: simplify build without make
2016-05-20 21:16:27 -04:00
Michael Gehring
41d563c4b9
Merge pull request #877 from jbcrail/pin_vecmap_for_tr
...
tr: update vec_map to 0.6.0
2016-05-15 08:12:20 +02:00
Joseph Crail
cd89a6e5c7
tr: update vec_map to 0.6.0
...
Fixes #865
2016-05-14 22:56:24 -04:00
Heather
ca78706246
Merge pull request #875 from knight42/dircolors
...
Implement dircolors
2016-05-10 22:18:40 +04:00
Heather
9534bf3f17
Merge pull request #872 from knight42/mknod
...
Implement mknod
2016-05-10 22:17:33 +04:00
Knight
92e95c7263
dircolors: tests added
2016-05-11 00:43:51 +08:00
Knight
ad9bfcef5b
dircolors: implemented
...
TODO: More test case
2016-05-11 00:43:51 +08:00
Knight
c9f363d09c
Add dircolors
2016-05-11 00:43:51 +08:00
Knight
6592e0308c
mknod: use libc@0.2.4 to avoid unresolved name
2016-05-08 16:24:11 +08:00
Knight
78f9351e71
mknod: correct the help
2016-05-07 16:12:01 +08:00
Knight
948675b0e3
README: remove mknod from TODO list
2016-05-07 16:10:48 +08:00
Knight
467561da36
mknod: implemented
2016-05-07 15:21:37 +08:00