mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-07-30 22:43:08 +03:00
New files for memory-related test functions
Signed-off-by: Gilles Peskine <Gilles.Peskine@arm.com>
This commit is contained in:
18
tests/include/test/memory.h
Normal file
18
tests/include/test/memory.h
Normal file
@ -0,0 +1,18 @@
|
||||
/**
|
||||
* \file memory.h
|
||||
*
|
||||
* \brief Helper macros and functions related to testing memory management.
|
||||
*/
|
||||
|
||||
/*
|
||||
* Copyright The Mbed TLS Contributors
|
||||
* SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later
|
||||
*/
|
||||
|
||||
#ifndef TEST_MEMORY_H
|
||||
#define TEST_MEMORY_H
|
||||
|
||||
#include "test/helpers.h"
|
||||
#include "mbedtls/platform.h"
|
||||
|
||||
#endif /* TEST_MEMORY_H */
|
15
tests/src/test_memory.c
Normal file
15
tests/src/test_memory.c
Normal file
@ -0,0 +1,15 @@
|
||||
/**
|
||||
* \file memory.c
|
||||
*
|
||||
* \brief Helper functions related to testing memory management.
|
||||
*/
|
||||
|
||||
/*
|
||||
* Copyright The Mbed TLS Contributors
|
||||
* SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later
|
||||
*/
|
||||
|
||||
#include <test/helpers.h>
|
||||
#include <test/macros.h>
|
||||
#include <test/memory.h>
|
||||
|
@ -243,6 +243,7 @@
|
||||
<ClInclude Include="..\..\tests\include\test\fake_external_rng_for_test.h" />
|
||||
<ClInclude Include="..\..\tests\include\test\helpers.h" />
|
||||
<ClInclude Include="..\..\tests\include\test\macros.h" />
|
||||
<ClInclude Include="..\..\tests\include\test\memory.h" />
|
||||
<ClInclude Include="..\..\tests\include\test\psa_crypto_helpers.h" />
|
||||
<ClInclude Include="..\..\tests\include\test\psa_exercise_key.h" />
|
||||
<ClInclude Include="..\..\tests\include\test\psa_helpers.h" />
|
||||
@ -390,6 +391,7 @@
|
||||
<ClCompile Include="..\..\tests\src\psa_crypto_helpers.c" />
|
||||
<ClCompile Include="..\..\tests\src\psa_exercise_key.c" />
|
||||
<ClCompile Include="..\..\tests\src\random.c" />
|
||||
<ClCompile Include="..\..\tests\src\test_memory.c" />
|
||||
<ClCompile Include="..\..\tests\src\threading_helpers.c" />
|
||||
<ClCompile Include="..\..\tests\src\drivers\hash.c" />
|
||||
<ClCompile Include="..\..\tests\src\drivers\platform_builtin_keys.c" />
|
||||
|
Reference in New Issue
Block a user