Commit graph

1388 commits

Author SHA1 Message Date
Remi Rampin
0691965d63 Use ChildExt to wait from timeout.rs 2015-06-30 18:45:13 -04:00
Remi Rampin
dc40480e6e Switch wait_or_timeout() to f64 2015-06-30 18:44:32 -04:00
Remi Rampin
d806ab4809 Use ChildExt to kill from timeout.rs 2015-06-30 18:44:30 -04:00
Remi Rampin
cce3d5171d ChildExt for send_signal() and wait_or_timeout() 2015-06-30 18:42:51 -04:00
Remi Rampin
13f5994e15 Rename time.rs to parse_time.rs
Conflicts with crate time.
2015-06-30 18:42:51 -04:00
Remi Rampin
28302555b8 Replace missing signal() by libc kill() directly 2015-06-30 18:42:50 -04:00
Remi Rampin
66a40d555d Update timeout.rs to new io 2015-06-30 18:42:19 -04:00
Remi Rampin
0ed57b3896 Fix simple typo in mv.rs 2015-06-30 15:21:40 -04:00
Remi Rampin
b8d5602655 Implement mv's --strip-trailing-slashes 2015-06-30 13:24:19 -04:00
Heather
e7685e6fe9 Merge pull request #639 from jbcrail/update-nightly
Update to nightly build.
2015-06-24 08:11:44 +03:00
Joseph Crail
690a483a8a Update to nightly build.
I updated the library dependencies, features, and deprecated methods.
2015-06-23 23:00:00 -04:00
Heather
ad8724e84e Merge pull request #638 from jbcrail/add-tac-tests
Add tests for tac.
2015-06-07 09:44:32 +03:00
Joseph Crail
dcfc23498e Add tests for tac. 2015-06-06 22:33:56 -04:00
Heather
369ec58578 Merge pull request #637 from jbcrail/fix-ptx-tests-on-osx
Fix ptx tests on OS X.
2015-06-06 07:32:42 +03:00
Joseph Crail
9bc33a43f9 Fix ptx tests on OS X.
For those systems that don't have ptx installed by default, I modified
the tests to use pre-calculated results to check against the GNU
implementation.
2015-06-05 19:55:02 -04:00
Heather
4f3e8e6f3d Merge pull request #636 from jbcrail/update-dependencies
Update dependencies.
2015-06-05 06:56:24 +03:00
Joseph Crail
cf7db989e7 Update dependencies.
I added the regex-syntax crate to the dependencies for hashsum, nl, and
ptx.
2015-06-04 22:37:51 -04:00
Heather
b52c395159 Merge pull request #635 from jbcrail/fix-split-tests
Fix split tests.
2015-06-04 21:56:43 +03:00
Joseph Crail
0df4918f2d Fix split tests.
I added an additional regex dependency and converted strings to
Vec<u8>'s for the assertions.
2015-06-04 13:57:17 -04:00
Heather
9cfe018e66 Merge pull request #634 from jbcrail/add-realpath-tests
Refactor and add tests for realpath.
2015-06-04 09:47:05 +03:00
Joseph Crail
23cb9541e7 Add initial tests for realpath. 2015-06-04 00:04:37 -04:00
Joseph Crail
4aed2eafa8 Move common methods into test library. 2015-06-04 00:04:10 -04:00
Joseph Crail
c3802bb69c Add helper method for creating symlinks. 2015-06-04 00:03:25 -04:00
Joseph Crail
43d3ec7bbb Ignore static libraries from build. 2015-06-03 12:48:23 -04:00
Joseph Crail
d457f796f8 Update README to reflect completion of ptx. 2015-06-03 02:31:25 -04:00
Heather
7bf48c8c06 Merge pull request #633 from jbcrail/refactor-wc
Refactor wc.
2015-06-03 09:13:14 +03:00
Joseph Crail
2dd90af92a Add initial tests. 2015-06-03 01:41:56 -04:00
Joseph Crail
1e22455032 Align formatting with GNU implementation. 2015-06-03 01:41:56 -04:00
Joseph Crail
ac8d972ed9 Refactor wc settings into dedicated struct. 2015-06-03 01:41:56 -04:00
Heather
acaa1d18a7 Merge pull request #632 from jbcrail/add-verbose-to-head
Add quiet and verbose flags to head.
2015-06-01 08:02:37 +03:00
Joseph Crail
b25a344566 Add quiet and verbose flags to head. 2015-05-31 20:26:57 -04:00
Heather
3dc4191905 Merge pull request #629 from jbcrail/flush-stdout-from-main
Ensure any pending stdout writes are flushed.
2015-05-31 08:47:10 +03:00
Heather
6fa4cf8e74 Merge pull request #630 from jbcrail/refactor-test-method
Refactor method to auto-convert into byte array.
2015-05-31 08:46:47 +03:00
Heather
af21772bd4 Merge pull request #631 from jbcrail/update-head
Update head.
2015-05-31 08:46:24 +03:00
Joseph Crail
66e109f683 Fix broken tests. 2015-05-30 20:53:07 -04:00
Joseph Crail
62b9dc0326 Refactor method to auto-convert into byte array.
When creating tests, we could pass a String, &str, or [u8] to the
standard input. Previously, all arguments had to be manually converted
to a reference to a [u8]. This update makes it more ergonomic.
2015-05-30 19:12:49 -04:00
Joseph Crail
174b834e67 Ensure any pending stdout writes are flushed.
Since stdout is line-buffered by default, we need to ensure any pending
writes are flushed before exiting. Ideally, this should be enforced by
each utility. Since all utilities are wrapped by mkmain, this was a
convenient location to enforce this behavior. I previously was handling
this on a case-by-case basis.

See: https://github.com/rust-lang/rust/issues/23818
2015-05-30 19:11:44 -04:00
Joseph Crail
133a6c5563 Add initial tests for head. 2015-05-30 19:10:15 -04:00
Joseph Crail
1580daea7c Refactor utility settings into dedicated struct.
This will make it easier to add support for additional options, such as
verbosity and negative byte/line counts.
2015-05-30 19:10:15 -04:00
Joseph Crail
b008ed103d Improve descriptions of available options. 2015-05-30 19:10:15 -04:00
Joseph Crail
826d8a6530 Add newline when printing lines. 2015-05-30 19:10:15 -04:00
Joseph Crail
505060107c Merge pull request #624 from dokaptur/ptx
initial ptx commit
2015-05-30 15:04:02 -04:00
dokaptur
5aa68eb716 printing version unified and tests 2015-05-30 13:48:53 +02:00
dokaptur
ea7df03c0a initial ptx commit 2015-05-30 09:35:28 +02:00
Heather
c7aa7e041f Merge pull request #627 from jbcrail/refactor-tests
Move helper methods for tests to separate module.
2015-05-30 08:19:33 +03:00
Heather
6116415c07 Merge pull request #628 from jbcrail/flush-stdout
Flush pending stdout writes.
2015-05-30 08:15:56 +03:00
Joseph Crail
17e732f0fd Flush pending stdout writes. 2015-05-29 13:51:11 -04:00
Joseph Crail
edb3295303 Move helper methods for tests to separate module. 2015-05-29 13:47:00 -04:00
Heather
f84d5462a3 Merge pull request #625 from jbcrail/add-base64-tests
Add tests for base64.
2015-05-29 07:57:35 +03:00
Heather
b4d36cd228 Merge pull request #626 from jbcrail/upgrade-regex-cargo
Upgrade regex cargo.
2015-05-29 07:57:19 +03:00