Commit Graph

9 Commits

Author SHA1 Message Date
oech3 bc416c6d8b GnuTests: publish binary from main 2026-06-03 00:05:24 +09:00
codspeed-hq[bot] 079619ee44 Add CodSpeed performance benchmarks 2026-05-31 07:59:22 +00:00
Sylvestre Ledru f7813500c9 Merge pull request #8 from uutils/gnu-test
run the gnu testsuite in the ci
2026-05-29 21:43:41 +02:00
Sylvestre Ledru e885f66523 ci: post GNU grep testsuite comparison as a PR comment
Add a GnuComment workflow that runs after GnuTests completes on a pull
request, downloads the 'comment' artifact (PR number + comparison text), and
posts it as a PR comment. Mirrors ../sed's GnuComment workflow.
2026-05-29 18:43:11 +02:00
Sylvestre Ledru 10bfa405dc ci: add GnuTests workflow running the GNU grep testsuite
Add a GnuTests workflow that, on push and PR, fetches the GNU grep release
tarball, builds the Rust grep binary, runs util/run-gnu-testsuite.sh, and
uploads the JSON results. An aggregate job compares the run against the
reference summary from the default branch (util/compare_test_results.py,
borrowed from ../sed) and fails only on new, non-intermittent regressions;
known-flaky tests are listed in .github/workflows/ignore-intermittent.txt.
2026-05-29 18:43:11 +02:00
Sylvestre Ledru 3bf91e530e ci: use absolute LLVM_PROFILE_FILE path to fix 0% coverage
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%.
2026-05-29 00:02:47 +02:00
Sylvestre Ledru 61e5e1dd8d ci: move fmt/clippy into dedicated code-quality workflow 2026-05-28 21:15:10 +02:00
Sylvestre Ledru 6a2cb792a7 ci: add code coverage job (grcov + Codecov) across all OSes 2026-05-28 21:13:32 +02:00
Sylvestre Ledru a1396f959b ci: run build/test/fmt/clippy 2026-05-28 21:10:04 +02:00