|
TF-M Reference Manual
1.2.0
TrustedFirmware-M
|
#include "test_framework.h"#include <assert.h>#include <stdio.h>#include <stdlib.h>#include <string.h>
Go to the source code of this file.
Functions | |
| const char * | test_err_to_str (enum test_suite_err_t err) |
| Translates the test suite error into a string. More... | |
| enum test_suite_err_t | set_testsuite (const char *name, struct test_t *test_list, uint32_t size, struct test_suite_t *p_ts) |
| Sets test suite parameters. More... | |
| void | set_test_failed (const char *info_msg, const char *filename, uint32_t line, struct test_result_t *ret) |
| Sets test failure state and information in the test_result_t structure. More... | |
| enum test_suite_err_t | run_testsuite (struct test_suite_t *test_suite) |
| Runs the given test suite. More... | |
| enum test_suite_err_t run_testsuite | ( | struct test_suite_t * | test_suite | ) |
Runs the given test suite.
| [in,out] | test_suite | Test suite to run the list of tests and store test results. |
Definition at line 86 of file test_framework.c.


| void set_test_failed | ( | const char * | info_msg, |
| const char * | filename, | ||
| uint32_t | line, | ||
| struct test_result_t * | ret | ||
| ) |
Sets test failure state and information in the test_result_t structure.
| [in] | info_msg | Information message to show |
| [in] | filename | Filename where the error has ocurred |
| [in] | line | Line in the file where the error has ocurred |
| [out] | ret | Pointer to test_result_t structure to set the values |
Definition at line 72 of file test_framework.c.
| enum test_suite_err_t set_testsuite | ( | const char * | name, |
| struct test_t * | test_list, | ||
| uint32_t | size, | ||
| struct test_suite_t * | p_ts | ||
| ) |
Sets test suite parameters.
| [in] | name | Test suite name |
| [in] | test_list | Pointer to the test list |
| [in] | size | Test list size |
| [in,out] | p_ts | Pointer to test suite object to fill in the parameters |
Definition at line 56 of file test_framework.c.

| const char* test_err_to_str | ( | enum test_suite_err_t | err | ) |
Translates the test suite error into a string.
| [in] | err | Error value test_suite_err_t |
Definition at line 38 of file test_framework.c.