mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-04-16 08:42:50 +00:00
opt-testcases/*.sh are not executable
The *.sh files in opt-testcases cannot be executed directly: they can only be sourced by ssl-opt.sh. So don't make them executable and don't give them a shebang line. Also make sure that the first paragraph of each file is a short description. Signed-off-by: Gilles Peskine <Gilles.Peskine@arm.com>
This commit is contained in:
parent
26fc0390c9
commit
ab84fe8052
18
tests/opt-testcases/tls13-compat.sh
Executable file → Normal file
18
tests/opt-testcases/tls13-compat.sh
Executable file → Normal file
@ -1,18 +1,12 @@
|
|||||||
#!/bin/sh
|
# TLS 1.3 interoperability test cases (equivalent of compat.sh for TLS 1.3).
|
||||||
|
# They are generated by
|
||||||
# tls13-compat.sh
|
# `tests/scripts/generate_tls13_compat_tests.py -a -o ./tests/opt-testcases/tls13-compat.sh`.
|
||||||
#
|
|
||||||
# Copyright The Mbed TLS Contributors
|
|
||||||
# SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later
|
|
||||||
#
|
|
||||||
# Purpose
|
|
||||||
#
|
|
||||||
# List TLS1.3 compat test cases. They are generated by
|
|
||||||
# `./tests/scripts/generate_tls13_compat_tests.py -a -o ./tests/opt-testcases/tls13-compat.sh`.
|
|
||||||
#
|
#
|
||||||
# PLEASE DO NOT EDIT THIS FILE. IF NEEDED, PLEASE MODIFY `generate_tls13_compat_tests.py`
|
# PLEASE DO NOT EDIT THIS FILE. IF NEEDED, PLEASE MODIFY `generate_tls13_compat_tests.py`
|
||||||
# AND REGENERATE THIS FILE.
|
# AND REGENERATE THIS FILE.
|
||||||
#
|
|
||||||
|
# Copyright The Mbed TLS Contributors
|
||||||
|
# SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later
|
||||||
|
|
||||||
DATA_FILES_PATH=../framework/data_files
|
DATA_FILES_PATH=../framework/data_files
|
||||||
requires_config_enabled MBEDTLS_SSL_SRV_C
|
requires_config_enabled MBEDTLS_SSL_SRV_C
|
||||||
|
12
tests/opt-testcases/tls13-kex-modes.sh
Executable file → Normal file
12
tests/opt-testcases/tls13-kex-modes.sh
Executable file → Normal file
@ -1,14 +1,12 @@
|
|||||||
#!/bin/sh
|
# Systematic testing of TLS 1.3 key exchange modes.
|
||||||
|
|
||||||
# tls13-kex-modes.sh
|
|
||||||
#
|
|
||||||
# Copyright The Mbed TLS Contributors
|
|
||||||
# SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later
|
|
||||||
#
|
|
||||||
|
|
||||||
# DO NOT ADD NEW TEST CASES INTO THIS FILE. The left cases will be generated by
|
# DO NOT ADD NEW TEST CASES INTO THIS FILE. The left cases will be generated by
|
||||||
# scripts in future(#6280)
|
# scripts in future(#6280)
|
||||||
|
|
||||||
|
# Copyright The Mbed TLS Contributors
|
||||||
|
# SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later
|
||||||
|
#
|
||||||
|
|
||||||
requires_gnutls_tls1_3
|
requires_gnutls_tls1_3
|
||||||
requires_all_configs_enabled MBEDTLS_SSL_PROTO_TLS1_3 MBEDTLS_SSL_TLS1_3_COMPATIBILITY_MODE MBEDTLS_SSL_SRV_C MBEDTLS_DEBUG_C
|
requires_all_configs_enabled MBEDTLS_SSL_PROTO_TLS1_3 MBEDTLS_SSL_TLS1_3_COMPATIBILITY_MODE MBEDTLS_SSL_SRV_C MBEDTLS_DEBUG_C
|
||||||
requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_ENABLED
|
requires_config_enabled MBEDTLS_SSL_TLS1_3_KEY_EXCHANGE_MODE_PSK_ENABLED
|
||||||
|
4
tests/opt-testcases/tls13-misc.sh
Executable file → Normal file
4
tests/opt-testcases/tls13-misc.sh
Executable file → Normal file
@ -1,7 +1,5 @@
|
|||||||
#!/bin/sh
|
# Miscellaneous tests of TLS 1.3 features.
|
||||||
|
|
||||||
# tls13-misc.sh
|
|
||||||
#
|
|
||||||
# Copyright The Mbed TLS Contributors
|
# Copyright The Mbed TLS Contributors
|
||||||
# SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later
|
# SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later
|
||||||
#
|
#
|
||||||
|
@ -533,21 +533,16 @@ def generate_hrr_compat_test(client=None, server=None,
|
|||||||
client_object.pre_checks() +
|
client_object.pre_checks() +
|
||||||
[cmd])
|
[cmd])
|
||||||
|
|
||||||
SSL_OUTPUT_HEADER = '''#!/bin/sh
|
SSL_OUTPUT_HEADER = '''\
|
||||||
|
# TLS 1.3 interoperability test cases (equivalent of compat.sh for TLS 1.3).
|
||||||
# {filename}
|
# They are generated by
|
||||||
#
|
|
||||||
# Copyright The Mbed TLS Contributors
|
|
||||||
# SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later
|
|
||||||
#
|
|
||||||
# Purpose
|
|
||||||
#
|
|
||||||
# List TLS1.3 compat test cases. They are generated by
|
|
||||||
# `{cmd}`.
|
# `{cmd}`.
|
||||||
#
|
#
|
||||||
# PLEASE DO NOT EDIT THIS FILE. IF NEEDED, PLEASE MODIFY `generate_tls13_compat_tests.py`
|
# PLEASE DO NOT EDIT THIS FILE. IF NEEDED, PLEASE MODIFY `generate_tls13_compat_tests.py`
|
||||||
# AND REGENERATE THIS FILE.
|
# AND REGENERATE THIS FILE.
|
||||||
#
|
|
||||||
|
# Copyright The Mbed TLS Contributors
|
||||||
|
# SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later
|
||||||
'''
|
'''
|
||||||
DATA_FILES_PATH_VAR = '''
|
DATA_FILES_PATH_VAR = '''
|
||||||
DATA_FILES_PATH=../framework/data_files
|
DATA_FILES_PATH=../framework/data_files
|
||||||
|
Loading…
x
Reference in New Issue
Block a user