auth: verify test sets from 3GPP TS 55.205

Put to-text conversion of the 3GPP TS 55.205 PDF's section defining the test
vectors in tests/auc/gen_ts_55_205_test_sets/ts55_205_test_sets.txt and add
python script to generate auc_ts_55_205_test_sets.c from that at build time.

The generated auc_ts_55_205_test_sets.c runs through all 19 test sets,
verifying that our gsm_milenage() matches the reference data.

Change-Id: Idff9d757ab956179aa41ada2a223fd9f439aafbd
diff --git a/tests/auc/Makefile.am b/tests/auc/Makefile.am
index 1d506a7..761396b 100644
--- a/tests/auc/Makefile.am
+++ b/tests/auc/Makefile.am
@@ -1,3 +1,5 @@
+SUBDIRS = gen_ts_55_205_test_sets
+
 AM_CPPFLAGS = \
 	$(all_includes) \
 	-I$(top_srcdir)/src \
@@ -16,10 +18,14 @@
 EXTRA_DIST = \
 	auc_3g_test.ok \
 	auc_3g_test.err \
+	auc_ts_55_205_test_sets.ok \
+	auc_ts_55_205_test_sets.err \
 	$(NULL)
 
+
 noinst_PROGRAMS = \
 	auc_3g_test \
+	auc_ts_55_205_test_sets \
 	$(NULL)
 
 auc_3g_test_SOURCES = \
@@ -32,3 +38,18 @@
 	$(LIBOSMOCORE_LIBS) \
 	$(LIBOSMOGSM_LIBS) \
 	$(NULL)
+
+auc_ts_55_205_test_sets_SOURCES = \
+	$(builddir)/auc_ts_55_205_test_sets.c \
+	$(NULL)
+
+auc_ts_55_205_test_sets_LDADD = \
+	$(top_srcdir)/src/auc.c \
+	$(top_srcdir)/src/logging.c \
+	$(LIBOSMOCORE_LIBS) \
+	$(LIBOSMOGSM_LIBS) \
+	$(NULL)
+
+auc_ts_55_205_test_sets.c: $(top_srcdir)/tests/auc/gen_ts_55_205_test_sets/*
+	$(top_srcdir)/tests/auc/gen_ts_55_205_test_sets/pdftxt_2_c.py > $@
+