mbedtls/tests
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
..
.jenkins
configs Update copyright notices to use Linux Foundation guidance 2020-08-19 16:37:36 +02:00
data_files Always revoke certificate on CRL 2020-08-26 11:42:52 +02:00
git-scripts Fix license header in pre-commit hook 2020-08-19 17:54:47 +02:00
scripts Fix printf escape errors in shell scripts 2020-10-27 23:41:28 +01:00
suites Merge pull request #3626 from gilles-peskine-arm/test-fail-report-first-2.16 2020-09-05 11:16:02 +02:00
.gitignore
CMakeLists.txt Merge remote-tracking branch 'origin/pr/2293' into mbedtls-2.16 2019-03-05 16:31:02 +00:00
compat.sh Fix printf escape errors in shell scripts 2020-10-27 23:41:28 +01:00
Descriptions.txt
Makefile Merge remote-tracking branch 'origin/pr/2053' into mbedtls-2.16 2019-06-21 15:59:16 +01:00
ssl-opt.sh Fix printf escape errors in shell scripts 2020-10-27 23:41:28 +01:00