Vadim Yanitskiy | 33e0306 | 2017-01-19 17:01:15 +0700 | [diff] [blame] | 1 | #include <stdio.h> |
| 2 | #include <stdlib.h> |
| 3 | #include <string.h> |
| 4 | #include <time.h> |
| 5 | |
| 6 | #include <osmocom/core/bits.h> |
| 7 | #include <osmocom/core/conv.h> |
| 8 | #include <osmocom/core/utils.h> |
| 9 | #include <osmocom/gsm/gsm0503.h> |
| 10 | |
| 11 | #include "conv.h" |
| 12 | |
| 13 | /* Forward declaration of GSM 05.03 specific test vectors */ |
| 14 | extern const struct conv_test_vector gsm0503_vectors[]; |
| 15 | extern const int gsm0503_vectors_len; |
| 16 | |
| 17 | int main(int argc, char *argv[]) |
| 18 | { |
| 19 | int rc, i; |
| 20 | |
| 21 | for (i = 0; i < gsm0503_vectors_len; i++) { |
| 22 | rc = do_check(&gsm0503_vectors[i]); |
| 23 | if (rc) |
| 24 | return rc; |
| 25 | } |
| 26 | |
| 27 | return 0; |
| 28 | } |