mbedtls/tests/scripts
Gilles Peskine 231befab51 Fix printf escape errors in shell scripts
Fix `printf "$foo"` which treats the value of `foo` as a printf format
rather than a string.

I used the following command to find potentially problematic lines:
```
git ls-files '*.sh' | xargs egrep 'printf +("?[^"]*|[^ ]*)\$'
```
The remaining ones are false positives for this regexp.

The errors only had minor consequences: the output of `ssl-opt.sh`
contained lines like
```
Renegotiation: gnutls server strict, client-initiated .................. ./tests/ssl-opt.sh: 741: printf: %S: invalid directive
PASS
```
and in case of failure the GnuTLS command containing a substring like
`--priority=NORMAL:%SAFE_RENEGOTIATION` was not included in the log
file. With the current tests, there was no risk of a test failure
going undetected.

Signed-off-by: Gilles Peskine <Gilles.Peskine@arm.com>
2020-08-26 22:54:19 +02:00
..
all-in-docker.sh Update copyright notices to use Linux Foundation guidance 2020-08-19 10:35:41 +02:00
all.sh Merge pull request #3433 from raoulstrackx/raoul/verify_crl_without_time 2020-08-26 12:56:11 +02:00
analyze_outcomes.py Document the fields of TestCasesOutcomes 2020-06-26 18:31:26 +02:00
basic-build-test.sh Update copyright notices to use Linux Foundation guidance 2020-08-19 10:35:41 +02:00
basic-in-docker.sh Update copyright notices to use Linux Foundation guidance 2020-08-19 10:35:41 +02:00
check-doxy-blocks.pl Update copyright notices to use Linux Foundation guidance 2020-08-19 10:35:41 +02:00
check-generated-files.sh Update copyright notices to use Linux Foundation guidance 2020-08-19 10:35:41 +02:00
check-names.sh Fix printf escape errors in shell scripts 2020-08-26 22:54:19 +02:00
check-python-files.sh Update copyright notices to use Linux Foundation guidance 2020-08-19 10:35:41 +02:00
check_files.py Update copyright notices to use Linux Foundation guidance 2020-08-19 10:35:41 +02:00
check_test_cases.py Update copyright notices to use Linux Foundation guidance 2020-08-19 10:35:41 +02:00
curves.pl Update copyright notices to use Linux Foundation guidance 2020-08-19 10:35:41 +02:00
depends-hashes.pl Update copyright notices to use Linux Foundation guidance 2020-08-19 10:35:41 +02:00
depends-pkalgs.pl Update copyright notices to use Linux Foundation guidance 2020-08-19 10:35:41 +02:00
docker_env.sh Update copyright notices to use Linux Foundation guidance 2020-08-19 10:35:41 +02:00
doxygen.sh Update copyright notices to use Linux Foundation guidance 2020-08-19 10:35:41 +02:00
gen_ctr_drbg.pl Update copyright notices to use Linux Foundation guidance 2020-08-19 10:35:41 +02:00
gen_gcm_decrypt.pl Update copyright notices to use Linux Foundation guidance 2020-08-19 10:35:41 +02:00
gen_gcm_encrypt.pl Update copyright notices to use Linux Foundation guidance 2020-08-19 10:35:41 +02:00
gen_pkcs1_v21_sign_verify.pl Update copyright notices to use Linux Foundation guidance 2020-08-19 10:35:41 +02:00
generate-afl-tests.sh Update copyright notices to use Linux Foundation guidance 2020-08-19 10:35:41 +02:00
generate_test_code.py Update copyright notices to use Linux Foundation guidance 2020-08-19 10:35:41 +02:00
key-exchanges.pl Update copyright notices to use Linux Foundation guidance 2020-08-19 10:35:41 +02:00
list-enum-consts.pl Update copyright notices to use Linux Foundation guidance 2020-08-19 10:35:41 +02:00
list-identifiers.sh Update copyright notices to use Linux Foundation guidance 2020-08-19 10:35:41 +02:00
list-macros.sh Update copyright notices to use Linux Foundation guidance 2020-08-19 10:35:41 +02:00
list-symbols.sh Update copyright notices to use Linux Foundation guidance 2020-08-19 10:35:41 +02:00
mbedtls_test.py Update copyright notices to use Linux Foundation guidance 2020-08-19 10:35:41 +02:00
psa_collect_statuses.py Update copyright notices to use Linux Foundation guidance 2020-08-19 10:35:41 +02:00
recursion.pl Update copyright notices to use Linux Foundation guidance 2020-08-19 10:35:41 +02:00
run-test-suites.pl Update copyright notices to use Linux Foundation guidance 2020-08-19 10:35:41 +02:00
tcp_client.pl Update copyright notices to use Linux Foundation guidance 2020-08-19 10:35:41 +02:00
test-ref-configs.pl Update copyright notices to use Linux Foundation guidance 2020-08-19 10:35:41 +02:00
test_config_script.py Update copyright notices to use Linux Foundation guidance 2020-08-19 10:35:41 +02:00
test_generate_test_code.py Update copyright notices to use Linux Foundation guidance 2020-08-19 10:35:41 +02:00
test_psa_constant_names.py Update copyright notices to use Linux Foundation guidance 2020-08-19 10:35:41 +02:00
test_zeroize.gdb Update copyright notices to use Linux Foundation guidance 2020-08-19 10:35:41 +02:00
travis-log-failure.sh Update copyright notices to use Linux Foundation guidance 2020-08-19 10:35:41 +02:00