aboutsummaryrefslogtreecommitdiffstats
path: root/tests/conv/conv_gsm0503_test.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/conv/conv_gsm0503_test.c')
-rw-r--r--tests/conv/conv_gsm0503_test.c28
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;
+}