Skip to content

Update integration tests to use extended grep instead of PCRE#149

Merged
clue merged 1 commit into
clue:mainfrom
clue-labs:grep-extended
Jun 4, 2026
Merged

Update integration tests to use extended grep instead of PCRE#149
clue merged 1 commit into
clue:mainfrom
clue-labs:grep-extended

Conversation

@clue

@clue clue commented Jun 4, 2026

Copy link
Copy Markdown
Owner

This changeset updates the integration tests to use the more widely supported extended grep instead of PCRE. Among others, this makes it easier to run these tests across different platforms, including macOS and Alpine Linux.

Builds on top of clue/framework-x#283, https://github.com/clue-engineering/check-domains/pull/62 (private) and #136

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates the bash-based integration test script to avoid grep -P (PCRE) and instead use extended regular expressions, improving portability across environments where PCRE grep isn’t available.

Changes:

  • Replace grep -iP ... patterns with grep -iE ... equivalents (and adjust patterns/anchors accordingly).
  • Update the curl wrapper to call the external curl binary via command and normalize CRLF output.
  • Modernize bash arithmetic from $[...] to $((...)).

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread tests/integration.bash
@clue clue merged commit 037b878 into clue:main Jun 4, 2026
2 checks passed
@clue clue deleted the grep-extended branch June 4, 2026 17:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants