mirror of
https://github.com/yuzu-emu/mbedtls.git
synced 2024-11-24 04:45:41 +01:00
efa2ac879d
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)
96 lines
3.2 KiB
Plaintext
96 lines
3.2 KiB
Plaintext
NULL Encrypt and decrypt 0 bytes
|
|
depends_on:MBEDTLS_CIPHER_NULL_CIPHER
|
|
enc_dec_buf:MBEDTLS_CIPHER_NULL:"NULL":0:0:-1
|
|
|
|
NULL Encrypt and decrypt 1 bytes
|
|
depends_on:MBEDTLS_CIPHER_NULL_CIPHER
|
|
enc_dec_buf:MBEDTLS_CIPHER_NULL:"NULL":0:1:-1
|
|
|
|
NULL Encrypt and decrypt 2 bytes
|
|
depends_on:MBEDTLS_CIPHER_NULL_CIPHER
|
|
enc_dec_buf:MBEDTLS_CIPHER_NULL:"NULL":0:2:-1
|
|
|
|
NULL Encrypt and decrypt 7 bytes
|
|
depends_on:MBEDTLS_CIPHER_NULL_CIPHER
|
|
enc_dec_buf:MBEDTLS_CIPHER_NULL:"NULL":0:7:-1
|
|
|
|
NULL Encrypt and decrypt 8 bytes
|
|
depends_on:MBEDTLS_CIPHER_NULL_CIPHER
|
|
enc_dec_buf:MBEDTLS_CIPHER_NULL:"NULL":0:8:-1
|
|
|
|
NULL Encrypt and decrypt 9 bytes
|
|
depends_on:MBEDTLS_CIPHER_NULL_CIPHER
|
|
enc_dec_buf:MBEDTLS_CIPHER_NULL:"NULL":0:9:-1
|
|
|
|
NULL Encrypt and decrypt 15 bytes
|
|
depends_on:MBEDTLS_CIPHER_NULL_CIPHER
|
|
enc_dec_buf:MBEDTLS_CIPHER_NULL:"NULL":0:15:-1
|
|
|
|
NULL Encrypt and decrypt 16 bytes
|
|
depends_on:MBEDTLS_CIPHER_NULL_CIPHER
|
|
enc_dec_buf:MBEDTLS_CIPHER_NULL:"NULL":0:16:-1
|
|
|
|
NULL Encrypt and decrypt 31 bytes
|
|
depends_on:MBEDTLS_CIPHER_NULL_CIPHER
|
|
enc_dec_buf:MBEDTLS_CIPHER_NULL:"NULL":0:31:-1
|
|
|
|
NULL Encrypt and decrypt 32 bytes
|
|
depends_on:MBEDTLS_CIPHER_NULL_CIPHER
|
|
enc_dec_buf:MBEDTLS_CIPHER_NULL:"NULL":0:32:-1
|
|
|
|
NULL Encrypt and decrypt 33 bytes
|
|
depends_on:MBEDTLS_CIPHER_NULL_CIPHER
|
|
enc_dec_buf:MBEDTLS_CIPHER_NULL:"NULL":0:33:-1
|
|
|
|
NULL Encrypt and decrypt 47 bytes
|
|
depends_on:MBEDTLS_CIPHER_NULL_CIPHER
|
|
enc_dec_buf:MBEDTLS_CIPHER_NULL:"NULL":0:47:-1
|
|
|
|
NULL Encrypt and decrypt 48 bytes
|
|
depends_on:MBEDTLS_CIPHER_NULL_CIPHER
|
|
enc_dec_buf:MBEDTLS_CIPHER_NULL:"NULL":0:48:-1
|
|
|
|
NULL Encrypt and decrypt 49 bytes
|
|
depends_on:MBEDTLS_CIPHER_NULL_CIPHER
|
|
enc_dec_buf:MBEDTLS_CIPHER_NULL:"NULL":0:49:-1
|
|
|
|
NULL Encrypt and decrypt 1 bytes in multiple parts 1
|
|
depends_on:MBEDTLS_CIPHER_NULL_CIPHER
|
|
enc_dec_buf_multipart:MBEDTLS_CIPHER_NULL:0:1:0:-1:1:0:1:0
|
|
|
|
NULL Encrypt and decrypt 1 bytes in multiple parts 2
|
|
depends_on:MBEDTLS_CIPHER_NULL_CIPHER
|
|
enc_dec_buf_multipart:MBEDTLS_CIPHER_NULL:0:0:1:-1:0:1:0:1
|
|
|
|
NULL Encrypt and decrypt 16 bytes in multiple parts 1
|
|
depends_on:MBEDTLS_CIPHER_NULL_CIPHER
|
|
enc_dec_buf_multipart:MBEDTLS_CIPHER_NULL:0:16:0:-1:16:0:16:0
|
|
|
|
NULL Encrypt and decrypt 16 bytes in multiple parts 2
|
|
depends_on:MBEDTLS_CIPHER_NULL_CIPHER
|
|
enc_dec_buf_multipart:MBEDTLS_CIPHER_NULL:0:0:16:-1:0:16:0:16
|
|
|
|
NULL Encrypt and decrypt 16 bytes in multiple parts 3
|
|
depends_on:MBEDTLS_CIPHER_NULL_CIPHER
|
|
enc_dec_buf_multipart:MBEDTLS_CIPHER_NULL:0:1:15:-1:1:15:1:15
|
|
|
|
NULL Encrypt and decrypt 16 bytes in multiple parts 4
|
|
depends_on:MBEDTLS_CIPHER_NULL_CIPHER
|
|
enc_dec_buf_multipart:MBEDTLS_CIPHER_NULL:0:15:1:-1:15:1:15:1
|
|
|
|
NULL Encrypt and decrypt 22 bytes in multiple parts 1 [#1]
|
|
depends_on:MBEDTLS_CIPHER_NULL_CIPHER
|
|
enc_dec_buf_multipart:MBEDTLS_CIPHER_NULL:0:15:7:-1:15:7:15:7
|
|
|
|
NULL Encrypt and decrypt 22 bytes in multiple parts 1 [#2]
|
|
depends_on:MBEDTLS_CIPHER_NULL_CIPHER
|
|
enc_dec_buf_multipart:MBEDTLS_CIPHER_NULL:0:16:6:-1:16:6:16:6
|
|
|
|
NULL Encrypt and decrypt 22 bytes in multiple parts 1 [#3]
|
|
depends_on:MBEDTLS_CIPHER_NULL_CIPHER
|
|
enc_dec_buf_multipart:MBEDTLS_CIPHER_NULL:0:17:6:-1:17:6:17:6
|
|
|
|
NULL Encrypt and decrypt 32 bytes in multiple parts 1
|
|
depends_on:MBEDTLS_CIPHER_NULL_CIPHER
|
|
enc_dec_buf_multipart:MBEDTLS_CIPHER_NULL:0:16:16:-1:16:16:16:16
|