diff options
author | Vadim Yanitskiy <axilirator@gmail.com> | 2017-01-19 17:01:15 +0700 |
---|---|---|
committer | Vadim Yanitskiy <axilirator@gmail.com> | 2017-04-30 02:59:42 +0700 |
commit | 33e03065a508f1238056f36841b97d38083ac18b (patch) | |
tree | 70d51d4763293829835b53d71dca1113920f788a /tests/conv/conv_gsm0503_test.c | |
parent | f74cfd35acadbebe7ccd9fc02d05920958f43ad3 (diff) |
tests/conv: add GSM 05.03 specific test
This change extends the convolutional code test coverage, adding
the GSM 05.03 specific test vectors, generated by the conv_gen.py.
Inspired by Tom's patch:
http://lists.osmocom.org/pipermail/openbsc/2014-April/007364.html
Change-Id: I76d1cd4032d2f74c5bb93bde4fab99aa655b7f1a
Diffstat (limited to 'tests/conv/conv_gsm0503_test.c')
-rw-r--r-- | tests/conv/conv_gsm0503_test.c | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/tests/conv/conv_gsm0503_test.c b/tests/conv/conv_gsm0503_test.c new file mode 100644 index 00000000..67041290 --- /dev/null +++ b/tests/conv/conv_gsm0503_test.c @@ -0,0 +1,28 @@ +#include <stdio.h> +#include <stdlib.h> +#include <string.h> +#include <time.h> + +#include <osmocom/core/bits.h> +#include <osmocom/core/conv.h> +#include <osmocom/core/utils.h> +#include <osmocom/gsm/gsm0503.h> + +#include "conv.h" + +/* Forward declaration of GSM 05.03 specific test vectors */ +extern const struct conv_test_vector gsm0503_vectors[]; +extern const int gsm0503_vectors_len; + +int main(int argc, char *argv[]) +{ + int rc, i; + + for (i = 0; i < gsm0503_vectors_len; i++) { + rc = do_check(&gsm0503_vectors[i]); + if (rc) + return rc; + } + + return 0; +} |