Commit graph

1650 commits

Author SHA1 Message Date
Nathan Ross
83295f1e08 appveyor and windows testing tooling updates 2015-12-23 22:59:04 -05:00
Nathan Ross
caece01a6f add back initial appveyor file 2015-12-23 22:53:27 -05:00
Joseph Crail
3b4baeb1e7 Fix "private type in public interface" warnings. 2015-12-23 20:08:53 -05:00
Heather
9339bbe50d Merge pull request #762 from ebfe/expr-and-or
expr: implement '|' and '&'
2015-12-22 17:20:58 +04:00
Heather
88710fa01d Merge pull request #760 from ebfe/disable-stdbuf
tests/stdbuf: disable on non-linux os
2015-12-22 17:20:24 +04:00
Heather
b19ac59a61 Merge pull request #759 from ebfe/fix-env-test
tests/env: don't assume vars are ordered
2015-12-22 17:20:09 +04:00
Michael Gehring
d4e0ee0cde expr: add basic tests 2015-12-22 14:10:43 +01:00
Michael Gehring
519802bdf9 expr: add '|' and '&' operators 2015-12-22 13:41:30 +01:00
Michael Gehring
1fc698a17f tests/stdbuf: disable on non-linux os 2015-12-22 12:55:51 +01:00
Michael Gehring
ec1ec84f0c tests/env: don't assume vars are ordered 2015-12-22 12:44:05 +01:00
Heather
c380195f94 Merge pull request #758 from ebfe/https
make: switch download to https
2015-12-22 01:06:03 +04:00
Heather
332928d579 Merge pull request #757 from ebfe/fix-busytest
make: fix passing empty arguments to busybox tests
2015-12-22 01:05:54 +04:00
Michael Gehring
b050f6ad78 make: switch download to https 2015-12-21 21:38:03 +01:00
Heather
6baf495ce2 Merge pull request #756 from ebfe/fix-hostname
hostname: fix '-i'
2015-12-22 00:28:21 +04:00
Michael Gehring
7649a85e13 make: fix passing empty arguments to busybox tests 2015-12-21 21:22:36 +01:00
Michael Gehring
3d94dea397 hostname: fix '-i' 2015-12-21 21:08:17 +01:00
Heather
8ed14fb9d5 Merge pull request #755 from ebfe/fix-warnings
fmt: fix warnings
2015-12-21 23:43:10 +04:00
Michael Gehring
bcaa859ca7 fmt: fix warnings 2015-12-21 20:23:55 +01:00
Heather
f16ce871c6 Merge pull request #754 from ebfe/fix-dirname
dirname: fix "/" "." ""
2015-12-21 14:55:57 +04:00
Heather
2c095f79b0 Merge pull request #753 from ebfe/fix-id
id: fix '-u'
2015-12-21 14:55:40 +04:00
Michael Gehring
cb4f6a2978 dirname: add some tests 2015-12-21 11:17:37 +01:00
Michael Gehring
c918fb6a6b dirname: fix "/" "." "" 2015-12-21 11:14:08 +01:00
Michael Gehring
cf8a86ca2d id: fix '-u'
Some cases printed gid instead of uid.
2015-12-21 10:45:49 +01:00
Heather
7c1bb4cb97 Merge pull request #752 from ebfe/fix-busytest
make: fix busybox script
2015-12-21 13:37:11 +04:00
Michael Gehring
a385a95961 make: fix busybox script 2015-12-21 09:48:14 +01:00
Heather
ec3490b5b2 Merge pull request #751 from nathanross/busybox-approach-2
Add busybox test functionality
2015-12-21 08:08:08 +04:00
Nathan Ross
5ee7b5b8fc rm recognition of "busybox" bin name in uutils.rs 2015-12-20 21:06:05 -05:00
Nathan Ross
73cfb04d11 add busybox test instructions to README.md 2015-12-20 21:06:05 -05:00
Nathan Ross
a0d7910e91 add back busybox test support 2015-12-20 19:48:26 -05:00
Heather
dffdca0406 Merge pull request #745 from ebfe/fix-arm
Fix arm build
2015-12-19 15:13:49 +04:00
Michael Gehring
ab0639d88a Fix arm build
Fixes #719
2015-12-19 08:53:28 +01:00
Michael Gehring
bc0dd2006c Merge pull request #749 from jbcrail/refactor-tail-2
tail: use read_line/read instead of lines/bytes
2015-12-19 08:43:43 +01:00
Michael Gehring
fa06d979eb Merge pull request #750 from jbcrail/rm-unused-imports
Remove unused imports
2015-12-19 08:40:39 +01:00
Joseph Crail
23202f5aef Remove unused imports 2015-12-19 01:32:05 -05:00
Joseph Crail
aa0ce61b3f tail: use read_line/read instead of lines/bytes
In order to work around lines() removing the newline byte and CRLF, I
switched from the iterator methods (lines/bytes) to the direct methods
(read_line/read). I also manually skipped lines/bytes.

