test: move temp files to out_of_source

Signed-off-by: Yi Wu <yi.wu2@arm.com>
This commit is contained in:
Yi Wu 2026-06-15 09:49:13 +01:00
parent 8345e68b53
commit b3ab8755ee

View File

@ -110,10 +110,12 @@ component_check_test_dependencies () {
# justified, or known issues yet to be resolved, so this component includes # justified, or known issues yet to be resolved, so this component includes
# a list of expected exceptions. # a list of expected exceptions.
crypto="check-test-deps-crypto-$$" out_of_source_dir="$OUT_OF_SOURCE_DIR/check-test-deps-$$"
used="check-test-deps-used-$$" mkdir -p "$out_of_source_dir"
found="check-test-deps-found-$$" crypto="$out_of_source_dir/crypto"
expected="check-test-deps-expected-$$" used="$out_of_source_dir/used"
found="$out_of_source_dir/found"
expected="$out_of_source_dir/expected"
( (
cd tf-psa-crypto cd tf-psa-crypto
@ -123,7 +125,7 @@ component_check_test_dependencies () {
) | sort -u > $crypto ) | sort -u > $crypto
( (
grep depends_on \ grep depends_on \
tests/suites/test_suite_*.data \ tests/suites/test_suite_*.data \
tests/suites/test_suite_*.function | tests/suites/test_suite_*.function |
sed -e 's/.*depends_on:\([^ ]*\).*/\1/' -e's/!//g' | sed -e 's/.*depends_on:\([^ ]*\).*/\1/' -e's/!//g' |
@ -156,9 +158,9 @@ component_check_test_dependencies () {
# add it to the exceptions list above with a justification. # add it to the exceptions list above with a justification.
# - Each '-' line is a macro that was expected but not found; it means the # - Each '-' line is a macro that was expected but not found; it means the
# exceptions list above should be updated by removing that macro. # exceptions list above should be updated by removing that macro.
diff -U0 $expected $found diff -U0 "$expected" "$found"
rm $found $expected $crypto $used rm -rf "$out_of_source_dir"
} }
component_check_doxygen_warnings () { component_check_doxygen_warnings () {