* function to execute the required pie tests */
| 947 | * function to execute the required pie tests |
| 948 | */ |
| 949 | static void run_tests(struct tests *test_type, uint32_t test_count, |
| 950 | uint32_t *num_tests, uint32_t *num_pass) |
| 951 | { |
| 952 | enum test_result result = PASS; |
| 953 | uint32_t i = 0; |
| 954 | static const char *bar_str = "-------------------------------------" |
| 955 | "-------------------------------------------"; |
| 956 | static const char *bar_pass_str = "-------------------------------------" |
| 957 | "<pass>-------------------------------------"; |
| 958 | static const char *bar_fail_str = "-------------------------------------" |
| 959 | "<fail>-------------------------------------"; |
| 960 | |
| 961 | for (i = 0; i < test_count; i++) { |
| 962 | printf("\n%s\n", bar_str); |
| 963 | result = test_type[i].testfn(test_type[i].testcfg); |
| 964 | (*num_tests)++; |
| 965 | if (result == PASS) { |
| 966 | (*num_pass)++; |
| 967 | printf("%s\n", bar_pass_str); |
| 968 | } else { |
| 969 | printf("%s\n", bar_fail_str); |
| 970 | } |
| 971 | } |
| 972 | } |
| 973 | |
| 974 | /** |
| 975 | * check if functions accept invalid parameters |
no test coverage detected