1
0
mirror of https://github.com/Mbed-TLS/mbedtls.git synced 2025-10-18 16:08:54 +03:00

Adapt basic-build-test.sh to make deprecation

Signed-off-by: Ronald Cron <ronald.cron@arm.com>
This commit is contained in:
Ronald Cron
2025-09-24 09:50:06 +02:00
parent caaf52d6d0
commit e5bae0dde3

View File

@@ -71,11 +71,10 @@ echo
# Step 1 - Make and instrumented build for code coverage # Step 1 - Make and instrumented build for code coverage
export CFLAGS=' --coverage -g3 -O0 ' export CFLAGS=' --coverage -g3 -O0 '
export LDFLAGS=' --coverage' export LDFLAGS=' --coverage'
make clean make -f scripts/legacy.make clean
cp "$CONFIG_H" "$CONFIG_BAK" cp "$CONFIG_H" "$CONFIG_BAK"
scripts/config.py full scripts/config.py full
make make -f scripts/legacy.make
# Step 2 - Execute the tests # Step 2 - Execute the tests
TEST_OUTPUT=out_${PPID} TEST_OUTPUT=out_${PPID}
@@ -119,7 +118,7 @@ echo
# Step 3 - Process the coverage report # Step 3 - Process the coverage report
cd .. cd ..
{ {
make lcov make -f scripts/legacy.make lcov
echo SUCCESS echo SUCCESS
} | tee tests/cov-$TEST_OUTPUT } | tee tests/cov-$TEST_OUTPUT
@@ -237,7 +236,7 @@ rm -f "tests/basic-build-test-$$.ok"
touch "basic-build-test-$$.ok" touch "basic-build-test-$$.ok"
} | tee coverage-summary.txt } | tee coverage-summary.txt
make clean make -f scripts/legacy.make clean
if [ -f "$CONFIG_BAK" ]; then if [ -f "$CONFIG_BAK" ]; then
mv "$CONFIG_BAK" "$CONFIG_H" mv "$CONFIG_BAK" "$CONFIG_H"