Gilles Peskine 7b02c1f3b6 Avoid multiline requires_all_configs_xxx
For better searchability and readability, call requires_config_enabled or
requires_config_disabled for each option, instead of calling
requires_all_configs_enabled or requires_all_configs_disabled with a long
list of options.

```
perl -0777 -i -pe '
    # With -0777, we act on the whole file.
    # s[REGEXP][CODE]egm replaces every occurrence of REGEXP by the result
    # of running CODE.
    # The regexp matches "requires_all_configs_enabled" or
    # "requires_all_configs_disabled" followed by a list of words ending
    # with a line break. The words can be separated by a sequence of
    # spaces and optionally a backslash-newline.
    s[^requires_all_configs_(enabled|disabled) *((?:(?: \w+) *(?:\\\n)? *)+)\n][
      $state = $1;
      # Extract all the words from the list of words (/(\w+)/g). For each word,
      # For each word, construct a line "requires_config_XXXabled WORD".
      # The replacement text is the concatenation of these lines.
      join("", map {"requires_config_$state $_\n"} $2 =~ /(\w+)/g)
     ]egm' tests/ssl-opt.sh tests/opt-testcases/*.sh
```

Signed-off-by: Gilles Peskine <Gilles.Peskine@arm.com>
2024-09-24 18:58:47 +02:00
..
.jenkins
configs Fix a typo in a comment 2024-04-12 12:40:01 +02:00
docker/bionic Header updates 2023-11-03 12:21:36 +00:00
git-scripts Header updates 2023-11-03 12:21:36 +00:00
include Misc improvements to comments 2024-09-05 10:47:45 +02:00
opt-testcases Avoid multiline requires_all_configs_xxx 2024-09-24 18:58:47 +02:00
psa-client-server Merge pull request #9427 from valeriosetti/psasim-small-fixes 2024-08-07 13:13:46 +00:00
scripts opt-testcases/*.sh are not executable 2024-09-24 18:56:24 +02:00
src Merge pull request #9385 from eleuzi01/replace-ecdsa-some 2024-09-19 13:53:18 +00:00
suites Bring back some dependencies 2024-09-09 11:18:10 +01:00
.gitignore Adapt .gitignore files 2024-07-19 10:07:27 +02:00
CMakeLists.txt Adapt CMake build of TLS and x509 test suites 2024-07-19 10:07:27 +02:00
compat-in-docker.sh Header updates 2023-11-03 12:21:36 +00:00
compat.sh Replace data_files path with variable in compat.sh 2024-07-05 15:49:28 +01:00
context-info.sh Update directory-climbing path in context-info.sh 2024-07-05 15:49:05 +01:00
Descriptions.txt
make-in-docker.sh Header updates 2023-11-03 12:21:36 +00:00
Makefile Don't clean test_keys.h and test_certs.h 2024-09-02 11:55:24 +02:00
ssl-opt-in-docker.sh Header updates 2023-11-03 12:21:36 +00:00
ssl-opt.sh Avoid multiline requires_all_configs_xxx 2024-09-24 18:58:47 +02:00