Add test driver sources to VC build

Signed-off-by: Steven Cooreman <steven.cooreman@silabs.com>
This commit is contained in:
Steven Cooreman 2021-04-08 10:58:33 +02:00
parent ce48702448
commit 16141ed2fb
2 changed files with 9 additions and 0 deletions

View file

@ -40,6 +40,7 @@ my $source_dir = 'library';
my $test_source_dir = 'tests/src'; my $test_source_dir = 'tests/src';
my $test_header_dir = 'tests/include/test'; my $test_header_dir = 'tests/include/test';
my $test_drivers_header_dir = 'tests/include/test/drivers'; my $test_drivers_header_dir = 'tests/include/test/drivers';
my $test_drivers_source_dir = 'tests/src/drivers';
my @thirdparty_header_dirs = qw( my @thirdparty_header_dirs = qw(
3rdparty/everest/include/everest 3rdparty/everest/include/everest
@ -116,6 +117,7 @@ sub check_dirs {
&& -d $psa_header_dir && -d $psa_header_dir
&& -d $source_dir && -d $source_dir
&& -d $test_source_dir && -d $test_source_dir
&& -d $test_drivers_source_dir
&& -d $test_header_dir && -d $test_header_dir
&& -d $test_drivers_header_dir && -d $test_drivers_header_dir
&& -d $programs_dir; && -d $programs_dir;
@ -275,6 +277,7 @@ sub main {
my @source_dirs = ( my @source_dirs = (
$source_dir, $source_dir,
$test_source_dir, $test_source_dir,
$test_drivers_source_dir,
@thirdparty_source_dirs, @thirdparty_source_dirs,
); );
my @sources = (map { <$_/*.c> } @source_dirs); my @sources = (map { <$_/*.c> } @source_dirs);

View file

@ -379,6 +379,12 @@
<ClCompile Include="..\..\tests\src\psa_exercise_key.c" /> <ClCompile Include="..\..\tests\src\psa_exercise_key.c" />
<ClCompile Include="..\..\tests\src\random.c" /> <ClCompile Include="..\..\tests\src\random.c" />
<ClCompile Include="..\..\tests\src\threading_helpers.c" /> <ClCompile Include="..\..\tests\src\threading_helpers.c" />
<ClCompile Include="..\..\tests\src\drivers\aead.c" />
<ClCompile Include="..\..\tests\src\drivers\cipher.c" />
<ClCompile Include="..\..\tests\src\drivers\key_management.c" />
<ClCompile Include="..\..\tests\src\drivers\platform_builtin_keys.c" />
<ClCompile Include="..\..\tests\src\drivers\signature.c" />
<ClCompile Include="..\..\tests\src\drivers\size.c" />
<ClCompile Include="..\..\3rdparty\everest\library\everest.c" /> <ClCompile Include="..\..\3rdparty\everest\library\everest.c" />
<ClCompile Include="..\..\3rdparty\everest\library\Hacl_Curve25519_joined.c" /> <ClCompile Include="..\..\3rdparty\everest\library\Hacl_Curve25519_joined.c" />
<ClCompile Include="..\..\3rdparty\everest\library\x25519.c" /> <ClCompile Include="..\..\3rdparty\everest\library\x25519.c" />