245 Commits

Author SHA1 Message Date
Sylvestre Ledru adda4c1ba5 Update 0.3.0 0.3.0 2022-01-26 23:38:16 +01:00
Sylvestre Ledru 250867d99c Merge pull request #135 from sylvestre/udeps
Move tempfile dep to dev-dep
2022-01-26 23:34:53 +01:00
Sylvestre Ledru c61af2ae0e Move tempfile dep to dev-dep
cargo +nightly udeps
2022-01-26 23:10:33 +01:00
Sylvestre Ledru c616c69854 Merge pull request #132 from refi64/update-uucore
Update uucore to 0.0.12
2022-01-25 22:38:14 +01:00
Sylvestre Ledru bec239f9d6 Merge pull request #133 from refi64/download-correct-workflow
Fix compat tests not using the latest workflow
2022-01-25 13:48:10 +01:00
Ryan Gonzalez ab25ef8d1a Fix compat tests not using the latest workflow
By default, artifacts are only downloaded from the latest successful
workflow, meaning that, if the compat tests regressed, then it is
impossible to compare against the new current state. This isn't a
perfect solution, but I believe it should by far be "good enough" for
these purposes.

Signed-off-by: Ryan Gonzalez <ryan.gonzalez@collabora.com>
2022-01-24 11:28:53 -06:00
Ryan Gonzalez 949e76b5b9 Update uucore to 0.0.12
This version includes the needed filesystem type detection fix.

Signed-off-by: Ryan Gonzalez <ryan.gonzalez@collabora.com>
2022-01-24 09:32:59 -06:00
Sylvestre Ledru 1e67813594 Merge pull request #121 from refi64/xargs
Add an initial implementation of xargs
2022-01-23 15:59:20 +01:00
Ryan Gonzalez 3a1c42123f Add an initial implementation of xargs
This includes much of the core xargs functionality, with the following
notable exceptions:

- Parallel execution (`-P`): This option currently just does
  nothing, that way anything that passes -P can at least run without a
  notable behavior shift (other than simply being slower).
- Replacement strings (`-I`): This can easily be worked around via an
  intermediate shell invocation (e.g. `xargs -L1 sh -c 'do-things-with
  $@' --`).
- EOF strings (`-E`): I've honestly never seen this actually used,
  though it would not be particularly difficult to implement given the
  current architecture.

Closes #37

Signed-off-by: Ryan Gonzalez <ryan.gonzalez@collabora.com>
2022-01-22 20:22:01 -06:00
Sylvestre Ledru 8fe924cb68 update of the readme 2022-01-23 01:23:53 +01:00
Sylvestre Ledru d432d665d1 Merge pull request #126 from refi64/regex
Add support for regex matching
2022-01-23 01:19:55 +01:00
Sylvestre Ledru 96b353b7f5 Merge pull request #123 from refi64/print02
Add support for -print0
2022-01-23 01:18:09 +01:00
Ryan Gonzalez 4d9ede3c89 Add support for -print0
Signed-off-by: Ryan Gonzalez <ryan.gonzalez@collabora.com>
2022-01-22 09:10:10 -06:00
Ryan Gonzalez 0298d20481 Update proc_macro2
Depending on onig ends up requiring proc_macro2, but the version that
was in the lockfile breaks the build if panic=abort is used (which is
done for coverage checks). This was fixed in 1.0.30+ for Rust 1.57+, so
update to that version.

Signed-off-by: Ryan Gonzalez <ryan.gonzalez@collabora.com>
2022-01-22 09:05:20 -06:00
Ryan Gonzalez e52b4f2e46 Add support for regex matching
This adds support for -regextype, -regex, and -iregex, using Oniguruma
to implement support for the Emacs, grep, POSIX basic, and POSIX
extended regex types.

Signed-off-by: Ryan Gonzalez <ryan.gonzalez@collabora.com>
2022-01-22 09:05:20 -06:00
Sylvestre Ledru bdfd492a0a Merge pull request #130 from refi64/compat-tests-2
Add remaining portions of automated compatibility tests
2022-01-22 10:14:58 +01:00
Sylvestre Ledru 79d4bc4b2f Merge pull request #129 from refi64/compat-tests-1
Add initial parts of automated compatibility tests
2022-01-21 23:51:08 +01:00
Ryan Gonzalez 165d72efd2 Add remaining portions of automated compatibility tests
This adds the rest of the compatibility test workflow, in order to
automatically run against the GNU findutils & BFS test suites as part of
standard CI and compare the results to the latest from the 'main'
branch.

Closes #128

Signed-off-by: Ryan Gonzalez <ryan.gonzalez@collabora.com>
2022-01-21 16:18:35 -06:00
Ryan Gonzalez 97ea4ae294 Add initial parts of automated compatibility tests
This is the first half of the needed changes to set up automated
compatibility tests against GNU findutils and bfs, handling the uploads
of the build logs and JSON results. The workflow itself is heavily based
on the one from uutils/coreutils:

https://github.com/uutils/coreutils/blob/main/.github/workflows/GnuTests.yml

but with various cleanups & tweaks to better suit findutils.

This does *not* include the actual regression comparisons, because those
will only pass once archives of these files are up on the main branch.

Ref #128

Signed-off-by: Ryan Gonzalez <ryan.gonzalez@collabora.com>
2022-01-21 16:15:48 -06:00
Sylvestre Ledru 50d2bde28f Merge pull request #127 from uutils/dependabot/cargo/assert_cmd-2.0.4
Bump assert_cmd from 2.0.2 to 2.0.4
2022-01-14 09:34:57 +01:00
dependabot[bot] 8e3093b4e8 Bump assert_cmd from 2.0.2 to 2.0.4
Bumps [assert_cmd](https://github.com/assert-rs/assert_cmd) from 2.0.2 to 2.0.4.
- [Release notes](https://github.com/assert-rs/assert_cmd/releases)
- [Changelog](https://github.com/assert-rs/assert_cmd/blob/master/CHANGELOG.md)
- [Commits](https://github.com/assert-rs/assert_cmd/compare/v2.0.2...v2.0.4)

---
updated-dependencies:
- dependency-name: assert_cmd
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-01-14 07:18:26 +00:00
Sylvestre Ledru b8b3c32a1c Merge pull request #124 from uutils/dependabot/cargo/predicates-2.1.1
Bump predicates from 2.1.0 to 2.1.1
2022-01-12 09:58:12 +01:00
dependabot[bot] 27e8e4a186 Bump predicates from 2.1.0 to 2.1.1
Bumps [predicates](https://github.com/assert-rs/predicates-rs) from 2.1.0 to 2.1.1.
- [Release notes](https://github.com/assert-rs/predicates-rs/releases)
- [Changelog](https://github.com/assert-rs/predicates-rs/blob/master/CHANGELOG.md)
- [Commits](https://github.com/assert-rs/predicates-rs/compare/v2.1.0...v2.1.1)

---
updated-dependencies:
- dependency-name: predicates
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-01-12 07:12:56 +00:00
Sylvestre Ledru 81402f3c59 Merge pull request #120 from refi64/printf
Add support for GNU-compatible printf
2022-01-10 10:32:29 +01:00
Sylvestre Ledru dd443b977c Merge branch 'master' into printf 2022-01-10 09:59:52 +01:00