Skip to content

chore(test): override curlinfo to report urlx capabilities (unskip test 777)#130

Merged
jonwiggins merged 1 commit intomainfrom
optio/task-05fe8315-4075-49c8-bca8-a4287b0e516c
Mar 28, 2026
Merged

chore(test): override curlinfo to report urlx capabilities (unskip test 777)#130
jonwiggins merged 1 commit intomainfrom
optio/task-05fe8315-4075-49c8-bca8-a4287b0e516c

Conversation

@jonwiggins
Copy link
Copy Markdown
Owner

Summary

  • Add scripts/curlinfo-urlx wrapper that overrides curl's curlinfo binary to report urlx's actual feature capabilities
  • Update scripts/run-curl-tests.sh to install the curlinfo wrapper, following the same pattern as the existing libtests-shim
  • This unskips test 777 (--ssl-sessions with weird sessions in file) which was skipped because curl's curlinfo reported ssl-sessions: OFF even though urlx supports ssl-sessions

Closes #124

How it works

curl's test harness (runtests.pl) runs the curlinfo binary to detect enabled features. Since this binary comes from curl's own build, it reflects curl's build configuration — not urlx's capabilities. Test 777 requires the ssl-sessions feature, which urlx supports but curl wasn't built with.

The curlinfo-urlx wrapper handles two cases:

  1. Real curlinfo exists: Runs it and patches ssl-sessions: OFFssl-sessions: ON via sed
  2. No curlinfo binary: Outputs a complete hardcoded feature list matching urlx's capabilities

The wrapper is extensible — additional urlx-specific feature overrides can be added to the URLX_FEATURES_ON array.

Test plan

  • Verify scripts/curlinfo-urlx outputs ssl-sessions: ON in both modes (with and without a real curlinfo)
  • Run scripts/run-curl-tests.sh 777 and verify test 777 passes instead of being skipped
  • Run full test suite and verify no regressions

🤖 Generated with Claude Code

…st 777)

curl's curlinfo binary reflects curl's build configuration, not urlx's.
When curl is built without ssl-sessions support, the test harness skips
test 777 even though urlx supports ssl-sessions.

Add a curlinfo-urlx wrapper script that:
- When a real curlinfo exists, runs it and patches ssl-sessions to ON
- When no curlinfo exists, outputs a complete feature list matching
  urlx's capabilities

Update run-curl-tests.sh to install the wrapper in place of curl's
curlinfo binary, following the same pattern used for libtests-shim.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@jonwiggins jonwiggins merged commit 2359f25 into main Mar 28, 2026
7 checks passed
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.

chore(test): unskip test 777 — ssl-sessions feature already implemented

1 participant