| 128 | } |
| 129 | |
| 130 | static int |
| 131 | run_test_foreach_known_vec(test_with_conf_t test, bool stop_on_first_pass, |
| 132 | enum pdcp_test_suite_type suite_type) |
| 133 | { |
| 134 | struct pdcp_test_conf test_conf; |
| 135 | bool all_tests_skipped = true; |
| 136 | uint32_t nb_tests = nb_tests_get(suite_type); |
| 137 | uint32_t i; |
| 138 | int ret; |
| 139 | |
| 140 | for (i = 0; i < nb_tests; i++) { |
| 141 | create_test_conf_from_index(i, &test_conf, suite_type); |
| 142 | ret = test(&test_conf); |
| 143 | |
| 144 | if (ret == TEST_FAILED) { |
| 145 | printf("[%03i] - %s - failed\n", i, |
| 146 | pdcp_test_name_get(suite_type, i)); |
| 147 | return TEST_FAILED; |
| 148 | } |
| 149 | |
| 150 | if ((ret == TEST_SKIPPED) || (ret == -ENOTSUP)) |
| 151 | continue; |
| 152 | |
| 153 | if (stop_on_first_pass) |
| 154 | return TEST_SUCCESS; |
| 155 | |
| 156 | all_tests_skipped = false; |
| 157 | } |
| 158 | |
| 159 | if (all_tests_skipped) |
| 160 | return TEST_SKIPPED; |
| 161 | |
| 162 | return TEST_SUCCESS; |
| 163 | } |
| 164 | |
| 165 | static int |
| 166 | run_test_with_all_known_vec(const void *args) |
no test coverage detected