Skip to content

contrib/awk: add conformance suite - #764

Merged
ewhauser merged 1 commit into
mainfrom
ewhauser/awk-conformance
Mar 28, 2026
Merged

ewhauser merged 1 commit into
mainfrom
ewhauser/awk-conformance

Conversation

@ewhauser

Copy link
Copy Markdown
Owner

Summary

  • add a package-local awk conformance suite under contrib/awk using the shared conformance harness
  • add pinned GNU awk oracle plumbing via Nix, scripts/ensure-awk.sh, and internal/testutil helpers
  • expand make contrib-conformance-test so CI runs both jq and awk contrib parity suites

Why

This mirrors the jq contrib parity setup for awk so oracle-backed conformance coverage lives with the contrib command instead of under internal/conformance.

Impact

  • adds GBASH_RUN_AWK_CONFORMANCE and GBASH_CONFORMANCE_AWK
  • adds make ensure-awk
  • updates contrib docs to describe jq and awk parity coverage
  • aligns awk parse and missing-file failures with GNU awk exit behavior for the tested cases

Validation

  • go test ./internal/testutil -run TestResolveNixAWK -count=1
  • go test ./contrib/awk -count=1
  • make contrib-conformance-test
  • make lint

@ewhauser ewhauser changed the title [codex] contrib/awk: add conformance suite contrib/awk: add conformance suite Mar 28, 2026
@ewhauser
ewhauser marked this pull request as ready for review March 28, 2026 16:49
@ewhauser
ewhauser merged commit bcd7225 into main Mar 28, 2026
16 checks passed
@ewhauser
ewhauser deleted the ewhauser/awk-conformance branch March 28, 2026 16:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant