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
Joseph Crail
28e00cbd78
Standardize display of utility name and version.
2015-05-25 14:50:15 -04:00
Heather
a1017a24dd
Merge pull request #620 from jbcrail/add-manual-flush
...
Add macro to manually flush a writer.
2015-05-23 10:45:55 +03:00
Joseph Crail
d558e37288
Add macro to manually flush a writer.
...
I built upon the pipe_* macros, adding pipe_flush!() to flush an
optional writer (default to stdout if no writer is given).
2015-05-23 03:31:42 -04:00
Heather
9ee7d96e5b
Merge pull request #619 from jbcrail/replace-utf8-ellipsis
...
Replace UTF-8 ellipsis character w/ ASCII periods.
2015-05-23 09:06:56 +03:00
Heather
825444aa13
Merge pull request #618 from jbcrail/fix-flush-bug-for-echo
...
Fix failure to print stdout for echo.
2015-05-23 09:06:38 +03:00
Joseph Crail
2ef14832dc
Replace UTF-8 ellipsis character w/ ASCII periods.
2015-05-23 01:56:33 -04:00
Joseph Crail
07d57ac109
Fix failure to print stdout for echo.
...
Upon program termination, pending stdout writes were not automatically
flushed. When newlines are disabled, I force a flush to stdout.
2015-05-22 21:49:33 -04:00
Heather
98a86e60c8
Merge pull request #617 from vinipsmaker/patch-1
...
cat.rs: removing need for mut variable
2015-05-22 20:06:29 +03:00
Vinícius dos Santos Oliveira
c17f925b11
cat.rs: removing need for mut variable
2015-05-22 13:53:13 -03:00
Heather
ca53d2beb3
Merge pull request #616 from jbcrail/use-getopts-cargo-3
...
Switch to external getopts cargo (part 3).
2015-05-22 07:38:17 +03:00