Skip to content

test: add native features to check for, to reduce need for prechecks#15039

Closed
bagder wants to merge 3 commits intomasterfrom
bagder/test-less-precheck
Closed

test: add native features to check for, to reduce need for prechecks#15039
bagder wants to merge 3 commits intomasterfrom
bagder/test-less-precheck

Conversation

@bagder
Copy link
Copy Markdown
Member

@bagder bagder commented Sep 25, 2024

No description provided.

It can now be required easily in <features> instead of having perl code
in a <precheck>.
This is the %CLIENT6IP variable - but without outmost brackets since
some commmand lines need the address without the brackets. With this
variable we can run three more tests without prechecks.
To avoid having to use <precheck> for tests that require UTF-8 support.
@bagder bagder added the tests label Sep 25, 2024
@dfandrich
Copy link
Copy Markdown
Contributor

Analysis of PR #15039 at 8818eed0:

Test 1035 failed, which has NOT been flaky recently, so there could be a real issue in the PR.

Generated by Testclutch

@bagder bagder closed this in 7aa2b4e Sep 26, 2024
bagder added a commit that referenced this pull request Sep 26, 2024
This is the %CLIENT6IP variable - but without outmost brackets since
some commmand lines need the address without the brackets. With this
variable we can run three more tests without prechecks.

Closes #15039
bagder added a commit that referenced this pull request Sep 26, 2024
To avoid having to use <precheck> for tests that require UTF-8 support.

Closes #15039
@bagder bagder deleted the bagder/test-less-precheck branch September 26, 2024 06:46
pps83 pushed a commit to pps83/curl that referenced this pull request Apr 26, 2025
It can now be required easily in <features> instead of having perl code
in a <precheck>.

Closes curl#15039
pps83 pushed a commit to pps83/curl that referenced this pull request Apr 26, 2025
This is the %CLIENT6IP variable - but without outmost brackets since
some commmand lines need the address without the brackets. With this
variable we can run three more tests without prechecks.

Closes curl#15039
pps83 pushed a commit to pps83/curl that referenced this pull request Apr 26, 2025
To avoid having to use <precheck> for tests that require UTF-8 support.

Closes curl#15039
vszakats added a commit that referenced this pull request Jul 23, 2025
- runtests: fix `codeset-utf8` feature detection. Before this patch it
  detected if the calling environment had UTF-8 enabled. If not, UTF-8
  tests were all skipped. After this patch, it detects if UTF-8 is
  supported by the calling environment regardless of what's currently
  enabled.
  Follow-up to 0b70b23 #15039

- GHA/linux: sync `codeset-test` to also reset `LC_CTYPE` and
  `LC_NUMBER`. To give it more spin.
  Follow-up to c221c0e #17938

- GHA/macos: fix to actually enable `codeset-test`. Also set `LC_ALL`,
  which seems necessary to trigger issues.
  Follow-up to c221c0e #17938

- tests/data: replace `LC_CTYPE` env with `LC_ALL` in all tests
  requiring a locale. Also to avoid potential issues with a blank or
  unset `LC_ALL`, as seen earlier. And to ensure that the override works
  on all platforms (as tested in CI.)
  Slight downside is that this now resets the language/culture to `C`.
  Ref: b4c9982 #4743
  Ref: 23208e3 #4738

- replace `en_US.UTF-8` with `C.UTF-8` to be language/culture-agnostic.

- TEST-SUITE.md: drop `UTF-8` as a requirement for tests.
  Tests shall work (or least be skipped) without UTF-8 support.

Tests requiring UTF-8 locale:
165, 962, 963, 964, 965, 966, 967, 1448, 1560, 2046, 2047
Tests requiring UTF-8 locale, but passing without one anyway:
955, 956, 957, 958, 959, 960, 961, 968, 1034, 1035

Spec 1997: https://pubs.opengroup.org/onlinepubs/7908799/xbd/envvar.html
Spec 2008: https://pubs.opengroup.org/onlinepubs/9699919799/basedefs/V1_chap08.html

Ref: c221c0e #17938
Ref: 7cf8414
Ref: 4c140a5
Ref: 28faaac #2436
Ref: ecd1d02

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

Labels

Development

Successfully merging this pull request may close these issues.

2 participants