mbedtls/tests
Gilles Peskine 5bf15b6d63 Reduce the use of grep
Avoid using the external command grep for simple string-based checks.
Prefer a case statement. This improves performance.

The performance improvement is moderate but noticeable when skipping
most tests. When a test is run, the cost of the associated grep calls
is negligible. In this commit, I focused on the uses of grep that can
be easily replaced and that are executed a large number of times.

Signed-off-by: Gilles Peskine <Gilles.Peskine@arm.com>
2021-03-10 23:31:02 +01:00
..
.jenkins Add Jenkinsfile for PR job 2018-10-19 15:25:10 +01:00
configs Update copyright notices to use Linux Foundation guidance 2020-08-19 16:37:36 +02:00
data_files Merge pull request #3596 from gilles-peskine-arm/cert-gen-cleanup-202008-2.16 2020-10-15 13:33:12 +02:00
git-scripts Fix license header in pre-commit hook 2020-08-19 17:54:47 +02:00
scripts Add a build with MBEDTLS_ERROR_STRERROR_DUMMY 2020-11-16 13:09:41 +01:00
suites Merge pull request #3602 from gufe44/arc4random_buf-implicit-2.16 2020-11-12 12:12:45 +01: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 Reduce the use of grep 2021-03-10 23:31:02 +01:00