Skip to content

runtests: allow resetting CURL_TEST_MIN via --min=0 - #22618

Closed
vszakats wants to merge 1 commit into
curl:masterfrom
vszakats:mintests-prio
Closed

vszakats wants to merge 1 commit into
curl:masterfrom
vszakats:mintests-prio

Conversation

@vszakats

@vszakats vszakats commented Aug 18, 2026 •

Copy link
Copy Markdown
Member

Set the default to CURL_TEST_MIN if set, first. Then process the
command-line options to override it. Previously, the env took over if
the command-line explicitly tried to set it to zero.

Ref: #22617

Follow-up to 3f1cd80 #19942

Set the default to `CURL_TEST_MIN` if set, first. Then process the
command-line options to override it. Previously, the env took over in if
the command-line left it at zero, which prevented dropping the limit
from the command-line.

Ref: curl#22617
@vszakats vszakats added tests CI Continuous Integration labels Aug 18, 2026
@vszakats
vszakats requested a balanced review from Copilot August 18, 2026 11:01

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

Updates test-runner precedence so command-line --min=0 overrides CURL_TEST_MIN.

Changes:

  • Initializes the minimum test count from the environment before parsing arguments.
  • Removes the previous post-parsing environment override.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@vszakats vszakats closed this in 58cb1e2 Aug 18, 2026
@vszakats
vszakats deleted the mintests-prio branch August 18, 2026 11:22
vszakats added a commit that referenced this pull request Aug 18, 2026
When the minimum comes from `CURL_TEST_MIN`, to improve the default
behavior. It may still need manual adjustment in cases.

Follow-up to e669179 #22616
Follow-up to 58cb1e2 #22618
Cherry-picked from #22617

Closes #22619
vszakats added a commit that referenced this pull request Aug 18, 2026
Also:
- drop most hand-tuned `--min` options, in favor of defaults.
- enable tests on emulated riscv64.
  Suggested-by: Dan Fandrich
  Ref: #22590 (comment)
- drop building examples on emulated riscv64.

Adding around 3.5 minutes to the riscv64 job:
0.5 Perl install, 2 minutes to build tests, 1 minute to run 100 tests.

Follow-up to 6648669 #22619
Follow-up to e669179 #22616
Follow-up to 58cb1e2 #22618
Follow-up to d000006 #22602

Closes #22617
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CI Continuous Integration script tests

Development

Successfully merging this pull request may close these issues.

2 participants