Commit graph

2429 commits

Author SHA1 Message Date
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
Joseph Crail
1be9c41105 Upgrade regex cargo. 2015-05-29 00:50:32 -04:00
Joseph Crail
2bde7872c5 Add tests for base64. 2015-05-28 23:25:13 -04:00
Joseph Crail
1c405d9c91 Remove duplicate header in error messages. 2015-05-28 23:23:54 -04:00
Joseph Crail
eb2247fc1c Merge pull request #623 from ctjhoa/master
Fix hostname
2015-05-27 20:35:09 -04:00
Camille TJHOA
72d8ab0506 Fix hostname 2015-05-27 23:55:25 +02:00
Joseph Crail
0bbefa913e Merge pull request #622 from himikof/fix-env
Fix `env -` option handling case
2015-05-26 18:45:54 -04:00
Nikita Ofitserov
abd3e1e8e4 Fix 'env -' case 2015-05-27 00:51:14 +03:00
Nikita Ofitserov
c32e21fc01 Add a test for the 'env -' case 2015-05-27 00:49:50 +03:00
Heather
bff831f376 Merge pull request #621 from jbcrail/standardize-name-version
Standardize display of utility name and version.
2015-05-25 22:10:08 +03:00