diff --git a/tests/Makefile b/tests/Makefile index a92064dae1..639f689cc9 100644 --- a/tests/Makefile +++ b/tests/Makefile @@ -231,7 +231,7 @@ ifndef WINDOWS rm -f src/*.o src/test_helpers/*.o src/libmbed* rm -f ../framework/tests/src/*.o ../framework/tests/src/drivers/*.o rm -f include/test/instrument_record_status.h - rm -f include/alt-extra/*/*_alt.h + rm -f ../framework/tests/include/alt-extra/*/*_alt.h rm -rf libtestdriver1 rm -f ../library/libtestdriver1.a else @@ -253,7 +253,7 @@ check: $(BINARIES) test: check # Generate variants of some headers for testing -include/alt-extra/%_alt.h: ../include/%.h +../framework/tests/include/alt-extra/%_alt.h: ../include/%.h perl -p -e 's/^(# *(define|ifndef) +\w+_)H\b/$${1}ALT_H/' $< >$@ # Generate test library diff --git a/tests/scripts/components-configuration-crypto.sh b/tests/scripts/components-configuration-crypto.sh index b05f1c0457..9143665e87 100644 --- a/tests/scripts/components-configuration-crypto.sh +++ b/tests/scripts/components-configuration-crypto.sh @@ -3276,7 +3276,7 @@ component_build_psa_alt_headers () { # Generate alternative versions of the substitutable headers with the # same content except different include guards. - make -C tests include/alt-extra/psa/crypto_platform_alt.h include/alt-extra/psa/crypto_struct_alt.h + make -C tests ../framework/tests/include/alt-extra/psa/crypto_platform_alt.h ../framework/tests/include/alt-extra/psa/crypto_struct_alt.h # Build the library and some programs. # Don't build the fuzzers to avoid having to go through hoops to set