Fixes #744.
2015-12-18 23:52:09 -05:00
Joseph Crail
2a07efe5e3 Merge pull request #748 from ebfe/cargoflags
make: add CARGOFLAGS
2015-12-18 19:46:58 -05:00
Michael Gehring
3b7aad39bf make: add CARGOFLAGS 2015-12-18 23:03:57 +01:00
Michael Gehring
328597334b Merge pull request #743 from jbcrail/refactor-tail
tail: add tests and refactor
2015-12-13 08:17:55 +01:00
Joseph Crail
77abd58be7 Refactor settings into dedicated struct 2015-12-12 18:37:17 -05:00
Joseph Crail
cf399faad2 Add initial tests for default values 2015-12-12 16:24:48 -05:00
Joseph Crail
b6abe56357 Fix whitespace 2015-12-12 15:29:45 -05:00
Heather
f0c8b5b89e Merge pull request #741 from jbcrail/rm-path-shim
Remove trait shim needed before Path stabilized
2015-12-11 08:49:52 +04:00
Joseph Crail
8fa09b2004 Remove trait shim needed before Path stabilized
Now that Path has stabilized in Rust 1.5, I removed the UUPathExt trait
needed to support stable, beta, and nightly.
2015-12-10 14:20:01 -05:00
Michael Gehring
b964014b31 Merge pull request #740 from jbcrail/simplify-build
Refactor and simplify build for utilities
2015-12-08 18:02:05 +01:00
Joseph Crail
58d6add8d1 Add macro to properly find program name. 2015-12-07 21:56:46 -05:00
Joseph Crail
b90d253584 Refactor and simplify build for utilities.
For coreutils, there are two build artifacts:

  1. multicall executable (each utility is a separate static library)
  2. individual utilities (still separate library with main wrapper)

To avoid namespace collision, each utility crate is defined as
"uu_{CMD}". The end user only sees the original utility name. This
simplifies build.rs.

Also, the thin wrapper for the main() function is no longer contained in
the crate. It has been separated into a dedicated file. This was
necessary to work around Cargo's need for the crate name attribute to
match the name in the respective Cargo.toml.
2015-12-07 21:56:45 -05:00
Joseph Crail
d6039c1b22 Remove build for unit tests.
Currently no utility has unit tests, only integration tests.
2015-12-06 22:49:56 -05:00
Heather
ebf58b4c7d Merge pull request #739 from jbcrail/contribute
Move contributing section into separate file
2015-12-03 10:58:45 +04:00
Joseph Crail
be6e835f79 Move contributing section into separate file.
GitHub uses CONTRIBUTING.md as the basis for a message to someone
creating a new issue. I made a few changes to modernize the contribution
section, but there's still room for updates.
2015-12-03 00:21:05 -05:00
Heather
c0251d8f19 Merge pull request #737 from jbcrail/more-windows-fixes
Fix build errors on Windows.
2015-12-01 11:16:05 +04:00