sgsn: Add boilerplate code for a SGSN test
This commit is contained in:
parent
7b76f82b6e
commit
68c6f887c2
|
@ -68,6 +68,7 @@ tests/smpp/smpp_test
|
||||||
tests/bsc/bsc_test
|
tests/bsc/bsc_test
|
||||||
tests/trau/trau_test
|
tests/trau/trau_test
|
||||||
tests/mgcp/mgcp_transcoding_test
|
tests/mgcp/mgcp_transcoding_test
|
||||||
|
tests/sgsn/sgsn_test
|
||||||
|
|
||||||
tests/atconfig
|
tests/atconfig
|
||||||
tests/atlocal
|
tests/atlocal
|
||||||
|
|
|
@ -77,6 +77,7 @@ AC_SUBST(osmo_ac_mgcp_transcoding)
|
||||||
found_libgtp=yes
|
found_libgtp=yes
|
||||||
PKG_CHECK_MODULES(LIBGTP, libgtp, , found_libgtp=no)
|
PKG_CHECK_MODULES(LIBGTP, libgtp, , found_libgtp=no)
|
||||||
AM_CONDITIONAL(HAVE_LIBGTP, test "$found_libgtp" = yes)
|
AM_CONDITIONAL(HAVE_LIBGTP, test "$found_libgtp" = yes)
|
||||||
|
AC_SUBST(found_libgtp)
|
||||||
|
|
||||||
dnl checks for header files
|
dnl checks for header files
|
||||||
AC_HEADER_STDC
|
AC_HEADER_STDC
|
||||||
|
@ -190,6 +191,7 @@ AC_OUTPUT(
|
||||||
tests/abis/Makefile
|
tests/abis/Makefile
|
||||||
tests/smpp/Makefile
|
tests/smpp/Makefile
|
||||||
tests/trau/Makefile
|
tests/trau/Makefile
|
||||||
|
tests/sgsn/Makefile
|
||||||
doc/Makefile
|
doc/Makefile
|
||||||
doc/examples/Makefile
|
doc/examples/Makefile
|
||||||
Makefile)
|
Makefile)
|
||||||
|
|
|
@ -12,6 +12,10 @@ if BUILD_SMPP
|
||||||
SUBDIRS += smpp
|
SUBDIRS += smpp
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
if HAVE_LIBGTP
|
||||||
|
SUBDIRS += sgsn
|
||||||
|
endif
|
||||||
|
|
||||||
|
|
||||||
# The `:;' works around a Bash 3.2 bug when the output is not writeable.
|
# The `:;' works around a Bash 3.2 bug when the output is not writeable.
|
||||||
$(srcdir)/package.m4: $(top_srcdir)/configure.ac
|
$(srcdir)/package.m4: $(top_srcdir)/configure.ac
|
||||||
|
|
|
@ -2,3 +2,4 @@ enable_nat_test='@osmo_ac_build_nat@'
|
||||||
enable_smpp_test='@osmo_ac_build_smpp@'
|
enable_smpp_test='@osmo_ac_build_smpp@'
|
||||||
enable_bsc_test='@osmo_ac_build_bsc@'
|
enable_bsc_test='@osmo_ac_build_bsc@'
|
||||||
enable_mgcp_transcoding_test='@osmo_ac_mgcp_transcoding@'
|
enable_mgcp_transcoding_test='@osmo_ac_mgcp_transcoding@'
|
||||||
|
enable_sgsn_test='@found_libgtp@'
|
||||||
|
|
|
@ -0,0 +1,10 @@
|
||||||
|
AM_CPPFLAGS = $(all_includes) -I$(top_srcdir)/include
|
||||||
|
AM_CFLAGS=-Wall -ggdb3 $(LIBOSMOCORE_CFLAGS) $(LIBOSMOGSM_CFLAGS)
|
||||||
|
|
||||||
|
EXTRA_DIST = sgsn_test.ok
|
||||||
|
|
||||||
|
noinst_PROGRAMS = sgsn_test
|
||||||
|
|
||||||
|
sgsn_test_SOURCES = sgsn_test.c
|
||||||
|
sgsn_test_LDADD = $(LIBOSMOCORE_LIBS)
|
||||||
|
|
|
@ -0,0 +1,27 @@
|
||||||
|
/* Test the SGSN */
|
||||||
|
/*
|
||||||
|
* (C) 2014 by Holger Hans Peter Freyther
|
||||||
|
* (C) 2014 by sysmocom s.f.m.c. GmbH
|
||||||
|
* All Rights Reserved
|
||||||
|
*
|
||||||
|
* This program is free software; you can redistribute it and/or modify
|
||||||
|
* it under the terms of the GNU Affero General Public License as published by
|
||||||
|
* the Free Software Foundation; either version 3 of the License, or
|
||||||
|
* (at your option) any later version.
|
||||||
|
*
|
||||||
|
* This program is distributed in the hope that it will be useful,
|
||||||
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
* GNU Affero General Public License for more details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU Affero General Public License
|
||||||
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
|
||||||
|
#include <stdio.h>
|
||||||
|
|
||||||
|
int main(int argc, char **argv)
|
||||||
|
{
|
||||||
|
return 0;
|
||||||
|
}
|
|
@ -90,3 +90,10 @@ AT_KEYWORDS([trau])
|
||||||
cat $abs_srcdir/trau/trau_test.ok > expout
|
cat $abs_srcdir/trau/trau_test.ok > expout
|
||||||
AT_CHECK([$abs_top_builddir/tests/trau/trau_test], [], [expout], [ignore])
|
AT_CHECK([$abs_top_builddir/tests/trau/trau_test], [], [expout], [ignore])
|
||||||
AT_CLEANUP
|
AT_CLEANUP
|
||||||
|
|
||||||
|
AT_SETUP([sgsn])
|
||||||
|
AT_KEYWORDS([sgsn])
|
||||||
|
AT_CHECK([test "$enable_sgsn_test" != no || exit 77])
|
||||||
|
cat $abs_srcdir/sgsn/sgsn_test.ok > expout
|
||||||
|
AT_CHECK([$abs_top_builddir/tests/sgsn/sgsn_test], [], [expout], [ignore])
|
||||||
|
AT_CLEANUP
|
||||||
|
|
Loading…
Reference in New Issue