From 0d7c64dd8fbc2c3f2ba553d05485ecb8b95d9b66 Mon Sep 17 00:00:00 2001 From: Steven Cooreman Date: Mon, 7 Sep 2020 16:17:55 +0200 Subject: [PATCH] Changed test driver include folder to reflect it's a test driver Signed-off-by: Steven Cooreman --- library/psa_crypto_driver_wrappers.c | 2 +- scripts/generate_visualc_files.pl | 2 +- tests/include/{ => test}/drivers/keygen.h | 0 tests/include/{ => test}/drivers/signature.h | 0 tests/include/{ => test}/drivers/test_driver.h | 4 ++-- tests/src/drivers/keygen.c | 2 +- tests/src/drivers/signature.c | 2 +- tests/suites/test_suite_psa_crypto_driver_wrappers.function | 2 +- visualc/VS2010/mbedTLS.vcxproj | 6 +++--- 9 files changed, 10 insertions(+), 10 deletions(-) rename tests/include/{ => test}/drivers/keygen.h (100%) rename tests/include/{ => test}/drivers/signature.h (100%) rename tests/include/{ => test}/drivers/test_driver.h (92%) diff --git a/library/psa_crypto_driver_wrappers.c b/library/psa_crypto_driver_wrappers.c index 56bb0035f..cc51e2450 100644 --- a/library/psa_crypto_driver_wrappers.c +++ b/library/psa_crypto_driver_wrappers.c @@ -33,7 +33,7 @@ #ifndef PSA_CRYPTO_ACCELERATOR_DRIVER_PRESENT #define PSA_CRYPTO_ACCELERATOR_DRIVER_PRESENT #endif -#include "drivers/test_driver.h" +#include "test/drivers/test_driver.h" #endif /* PSA_CRYPTO_DRIVER_TEST */ /* Repeat above block for each JSON-declared driver during autogeneration */ diff --git a/scripts/generate_visualc_files.pl b/scripts/generate_visualc_files.pl index 469595518..6c2b5e4ab 100755 --- a/scripts/generate_visualc_files.pl +++ b/scripts/generate_visualc_files.pl @@ -39,7 +39,7 @@ my $psa_header_dir = 'include/psa'; my $source_dir = 'library'; my $test_source_dir = 'tests/src'; my $test_header_dir = 'tests/include/test'; -my $test_drivers_header_dir = 'tests/include/drivers'; +my $test_drivers_header_dir = 'tests/include/test/drivers'; my @thirdparty_header_dirs = qw( 3rdparty/everest/include/everest diff --git a/tests/include/drivers/keygen.h b/tests/include/test/drivers/keygen.h similarity index 100% rename from tests/include/drivers/keygen.h rename to tests/include/test/drivers/keygen.h diff --git a/tests/include/drivers/signature.h b/tests/include/test/drivers/signature.h similarity index 100% rename from tests/include/drivers/signature.h rename to tests/include/test/drivers/signature.h diff --git a/tests/include/drivers/test_driver.h b/tests/include/test/drivers/test_driver.h similarity index 92% rename from tests/include/drivers/test_driver.h rename to tests/include/test/drivers/test_driver.h index 98dded8d2..75135e0f4 100644 --- a/tests/include/drivers/test_driver.h +++ b/tests/include/test/drivers/test_driver.h @@ -22,7 +22,7 @@ #define PSA_CRYPTO_TEST_DRIVER_LIFETIME 0x7fffff -#include "drivers/signature.h" -#include "drivers/keygen.h" +#include "test/drivers/signature.h" +#include "test/drivers/keygen.h" #endif /* PSA_CRYPTO_TEST_DRIVER_H */ diff --git a/tests/src/drivers/keygen.c b/tests/src/drivers/keygen.c index d493ab3e1..f15a4bc9a 100644 --- a/tests/src/drivers/keygen.c +++ b/tests/src/drivers/keygen.c @@ -30,7 +30,7 @@ #include "mbedtls/ecp.h" #include "mbedtls/error.h" -#include "drivers/keygen.h" +#include "test/drivers/keygen.h" #include "test/random.h" diff --git a/tests/src/drivers/signature.c b/tests/src/drivers/signature.c index 5299a9654..028d24a09 100644 --- a/tests/src/drivers/signature.c +++ b/tests/src/drivers/signature.c @@ -30,7 +30,7 @@ #include "psa_crypto_core.h" #include "mbedtls/ecp.h" -#include "drivers/signature.h" +#include "test/drivers/signature.h" #include "mbedtls/md.h" #include "mbedtls/ecdsa.h" diff --git a/tests/suites/test_suite_psa_crypto_driver_wrappers.function b/tests/suites/test_suite_psa_crypto_driver_wrappers.function index c3830a76b..917798237 100644 --- a/tests/suites/test_suite_psa_crypto_driver_wrappers.function +++ b/tests/suites/test_suite_psa_crypto_driver_wrappers.function @@ -1,7 +1,7 @@ /* BEGIN_HEADER */ #include "test/psa_crypto_helpers.h" -#include "drivers/test_driver.h" +#include "test/drivers/test_driver.h" /* END_HEADER */ /* BEGIN_DEPENDENCIES diff --git a/visualc/VS2010/mbedTLS.vcxproj b/visualc/VS2010/mbedTLS.vcxproj index 8371edaf2..9d7929839 100644 --- a/visualc/VS2010/mbedTLS.vcxproj +++ b/visualc/VS2010/mbedTLS.vcxproj @@ -238,9 +238,9 @@ - - - + + +