2016-06-01 16:36:18 +02:00
|
|
|
Create NV seed_file
|
|
|
|
nv_seed_file_create:
|
|
|
|
|
Uniquify test case descriptions
Make check-test-cases.py pass.
Prior to this commit, there were many repeated test descriptions, but
none with the same test data and dependencies and comments, as checked
with the following command:
for x in tests/suites/*.data; do perl -00 -ne 'warn "$ARGV: $. = $seen{$_}\n" if $seen{$_}; $seen{$_}=$.' $x; done
Wherever a test suite contains multiple test cases with the exact same
description, add " [#1]", " [#2]", etc. to make the descriptions
unique. We don't currently use this particular arrangement of
punctuation, so all occurrences of " [#" were added by this script.
I used the following ad hoc code:
import sys
def fix_test_suite(data_file_name):
in_paragraph = False
total = {}
index = {}
lines = None
with open(data_file_name) as data_file:
lines = list(data_file.readlines())
for line in lines:
if line == '\n':
in_paragraph = False
continue
if line.startswith('#'):
continue
if not in_paragraph:
# This is a test case description line.
total[line] = total.get(line, 0) + 1
index[line] = 0
in_paragraph = True
with open(data_file_name, 'w') as data_file:
for line in lines:
if line in total and total[line] > 1:
index[line] += 1
line = '%s [#%d]\n' % (line[:-1], index[line])
data_file.write(line)
for data_file_name in sys.argv[1:]:
fix_test_suite(data_file_name)
2019-09-19 21:20:26 +02:00
|
|
|
Entropy write/update seed file [#1]
|
2014-05-30 10:38:18 +02:00
|
|
|
entropy_seed_file:"data_files/entropy_seed":0
|
|
|
|
|
Uniquify test case descriptions
Make check-test-cases.py pass.
Prior to this commit, there were many repeated test descriptions, but
none with the same test data and dependencies and comments, as checked
with the following command:
for x in tests/suites/*.data; do perl -00 -ne 'warn "$ARGV: $. = $seen{$_}\n" if $seen{$_}; $seen{$_}=$.' $x; done
Wherever a test suite contains multiple test cases with the exact same
description, add " [#1]", " [#2]", etc. to make the descriptions
unique. We don't currently use this particular arrangement of
punctuation, so all occurrences of " [#" were added by this script.
I used the following ad hoc code:
import sys
def fix_test_suite(data_file_name):
in_paragraph = False
total = {}
index = {}
lines = None
with open(data_file_name) as data_file:
lines = list(data_file.readlines())
for line in lines:
if line == '\n':
in_paragraph = False
continue
if line.startswith('#'):
continue
if not in_paragraph:
# This is a test case description line.
total[line] = total.get(line, 0) + 1
index[line] = 0
in_paragraph = True
with open(data_file_name, 'w') as data_file:
for line in lines:
if line in total and total[line] > 1:
index[line] += 1
line = '%s [#%d]\n' % (line[:-1], index[line])
data_file.write(line)
for data_file_name in sys.argv[1:]:
fix_test_suite(data_file_name)
2019-09-19 21:20:26 +02:00
|
|
|
Entropy write/update seed file [#2]
|
2015-04-08 12:49:31 +02:00
|
|
|
entropy_seed_file:"no_such_dir/file":MBEDTLS_ERR_ENTROPY_FILE_IO_ERROR
|
2014-05-30 10:38:18 +02:00
|
|
|
|
2014-05-30 11:42:01 +02:00
|
|
|
Entropy too many sources
|
|
|
|
entropy_too_many_sources:
|
|
|
|
|
|
|
|
Entropy output length #1
|
|
|
|
entropy_func_len:0:0
|
|
|
|
|
|
|
|
Entropy output length #2
|
|
|
|
entropy_func_len:1:0
|
|
|
|
|
|
|
|
Entropy output length #3
|
|
|
|
entropy_func_len:2:0
|
|
|
|
|
|
|
|
Entropy output length #4
|
|
|
|
entropy_func_len:31:0
|
|
|
|
|
|
|
|
Entropy output length #5
|
2015-04-08 12:49:31 +02:00
|
|
|
entropy_func_len:65:MBEDTLS_ERR_ENTROPY_SOURCE_FAILED
|
2014-05-30 11:42:01 +02:00
|
|
|
|
|
|
|
Entropy failing source
|
|
|
|
entropy_source_fail:"data_files/entropy_seed"
|
|
|
|
|
|
|
|
Entropy threshold #1
|
|
|
|
entropy_threshold:16:2:8
|
|
|
|
|
|
|
|
Entropy threshold #2
|
|
|
|
entropy_threshold:32:1:32
|
|
|
|
|
2017-07-23 11:22:45 +02:00
|
|
|
Entropy threshold #3
|
2015-04-08 12:49:31 +02:00
|
|
|
entropy_threshold:16:0:MBEDTLS_ERR_ENTROPY_SOURCE_FAILED
|
2014-05-30 11:42:01 +02:00
|
|
|
|
2017-07-23 11:22:45 +02:00
|
|
|
Entropy threshold #4
|
2015-04-08 12:49:31 +02:00
|
|
|
entropy_threshold:1024:1:MBEDTLS_ERR_ENTROPY_SOURCE_FAILED
|
2014-05-30 11:42:01 +02:00
|
|
|
|
2016-06-01 16:36:18 +02:00
|
|
|
Check NV seed standard IO
|
|
|
|
entropy_nv_seed_std_io:
|
|
|
|
|
|
|
|
Check NV seed manually #1
|
|
|
|
entropy_nv_seed:"00112233445566778899AABBCCDDEEFF00112233445566778899AABBCCDDEEFF00112233445566778899AABBCCDDEEFF00112233445566778899AABBCCDDEEFF"
|
|
|
|
|
|
|
|
Check NV seed manually #2
|
|
|
|
entropy_nv_seed:"00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000"
|
|
|
|
|
|
|
|
Check NV seed manually #3
|
|
|
|
entropy_nv_seed:"ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff"
|
|
|
|
|
2017-07-24 13:27:09 +02:00
|
|
|
Entropy self test
|
|
|
|
depends_on:!MBEDTLS_TEST_NULL_ENTROPY
|
2016-09-15 19:42:26 +02:00
|
|
|
entropy_selftest:0
|
|
|
|
|
|
|
|
Entropy self test (MBEDTLS_TEST_NULL_ENTROPY)
|
|
|
|
depends_on:MBEDTLS_TEST_NULL_ENTROPY
|
|
|
|
entropy_selftest:1
|