From c157ee7d2ccdb7524e76d25b22cb7eec8de9a656 Mon Sep 17 00:00:00 2001 From: Jacob Erlbeck Date: Fri, 9 Jan 2015 15:07:16 +0100 Subject: sgsn/test: Add test that intercepts gprs_gsup_client_send This test replaces gprs_gsup_client_send by a custom function, that emulates a GSUP remote peer by calling gprs_subscr_rx_gsup_message with responses for all requests. It then executes a full Attach/Detach cycle. Sponsored-by: On-Waves ehf --- openbsc/tests/sgsn/Makefile.am | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'openbsc/tests/sgsn/Makefile.am') diff --git a/openbsc/tests/sgsn/Makefile.am b/openbsc/tests/sgsn/Makefile.am index 672b811bb..c1b5fbda4 100644 --- a/openbsc/tests/sgsn/Makefile.am +++ b/openbsc/tests/sgsn/Makefile.am @@ -9,7 +9,8 @@ sgsn_test_SOURCES = sgsn_test.c sgsn_test_LDFLAGS = \ -Wl,--wrap=sgsn_update_subscriber_data \ -Wl,--wrap=gprs_subscr_request_update_location \ - -Wl,--wrap=gprs_subscr_request_auth_info + -Wl,--wrap=gprs_subscr_request_auth_info \ + -Wl,--wrap=gprs_gsup_client_send sgsn_test_LDADD = \ $(top_builddir)/src/gprs/gprs_llc_parse.o \ -- cgit v1.2.3