Commit graph

2431 commits

Author SHA1 Message Date
Nathan Ross
c91fd51197 uucore: add message templates 2016-08-08 03:05:36 -04:00
mpkh
c48f6cefc6 Merge pull request #950 from nathanross/cut-original-help-and-usage
cut: provide original-work help message and option descriptions
2016-08-08 10:55:10 +04:00
Nathan Ross
fae1e92767 tests/common: more communicative assertion failure messages
often when stdout is wrong, differences in stderr are
more useful for determining the cause
2016-08-08 02:54:22 -04:00
Nathan Ross
ea6b0e55ad cut: provide original-work help message and option descriptions 2016-08-07 23:16:15 -04:00
Nathan Ross
77bd2887c2 Merge pull request #948 from pthariensflame/patch-1
Allow choice of `install` program
2016-08-07 22:10:10 -04:00
Alexander Altman
1543199b50 Allow choice of install program
This permits the use of, *e.g.*, `ginstall` or `uu-install`.
2016-08-07 18:46:43 -07:00
Nathan Ross
1880c46acd Merge pull request #946 from ChrisNikkel/feature/zero_terminated
uniq: add -z option to allow for zero terminated input and output
2016-08-06 22:49:10 -04:00
Chris Nikkel
cdfdc3a2bd uniq: add command line option -z for zero terminated input and output 2016-08-06 18:41:47 -07:00
Chris Nikkel
c0b2da7c01 uniq: add test for zero terminated input and output 2016-08-06 18:41:39 -07:00
mpkh
b290ab2ca5 Merge pull request #944 from nathanross/tests-cut-incr-feature-coverage
tests/cut: positive testcases for feature complete
2016-08-07 02:06:52 +04:00
Nathan Ross
cb6f84e3d8 tests/cut: positive testcases for feature complete 2016-08-06 17:11:54 -04:00
Jian Zeng
7ff57d6b66 Merge pull request #942 from nathanross/fix-appveyor
ci: fix appveyor cargo test call
2016-08-07 02:28:58 +08:00
Jian Zeng
8cb6b141f1 Update README 2016-08-07 02:02:52 +08:00
Nathan Ross
3048b5d551 ci: fix appveyor cargo test call 2016-08-06 13:52:57 -04:00
mpkh
b85b8dc18c Merge pull request #940 from knight42/cleanup-tests
Cleanup tests
2016-08-06 21:51:30 +04:00
Knight
a23f1a13e7 Remove useless crates 2016-08-07 01:23:49 +08:00
Knight
cfc28ebc05 tests: extern crates in separated test modules 2016-08-07 01:12:19 +08:00
Nathan Ross
2eeb7b77cc Merge pull request #939 from knight42/base32
Implement base32 & unify base64
2016-08-06 13:03:48 -04:00
Knight
0d48744c0f base64: simplified 2016-08-07 00:41:53 +08:00
Knight
b0097d0565 base32: add tests 2016-08-07 00:41:53 +08:00
Knight
9c7ff133dc base32: implemented 2016-08-07 00:41:52 +08:00
Knight
276d2ccd53 uucore: add module encoding 2016-08-07 00:41:52 +08:00
Knight
7c5416799e base32: add entries 2016-08-06 11:45:03 +08:00
Jian Zeng
5c97e652a0 Merge pull request #938 from frewsxcv/warnings
Address a few warnings.
2016-08-05 21:36:24 +08:00
Corey Farwell
01da600f71 Remove unused variable binding. 2016-08-05 09:06:39 -04:00
Corey Farwell
8fe3eac087 Remove unused imports. 2016-08-05 09:05:12 -04:00
Nathan Ross
6bae2688f3 Merge pull request #937 from frewsxcv/refactor-timeout
Cleanup logic around `timeout` exit status handling.
2016-08-04 22:42:05 -04:00
Corey Farwell
eca7543c61 Cleanup logic around wait_or_timeout exit status handling. 2016-08-04 21:30:50 -04:00
Nathan Ross
a8f5b430df Merge pull request #935 from frewsxcv/refactor-time
Prefer handling `Duration` over `f32` when dealing with times.
2016-08-04 21:17:38 -04:00
Nathan Ross
c2fa190705 Merge pull request #936 from frewsxcv/pink
Add missing pinky entry in Cargo.lock.
2016-08-04 20:58:11 -04:00
Corey Farwell
3e6a560b9c Add missing pinky entry in Cargo.lock. 2016-08-04 19:47:50 -04:00
Corey Farwell
99fda0b716 Prefer handling Duration over f32 when dealing with times.
Also refactored out usage of the `time` crate in `uucore`.
2016-08-04 19:21:30 -04:00
Jian Zeng
57a596ee8a Merge pull request #934 from knight42/fix-pinky
Update uucore::utmpx
2016-08-05 00:01:56 +08:00
Knight
d4ac9f22fc uptime & users: move functions extern to uucore::utmpx 2016-08-04 23:39:30 +08:00
Knight
833d50e192 pinky: obtain correct timestamp 2016-08-04 23:39:30 +08:00
Knight
0020d5c80c uucore: update utmpx 2016-08-04 22:37:54 +08:00
Knight
c0a9e1f0eb Fix #842 2016-08-04 21:27:32 +08:00
mpkh
97fcf9026c Merge pull request #933 from frewsxcv/timeout
Use `setpgid` from libc.
2016-08-04 16:56:46 +04:00
Corey Farwell
160f7ed5f4 Use setpgid from libc. 2016-08-04 08:34:33 -04:00
Nathan Ross
63c17e5b42 Merge pull request #932 from alsuren/sort--stable
implement sort --stable
2016-08-03 06:52:39 -04:00
David Laban
6751d2c708 implement sort --stable
Made a new function sort_by(lines, compare_fns), which accepts a
list of compare_fns and calls lines.sort_by() with a closure that
calls each compare_fn in turn until one returns something other
than equal.

Default behavior ensures that String::cmp is the last element in the
compare_fns list (referred to as 'last resort' sorting by man sort).
Passing --stable (-s) turns this behaviour off.

Test cases provided for `sort --month` and `sort --month --stable`.
2016-08-03 07:56:40 +01:00
mpkh
57f730a9eb Merge pull request #929 from nathanross/test-of
tests: refactor conventional TestScenario usage
2016-08-02 15:04:41 +04:00
Nathan Ross
569cd162d3 tests: refactor conventional TestScenario usage
Updates to individual integration tests

  - use proposed conventional approach to beginning tests

  - use new convenience functions for using fixtures

  - use new names for TestScenario

Updates to integration test modules

  - add proposed conventional module-level functions

Updates to test/common/util.rs

  - rename TestSet, and its methods, for semantic clarity

  - create convenience functions for use of fixtures

  - delete convenience functions obsoleted by new conventions
2016-08-01 13:42:00 -04:00
mpkh
d7a053305c Merge pull request #928 from knight42/patch
Minor changes
2016-07-31 23:23:05 +04:00
Knight
f13d1dc4ce README: correct TODO 2016-08-01 01:23:17 +08:00
Knight
ac41495acd Compile test program only once 2016-08-01 01:02:41 +08:00
mpkh
bb1e0540a3 Merge pull request #926 from pokeylope/ls-improvements
ls improvments
2016-07-29 18:36:14 +04:00
Mark Karasek
59ad388cce ls: remove dependence on nightly 2016-07-29 07:07:38 -07:00
mpkh
5cd6bcf2a8 Merge pull request #927 from knight42/ci
Improve CI
2016-07-29 17:44:07 +04:00
Knight
5ef26aad1c stat: remove warning in test 2016-07-29 21:19:52 +08:00