Commit graph

2096 commits

Author SHA1 Message Date
Joseph Crail
9f1dc98925 Add initial implementation for ln.
There are several areas needing improvement:

1) add tests for hard links
2) add implementation for uncommon flags (-d, -L, -n, -P, -r)
3) align error messages more closely with GNU implementation
2015-07-05 14:52:31 -04:00
Heather
942fe0d7e0 Merge pull request #643 from jbcrail/fix-mv-help
Fix alignment of mv help.
2015-07-02 09:23:22 +03:00
Joseph Crail
951be1bfaa Fix alignment of mv help. 2015-07-01 22:09:33 -04:00
Joseph Crail
dd97629a0e Merge pull request #640 from remram44/mv-strip-trailing-slashes
Implement mv's --strip-trailing-slashes
2015-06-30 23:31:03 -04:00
Remi Rampin
85cb9aca94 Add a test 2015-06-30 23:17:16 -04:00
Joseph Crail
ab85f5a79d Merge pull request #641 from remram44/fix-timeout
Fix timeout
2015-06-30 22:53:30 -04:00
Joseph Crail
633a429e43 Merge pull request #642 from remram44/allow-stable-failure
Allow failure on Rust 1.0.0 (broken right now)
2015-06-30 22:49:14 -04:00
Remi Rampin
629eaf7770 Allow failure on Rust 1.0.0 (broken right now) 2015-06-30 19:02:13 -04:00
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