gbproxy: Add test program to test gbproxy message handling

This program tests the gbproxy implementation by passing NS messages
to a modified gbproxy that dumps the resulting messages, signals, and
state.

It focusses on testing abnormal situations like port changes.

Ticket: OW#874
Sponsored-by: On-Waves ehf
diff --git a/openbsc/tests/gbproxy/Makefile.am b/openbsc/tests/gbproxy/Makefile.am
new file mode 100644
index 0000000..8e88dc4
--- /dev/null
+++ b/openbsc/tests/gbproxy/Makefile.am
@@ -0,0 +1,18 @@
+AM_CPPFLAGS = $(all_includes) -I$(top_srcdir)/include
+AM_CFLAGS=-Wall -ggdb3 $(LIBOSMOCORE_CFLAGS) $(LIBOSMOGSM_CFLAGS)
+AM_LDFLAGS = $(COVERAGE_LDFLAGS)
+
+EXTRA_DIST = gbproxy_test.ok
+
+noinst_PROGRAMS = gbproxy_test
+
+gbproxy_test_SOURCES = gbproxy_test.c
+gbproxy_test_LDADD = \
+			$(top_builddir)/src/gprs/gb_proxy.o \
+			$(top_builddir)/src/libcommon/libcommon.a \
+			$(top_builddir)/src/libbsc/libbsc.a \
+			$(top_builddir)/src/libtrau/libtrau.a \
+			$(LIBOSMOCORE_LIBS) $(LIBOSMOGB_LIBS) \
+			$(LIBOSMOGSM_LIBS)  $(LIBOSMOVTY_LIBS) \
+			$(LIBOSMOABIS_LIBS) $(LIBRARY_DL) \
+			-lrt