Skip to content

Commit

Permalink
Add all.sh test_default_no_deprecated component
Browse files Browse the repository at this point in the history
Signed-off-by: Thomas Daubney <[email protected]>
  • Loading branch information
tom-daubney-arm committed Dec 14, 2023
1 parent cdb62ac commit 53c3465
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions tests/all_sh_components.txt
Original file line number Diff line number Diff line change
Expand Up @@ -206,3 +206,23 @@ component_test_cmake_shared () {
cd "$TF_PSA_CRYPTO_ROOT_DIR"
rm -rf "$OUT_OF_SOURCE_DIR"
}

component_test_default_no_deprecated () {
# Test that removing the deprecated features from the default
# configuration leaves something consistent.
msg "build: make, default + PSA_CRYPTO_DEPRECATED_REMOVED" # ~ 30s
scripts/config.py -f "include/psa/crypto_config.h" set PSA_CRYPTO_DEPRECATED_REMOVED

TF_PSA_CRYPTO_ROOT_DIR="$PWD"
mkdir "$OUT_OF_SOURCE_DIR"
cd "$OUT_OF_SOURCE_DIR"

cmake -DCMAKE_C_FLAGS="-O -Werror -Wall -Wextra" ..
make

msg "test: make, default + PSA_CRYPTO_DEPRECATED_REMOVED" # ~ 5s
make test

cd "$TF_PSA_CRYPTO_ROOT_DIR"
rm -rf "$OUT_OF_SOURCE_DIR"
}

0 comments on commit 53c3465

Please sign in to comment.