mirror of
https://github.com/uutils/grep.git
synced 2026-10-16 02:48:22 -07:00
fix-coverage-profraw-path
The test suite spawns the grep binary inside per-test temporary directories (via uutests). With a relative LLVM_PROFILE_FILE, each subprocess wrote its .profraw into that tempdir, which gets deleted when the test ends, so the binary executing the src/ code left no coverage data and grcov reported every line as a miss (0%). Anchoring the path to the workspace root makes the profraw files survive, raising reported coverage from 0% to ~96%.
Grep, now in Rust
A Rust implementation of GNU Grep. This project is an initial release and may contain bugs.
Building
Download Rust at: https://rustup.rs/
# Check out this repository
git clone https://github.com/uutils/grep
cd grep
# Build a release version
cargo build --release
# Run!
./target/release/grep --help
# Run tests (if needed; after making changes)
cargo test
Known Issues
- Does not take
LANG, etc., into account for handling file encodings (non-UTF8 matches are treated as binary) - No localization support yet
Contributing
To contribute to uutils, please see CONTRIBUTING.
License
uutils is licensed under the MIT License - see the LICENSE file for details
GNU Grep is licensed under the GPL 3.0 or later.
Languages
Rust
92.1%
Shell
5.5%
Python
2.4%