mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-01-30 06:33:06 +00:00
Created placeholder component files.
Signed-off-by: Minos Galanakis <minos.galanakis@arm.com>
This commit is contained in:
parent
b16b8c2c0c
commit
6aab5b7109
@ -1092,6 +1092,10 @@ helper_get_psa_key_type_list() {
|
||||
echo "$loc_list"
|
||||
}
|
||||
|
||||
# Include the components from components.sh
|
||||
test_script_dir="${0%/*}"
|
||||
source "$test_script_dir/components.sh"
|
||||
|
||||
# Helper function for controlling (start & stop) the psasim server.
|
||||
helper_psasim_server() {
|
||||
OPERATION=$1
|
||||
|
12
tests/scripts/components-basic-checks.sh
Normal file
12
tests/scripts/components-basic-checks.sh
Normal file
@ -0,0 +1,12 @@
|
||||
# components-basic-checks.sh
|
||||
#
|
||||
# Copyright The Mbed TLS Contributors
|
||||
# SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later
|
||||
|
||||
# This file contains the test components that are executed by all.sh
|
||||
|
||||
################################################################
|
||||
#### Basic checks
|
||||
################################################################
|
||||
|
||||
|
12
tests/scripts/components-build-system.sh
Normal file
12
tests/scripts/components-build-system.sh
Normal file
@ -0,0 +1,12 @@
|
||||
# components-build-system.sh
|
||||
#
|
||||
# Copyright The Mbed TLS Contributors
|
||||
# SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later
|
||||
|
||||
# This file contains the test components that are executed by all.sh
|
||||
|
||||
################################################################
|
||||
#### Build System Testing
|
||||
################################################################
|
||||
|
||||
|
12
tests/scripts/components-compiler.sh
Normal file
12
tests/scripts/components-compiler.sh
Normal file
@ -0,0 +1,12 @@
|
||||
# components-compiler.sh
|
||||
#
|
||||
# Copyright The Mbed TLS Contributors
|
||||
# SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later
|
||||
|
||||
# This file contains the test components that are executed by all.sh
|
||||
|
||||
################################################################
|
||||
#### Compiler Testing
|
||||
################################################################
|
||||
|
||||
|
12
tests/scripts/components-compliance.sh
Normal file
12
tests/scripts/components-compliance.sh
Normal file
@ -0,0 +1,12 @@
|
||||
# components-sanitizers.sh
|
||||
#
|
||||
# Copyright The Mbed TLS Contributors
|
||||
# SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later
|
||||
|
||||
# This file contains the test components that are executed by all.sh
|
||||
|
||||
################################################################
|
||||
#### Compliance Testing
|
||||
################################################################
|
||||
|
||||
|
12
tests/scripts/components-configuration-crypto.sh
Normal file
12
tests/scripts/components-configuration-crypto.sh
Normal file
@ -0,0 +1,12 @@
|
||||
# components-configuration-crypto.sh
|
||||
#
|
||||
# Copyright The Mbed TLS Contributors
|
||||
# SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later
|
||||
|
||||
# This file contains the test components that are executed by all.sh
|
||||
|
||||
################################################################
|
||||
#### Configuration Testing - Crypto
|
||||
################################################################
|
||||
|
||||
|
0
tests/scripts/components-configuration-platform.sh
Normal file
0
tests/scripts/components-configuration-platform.sh
Normal file
12
tests/scripts/components-configuration-tls.sh
Normal file
12
tests/scripts/components-configuration-tls.sh
Normal file
@ -0,0 +1,12 @@
|
||||
# components-configuration-tls.sh
|
||||
#
|
||||
# Copyright The Mbed TLS Contributors
|
||||
# SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later
|
||||
|
||||
# This file contains the test components that are executed by all.sh
|
||||
|
||||
################################################################
|
||||
#### Configuration Testing - TLS
|
||||
################################################################
|
||||
|
||||
|
12
tests/scripts/components-configuration-x509.sh
Normal file
12
tests/scripts/components-configuration-x509.sh
Normal file
@ -0,0 +1,12 @@
|
||||
# components-configuration-x509.sh
|
||||
#
|
||||
# Copyright The Mbed TLS Contributors
|
||||
# SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later
|
||||
|
||||
# This file contains the test components that are executed by all.sh
|
||||
|
||||
################################################################
|
||||
#### Configuration Testing - X509
|
||||
################################################################
|
||||
|
||||
|
12
tests/scripts/components-configuration.sh
Normal file
12
tests/scripts/components-configuration.sh
Normal file
@ -0,0 +1,12 @@
|
||||
# components-configuration.sh
|
||||
#
|
||||
# Copyright The Mbed TLS Contributors
|
||||
# SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later
|
||||
|
||||
# This file contains the test components that are executed by all.sh
|
||||
|
||||
################################################################
|
||||
#### Configuration Testing
|
||||
################################################################
|
||||
|
||||
|
11
tests/scripts/components-platform.sh
Normal file
11
tests/scripts/components-platform.sh
Normal file
@ -0,0 +1,11 @@
|
||||
# components-platform.sh
|
||||
#
|
||||
# Copyright The Mbed TLS Contributors
|
||||
# SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later
|
||||
|
||||
# This file contains the test components that are executed by all.sh
|
||||
|
||||
################################################################
|
||||
#### Platform Testing
|
||||
################################################################
|
||||
|
11
tests/scripts/components-sanitizers.sh
Normal file
11
tests/scripts/components-sanitizers.sh
Normal file
@ -0,0 +1,11 @@
|
||||
# components-sanitizers.sh
|
||||
#
|
||||
# Copyright The Mbed TLS Contributors
|
||||
# SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later
|
||||
|
||||
# This file contains the test components that are executed by all.sh
|
||||
|
||||
################################################################
|
||||
#### Sanitizer Testing
|
||||
################################################################
|
||||
|
42
tests/scripts/components.sh
Normal file
42
tests/scripts/components.sh
Normal file
@ -0,0 +1,42 @@
|
||||
# components.sh
|
||||
#
|
||||
# Copyright The Mbed TLS Contributors
|
||||
# SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later
|
||||
|
||||
# This file contains the test components that are executed by all.sh
|
||||
|
||||
# The functions below are named as follows:
|
||||
# * component_XXX: independent components. They can be run in any order.
|
||||
# * component_check_XXX: quick tests that aren't worth parallelizing.
|
||||
# * component_build_XXX: build things but don't run them.
|
||||
# * component_test_XXX: build and test.
|
||||
# * component_release_XXX: tests that the CI should skip during PR testing.
|
||||
# * support_XXX: if support_XXX exists and returns false then
|
||||
# component_XXX is not run by default.
|
||||
|
||||
# Each component must start by invoking `msg` with a short informative message.
|
||||
#
|
||||
# Warning: due to the way bash detects errors, the failure of a command
|
||||
# inside 'if' or '!' is not detected. Use the 'not' function instead of '!'.
|
||||
#
|
||||
# Each component is executed in a separate shell process. The component
|
||||
# fails if any command in it returns a non-zero status.
|
||||
#
|
||||
# The framework in all.sh performs some cleanup tasks after each component.
|
||||
# This means that components can assume that the working directory is in a
|
||||
# cleaned-up state, and don't need to perform the cleanup themselves.
|
||||
# * Run `make clean`.
|
||||
# * Restore `include/mbedtls/mbedtls_config.h` from a backup made before running
|
||||
# the component.
|
||||
# * Check out `Makefile`, `library/Makefile`, `programs/Makefile`,
|
||||
# `tests/Makefile` and `programs/fuzz/Makefile` from git.
|
||||
# This cleans up after an in-tree use of CMake.
|
||||
#
|
||||
# The tests are roughly in order from fastest to slowest. This doesn't
|
||||
# have to be exact, but in general you should add slower tests towards
|
||||
# the end and fast checks near the beginning.
|
||||
|
||||
|
||||
################################################################
|
||||
#### Build and test many configurations and targets
|
||||
################################################################
|
Loading…
x
Reference in New Issue
Block a user