tests: Add test-hnbap to test en-/decoding of HNBAP messages
Decode a HNBAP UE register request and check the result.
diff --git a/src/tests/Makefile b/src/tests/Makefile
index e6536c0..1c9f63d 100644
--- a/src/tests/Makefile
+++ b/src/tests/Makefile
@@ -2,8 +2,11 @@
PKG_INCLUDES:=$(shell pkg-config --cflags libosmocore libosmovty libosmogsm libasn1c)
PKG_LDFLAGS:=$(shell pkg-config --libs libosmocore libosmovty libosmogsm libasn1c)
-CFLAGS:=-g -Wall $(PKG_INCLUDES) -I..
+CFLAGS:=-g -Wall $(PKG_INCLUDES) -I.. -I../hnbap
LDFLAGS:=$(PKG_LDFLAGS)
test-helpers: ../iu_helpers.o ../asn1helpers.o test-helpers.c
$(CC) $(CFLAGS) $(LDFLAGS) -o $@ $^
+
+test-hnbap: ../iu_helpers.o ../asn1helpers.o ../hnbap_common.o ../hnbap_decoder.o test-hnbap.c ../hnbap/libosmo-asn1-hnbap.a
+ $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $^