mbedtls/tests
Gilles Peskine 352a7cf3ca 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:48:40 +01:00
..
.jenkins Add Jenkinsfile for PR job 2018-10-19 15:25:57 +01:00
configs Update copyright notices to use Linux Foundation guidance 2020-08-19 16:54:51 +02:00
data_files Always revoke certificate on CRL 2020-08-26 11:38:41 +02:00
git-scripts Fix license header in pre-commit hook 2020-08-20 09:27:07 +02:00
scripts Fix printf escape errors in shell scripts 2020-10-27 23:48:40 +01:00
suites Merge pull request #3627 from gilles-peskine-arm/test-fail-report-first-2.7 2020-09-05 11:16:08 +02:00
.gitignore Move some ignore patterns to subdirectories 2015-01-28 15:33:23 +00:00
CMakeLists.txt Add a facility to skip running some test suites 2018-12-14 18:50:34 +01:00
compat.sh Fix printf escape errors in shell scripts 2020-10-27 23:48:40 +01:00
Descriptions.txt Add selftest program to the list of tests 2014-04-04 16:33:01 +02:00
Makefile Merge remote-tracking branch 'origin/pr/2320' into mbedtls-2.7 2019-06-21 15:55:21 +01:00
ssl-opt.sh Fix printf escape errors in shell scripts 2020-10-27 23:48:40 +01:00