mbedtls/tests/scripts
Gilles Peskine ffdcadf084 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-10-27 23:41:28 +01:00
..
all.sh Merge branch 'mbedtls-2.16-restricted' 2020-08-26 14:16:04 +01:00
basic-build-test.sh Update copyright notices to use Linux Foundation guidance 2020-08-19 16:37:36 +02:00
check-doxy-blocks.pl Update copyright notices to use Linux Foundation guidance 2020-08-19 16:37:36 +02:00
check-generated-files.sh Update copyright notices to use Linux Foundation guidance 2020-08-19 16:37:36 +02:00
check-names.sh Fix printf escape errors in shell scripts 2020-10-27 23:41:28 +01:00
check-python-files.sh Update copyright notices to use Linux Foundation guidance 2020-08-19 16:37:36 +02:00
check_files.py Update copyright notices to use Linux Foundation guidance 2020-08-19 16:37:36 +02:00
curves.pl Update copyright notices to use Linux Foundation guidance 2020-08-19 16:37:36 +02:00
depends-hashes.pl Update copyright notices to use Linux Foundation guidance 2020-08-19 16:37:36 +02:00
depends-pkalgs.pl Update copyright notices to use Linux Foundation guidance 2020-08-19 16:37:36 +02:00
doxygen.sh Update copyright notices to use Linux Foundation guidance 2020-08-19 16:37:36 +02:00
gen_ctr_drbg.pl Update copyright notices to use Linux Foundation guidance 2020-08-19 16:37:36 +02:00
gen_gcm_decrypt.pl Update copyright notices to use Linux Foundation guidance 2020-08-19 16:37:36 +02:00
gen_gcm_encrypt.pl Update copyright notices to use Linux Foundation guidance 2020-08-19 16:37:36 +02:00
gen_pkcs1_v21_sign_verify.pl Update copyright notices to use Linux Foundation guidance 2020-08-19 16:37:36 +02:00
generate-afl-tests.sh Update copyright notices to use Linux Foundation guidance 2020-08-19 16:37:36 +02:00
generate_test_code.py Update copyright notices to use Linux Foundation guidance 2020-08-19 16:37:36 +02:00
key-exchanges.pl Update copyright notices to use Linux Foundation guidance 2020-08-19 16:37:36 +02:00
list-enum-consts.pl Update copyright notices to use Linux Foundation guidance 2020-08-19 16:37:36 +02:00
list-identifiers.sh Update copyright notices to use Linux Foundation guidance 2020-08-19 16:37:36 +02:00
list-macros.sh Update copyright notices to use Linux Foundation guidance 2020-08-19 16:37:36 +02:00
list-symbols.sh Update copyright notices to use Linux Foundation guidance 2020-08-19 16:37:36 +02:00
mbedtls_test.py Update copyright notices to use Linux Foundation guidance 2020-08-19 16:37:36 +02:00
recursion.pl Update copyright notices to use Linux Foundation guidance 2020-08-19 16:37:36 +02:00
run-test-suites.pl Update copyright notices to use Linux Foundation guidance 2020-08-19 16:37:36 +02:00
tcp_client.pl Update copyright notices to use Linux Foundation guidance 2020-08-19 16:37:36 +02:00
test-ref-configs.pl Update copyright notices to use Linux Foundation guidance 2020-08-19 16:37:36 +02:00
test_generate_test_code.py Update copyright notices to use Linux Foundation guidance 2020-08-19 16:37:36 +02:00
test_zeroize.gdb Update copyright notices to use Linux Foundation guidance 2020-08-19 16:37:36 +02:00
travis-log-failure.sh Update copyright notices to use Linux Foundation guidance 2020-08-19 16:37:36 +02:00