aboutsummaryrefslogtreecommitdiff
path: root/tests/.gitignore
AgeCommit message (Collapse)AuthorFilesLines
2021-12-06tests: Add build of a PSA test driver libraryRonald Cron1-0/+2
PR #3959 has proven that by adding a prefix (LIBTESTDRIVER1/libtestdriver1_ in this commit) to all MBEDTLS/PSA_* and mbedtls/psa_* symbols of a copy of the Mbed TLS library, we can build a library that can be linked with the Mbed TLS library. This commit leverages this to build a PSA test driver library based on the Mbed TLS library code. The cryptographic features supported by the test library are defined by: . a minimal configuration (in the sense of config.h), see config_test_driver.h . PSA_WANT_* and PSA_ACCEL_* defined macros. The PSA_WANT_* macros have to be the same as the ones used to build the Mbed TLS library the test driver library is supposed to be linked to as the PSA_WANT_* macros are used in the definition of structures and macros that are shared by the PSA crypto core, Mbed TLS drivers and the driver test library. The PSA_ACCEL_* macros are intended to define the cryptographic features that have to be removed from the Mbed TLS library and thus supported by the test library in test scenarios. The PSA_ACCEL_* macros to build the test library are thus mirrored from the ones to build the Mbed TLS library by extended the crypto_config.h: see crypto_config_test_driver_entension.h. Signed-off-by: Ronald Cron <ronald.cron@arm.com>
2021-05-20Ignore generated source files that are no longer checked inGilles Peskine1-0/+5
Signed-off-by: Gilles Peskine <Gilles.Peskine@arm.com>
2020-09-07Apply feedback from PR reviewSteven Cooreman1-0/+1
* Moved test data to .data file * Bundled test driver hook variables in a struct * Style fixes Signed-off-by: Steven Cooreman <steven.cooreman@silabs.com>
2020-06-12tests: Add helpers.c and helpers.h filesRonald Cron1-0/+3
The purpose of helpers.c file is to contain the helper functions that have been in helpers.function so far and that are not related to the mechanism of unit test execution and not related to random number generation (will be moved in a dedicated file). The purpose of helpers.h is to contain the interface exposed by helpers.c thus helper function prototypes. Make the changes in the build systems (make and cmake) to build helpers.c and link it to test executables along with mbedtls library. Signed-off-by: Ronald Cron <ronald.cron@arm.com>
2020-06-10tests: Create an include folderRonald Cron1-1/+1
Create an include folder dedicated to include files for tests. With the upcoming work on tests for PSA crypto drivers the number of includes specific to tests is going to increase significantly thus create a dedicated folder. Don't put the include files in the include folder but in include/test folder. This way test headers can be included using a test/* path pattern as mbedtls and psa headers are included using an mbedtls/* and psa/* path pattern. This makes explicit the scope of the test headers. Move the existing includes for tests into include/test and update the code and build systems (make and cmake) accordingly. Signed-off-by: Ronald Cron <ronald.cron@arm.com>
2019-09-06PSA return status coverage scriptGilles Peskine1-0/+2
Add infrastructure to run unit tests and collect the return values for every PSA API function that returns psa_status_t. ./tests/scripts/psa_collect_statuses.py >statuses.txt
2015-01-28Move some ignore patterns to subdirectoriesManuel Pégourié-Gonnard1-0/+3
2014-06-10Add test_suite_entropyManuel Pégourié-Gonnard1-0/+1
2014-03-26Ignore .log files in testsPaul Bakker1-0/+1
2014-01-31Expand CTR_DRBG test coverageManuel Pégourié-Gonnard1-0/+1
2014-01-30Add hmac_drbg_{write,update}_seed_file()Manuel Pégourié-Gonnard1-0/+1
2013-08-14Add cipher_set_padding() (no effect yet)Manuel Pégourié-Gonnard1-1/+1
Fix pattern in tests/.gitignore along the way.
2012-11-17Added proper gitignores for linux compilationPaul Bakker1-0/+2