mirror of
https://gitea.osmocom.org/cellular-infrastructure/osmo-smlc.git
synced 2025-11-02 13:13:34 +00:00
Compare commits
13 Commits
0.2.3
...
neels/log_
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
f3e9013ee4 | ||
|
|
7385427397 | ||
|
|
81e12318ae | ||
|
|
85f1cca096 | ||
|
|
e8c4967639 | ||
|
|
d09e87c645 | ||
|
|
386d5acdbe | ||
|
|
8c11b24ca0 | ||
|
|
8bcac6f928 | ||
|
|
74b4e61f36 | ||
|
|
7118875839 | ||
|
|
cf29f44722 | ||
|
|
0fda654d29 |
@@ -9,6 +9,8 @@ AC_CONFIG_AUX_DIR([.])
|
||||
AM_INIT_AUTOMAKE([dist-bzip2])
|
||||
AC_CONFIG_TESTDIR(tests)
|
||||
|
||||
CFLAGS="$CFLAGS -std=gnu11"
|
||||
|
||||
dnl kernel style compile messages
|
||||
m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])
|
||||
|
||||
@@ -115,9 +117,9 @@ AC_ARG_ENABLE([external_tests],
|
||||
[Include the VTY/CTRL tests in make check [default=no]]),
|
||||
[enable_ext_tests="$enableval"],[enable_ext_tests="no"])
|
||||
if test "x$enable_ext_tests" = "xyes" ; then
|
||||
AC_CHECK_PROG(PYTHON2_AVAIL,python2,yes)
|
||||
if test "x$PYTHON2_AVAIL" != "xyes" ; then
|
||||
AC_MSG_ERROR([Please install python2 to run the VTY/CTRL tests.])
|
||||
AC_CHECK_PROG(PYTHON3_AVAIL,python3,yes)
|
||||
if test "x$PYTHON3_AVAIL" != "xyes" ; then
|
||||
AC_MSG_ERROR([Please install python3 to run the VTY/CTRL tests.])
|
||||
fi
|
||||
AC_CHECK_PROG(OSMOTESTEXT_CHECK,osmotestvty.py,yes)
|
||||
if test "x$OSMOTESTEXT_CHECK" != "xyes" ; then
|
||||
|
||||
@@ -1,5 +1,7 @@
|
||||
[Unit]
|
||||
Description=Osmocom Serving Mobile Location Center (SMLC)
|
||||
After=network-online.target
|
||||
Wants=network-online.target
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
|
||||
2
debian/compat
vendored
2
debian/compat
vendored
@@ -1 +1 @@
|
||||
9
|
||||
10
|
||||
|
||||
2
debian/control
vendored
2
debian/control
vendored
@@ -2,7 +2,7 @@ Source: osmo-smlc
|
||||
Section: net
|
||||
Priority: extra
|
||||
Maintainer: Osmocom team <openbsc@lists.osmocom.org>
|
||||
Build-Depends: debhelper (>=9),
|
||||
Build-Depends: debhelper (>= 10),
|
||||
dh-autoreconf,
|
||||
autotools-dev,
|
||||
autoconf,
|
||||
|
||||
@@ -74,6 +74,7 @@ cs7 instance 0
|
||||
point-code 1.23.6
|
||||
asp asp-clnt-msc-0 2905 0 m3ua
|
||||
remote-ip 127.0.0.1
|
||||
role asp
|
||||
sctp-role client
|
||||
----
|
||||
|
||||
|
||||
@@ -14,12 +14,6 @@ AM_CFLAGS = \
|
||||
$(COVERAGE_CFLAGS) \
|
||||
$(NULL)
|
||||
|
||||
AM_LDFLAGS = \
|
||||
$(LIBOSMOCORE_LIBS) \
|
||||
$(LIBOSMOGSM_LIBS) \
|
||||
$(COVERAGE_LDFLAGS) \
|
||||
$(NULL)
|
||||
|
||||
SUBDIRS = \
|
||||
osmo-smlc \
|
||||
$(NULL)
|
||||
|
||||
@@ -39,6 +39,5 @@ osmo_smlc_LDADD = \
|
||||
$(LIBOSMOGSM_LIBS) \
|
||||
$(LIBOSMOVTY_LIBS) \
|
||||
$(LIBOSMOCTRL_LIBS) \
|
||||
$(COVERAGE_LDFLAGS) \
|
||||
$(LIBOSMOSIGTRAN_LIBS) \
|
||||
$(NULL)
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
/* SMLC Lb connection implementation */
|
||||
|
||||
/*
|
||||
* (C) 2020 by sysmocom s.m.f.c. <info@sysmocom.de>
|
||||
* (C) 2020 by sysmocom s.f.m.c. <info@sysmocom.de>
|
||||
* All Rights Reserved
|
||||
*
|
||||
* Author: Neels Hofmeyr
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* (C) 2019 by sysmocom - s.m.f.c. GmbH <info@sysmocom.de>
|
||||
* (C) 2019 by sysmocom - s.f.m.c. GmbH <info@sysmocom.de>
|
||||
* All Rights Reserved
|
||||
*
|
||||
* SPDX-License-Identifier: AGPL-3.0+
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* (C) 2020 by sysmocom - s.m.f.c. GmbH <info@sysmocom.de>
|
||||
* (C) 2020 by sysmocom - s.f.m.c. GmbH <info@sysmocom.de>
|
||||
* All Rights Reserved
|
||||
*
|
||||
* SPDX-License-Identifier: AGPL-3.0+
|
||||
|
||||
@@ -262,7 +262,7 @@ int main(int argc, char **argv)
|
||||
}
|
||||
|
||||
/* Start telnet interface after reading config for vty_get_bind_addr() */
|
||||
rc = telnet_init_dynif(tall_smlc_ctx, g_smlc, vty_get_bind_addr(), OSMO_VTY_PORT_SMLC);
|
||||
rc = telnet_init_default(tall_smlc_ctx, g_smlc, OSMO_VTY_PORT_SMLC);
|
||||
if (rc < 0)
|
||||
exit(1);
|
||||
|
||||
|
||||
@@ -37,11 +37,13 @@ DISTCLEANFILES = \
|
||||
$(NULL)
|
||||
|
||||
if ENABLE_EXT_TESTS
|
||||
python-tests: $(BUILT_SOURCES)
|
||||
python-tests: $(top_builddir)/src/osmo-smlc/osmo-smlc
|
||||
$(MAKE) vty-test
|
||||
$(MAKE) ctrl-test
|
||||
osmotestvty.py -p $(abs_top_srcdir) -w $(abs_top_builddir) -v
|
||||
osmotestconfig.py -p $(abs_top_srcdir) -w $(abs_top_builddir) -v
|
||||
else
|
||||
python-tests: $(BUILT_SOURCES)
|
||||
python-tests:
|
||||
echo "Not running python-based tests (determined at configure-time)"
|
||||
endif
|
||||
|
||||
@@ -51,7 +53,7 @@ VTY_TEST ?= *.vty
|
||||
# To update the VTY script from current application behavior,
|
||||
# pass -u to vty_script_runner.py by doing:
|
||||
# make vty-test U=-u
|
||||
vty-test:
|
||||
vty-test: $(top_builddir)/src/osmo-smlc/osmo-smlc
|
||||
osmo_verify_transcript_vty.py -v \
|
||||
-n OsmoSMLC -p 4271 \
|
||||
-r "$(top_builddir)/src/osmo-smlc/osmo-smlc -c $(top_srcdir)/tests/osmo-smlc.cfg" \
|
||||
@@ -60,14 +62,11 @@ vty-test:
|
||||
# To update the CTRL script from current application behavior,
|
||||
# pass -u to ctrl_script_runner.py by doing:
|
||||
# make ctrl-test U=-u
|
||||
ctrl-test:
|
||||
-rm -f $(CTRL_TEST_DB)
|
||||
ctrl-test: $(top_builddir)/src/osmo-smlc/osmo-smlc
|
||||
osmo_verify_transcript_ctrl.py -v \
|
||||
-p 4272 \
|
||||
-r "$(top_builddir)/src/osmo-smlc/osmo-smlc -c $(top_srcdir)/tests/osmo-smlc.cfg" \
|
||||
$(U) $(srcdir)/*.ctrl
|
||||
-rm -f $(CTRL_TEST_DB)
|
||||
-rm $(CTRL_TEST_DB)-*
|
||||
|
||||
check-local: atconfig $(TESTSUITE)
|
||||
$(SHELL) '$(TESTSUITE)' $(TESTSUITEFLAGS)
|
||||
|
||||
@@ -141,7 +141,7 @@ int main()
|
||||
|
||||
osmo_init_logging2(ctx, &log_info);
|
||||
log_set_print_filename2(osmo_stderr_target, LOG_FILENAME_NONE);
|
||||
log_set_print_timestamp(osmo_stderr_target, 0);
|
||||
log_set_print_timestamp2(osmo_stderr_target, LOG_TIMESTAMP_NONE);
|
||||
log_set_use_color(osmo_stderr_target, 0);
|
||||
log_set_print_category(osmo_stderr_target, 1);
|
||||
log_set_print_category_hex(osmo_stderr_target, 0);
|
||||
|
||||
Reference in New Issue
Block a user