mbedtls/tests
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
..
.jenkins
configs Update copyright notices to use Linux Foundation guidance 2020-08-19 10:35:41 +02:00
data_files Merge pull request #3433 from raoulstrackx/raoul/verify_crl_without_time 2020-08-26 12:56:11 +02:00
docker/bionic Update copyright notices to use Linux Foundation guidance 2020-08-19 10:35:41 +02:00
git-scripts Update copyright notices to use Linux Foundation guidance 2020-08-19 10:35:41 +02:00
include/test Merge pull request #3574 from makise-homura/e2k_support 2020-08-25 09:46:36 +02:00
scripts Fix printf escape errors in shell scripts 2020-08-26 22:54:19 +02:00
src Update copyright notices to use Linux Foundation guidance 2020-08-19 10:35:41 +02:00
suites Merge pull request #3611 from gilles-peskine-arm/psa-coverity-cleanups-202008 2020-08-26 13:18:27 +02:00
.gitignore tests: Add helpers.c and helpers.h files 2020-06-12 14:33:00 +02:00
CMakeLists.txt Add comments explaining include paths 2020-07-02 15:59:45 +02:00
compat-in-docker.sh Update copyright notices to use Linux Foundation guidance 2020-08-19 10:35:41 +02:00
compat.sh Fix printf escape errors in shell scripts 2020-08-26 22:54:19 +02:00
context-info.sh Fix printf escape errors in shell scripts 2020-08-26 22:54:19 +02:00
Descriptions.txt Revert "Remove tests that depend on TLS or X.509" 2020-03-19 14:17:54 +01:00
make-in-docker.sh Update copyright notices to use Linux Foundation guidance 2020-08-19 10:35:41 +02:00
Makefile Add comments explaining include paths 2020-07-02 15:59:45 +02:00
ssl-opt-in-docker.sh Update copyright notices to use Linux Foundation guidance 2020-08-19 10:35:41 +02:00
ssl-opt.sh Fix printf escape errors in shell scripts 2020-08-26 22:54:19 +02:00