osmo-gsm-tester/selftest
Pau Espin 2d16f6fd2c Add support for SMPP testing
As defined in [1], the different related actors are implemented in this
commit: ESME and SMSC.

SMSC: In Osmocom, the SMSC is currently implemented inside the NITB or
the MSC. A new Smsc abstract class is created to shared code between the
NITB and the MSC, and also makes it easier for later when the SMSC is
splitted. ESMEs can be dynamically added to its configuration in a
similar way to how the BTSs are added.

ESME: A new class Esme is created which can be used by tests to control
an ESME to interact with the SMSC. The ESME functionalities are
implemented using python-smpplib. Required version of this library is at
least 43cc6f819ec76b2c0a9d36d1d439308634716227, which contains support
for python 3 and some required features to poll the socket.

This commit already contains a few tests which checks different
features and tests the API. Extending tested features or scenarios can be
later done quite easily.

The tests are not enabled by default right now, because there are several
of them in a suite and the ip_address resources are not freed after every
tests which ends up in the suite failing due to missing reserved
resources. All the tests run alone work though. When the issue is fixed
they can then be added to the default list of tests to be run.

[1] http://opensmpp.org/specs/SMPP_v3_4_Issue1_2.pdf

Change-Id: I14ca3cb009d6d646a449ca99b0200da12085c0da
2017-06-18 08:48:09 +00:00
..
conf rename resource nitb_iface to ip_address 2017-05-29 00:18:43 +02:00
config_test core implementation 2017-04-08 15:43:19 +02:00
dbus_test core implementation 2017-04-08 15:43:19 +02:00
process_test core implementation 2017-04-08 15:43:19 +02:00
py_import_test core implementation 2017-04-08 15:43:19 +02:00
suite_test refactor: fix error handling; fix log.Origin; only one trial 2017-06-09 00:35:20 +02:00
template_test Add support for SMPP testing 2017-06-18 08:48:09 +00:00
trial_test core implementation 2017-04-08 15:43:19 +02:00
Makefile core implementation 2017-04-08 15:43:19 +02:00
_prep.py log.py: tweak LogTarget list, require explicit LogTarget 2017-05-08 10:12:25 +00:00
all_tests.py core implementation 2017-04-08 15:43:19 +02:00
config_test.err core implementation 2017-04-08 15:43:19 +02:00
config_test.ok fix and refactor logging: drop 'with', simplify 2017-06-13 13:32:01 +02:00
config_test.py fix 'make check' 2017-04-27 20:24:50 +02:00
lock_test.err core implementation 2017-04-08 15:43:19 +02:00
lock_test.ok cosmetic: lock test: add quotes 2017-05-11 12:33:00 +02:00
lock_test.sh cosmetic: lock test: add quotes 2017-05-11 12:33:00 +02:00
lock_test_help.py lock test: make more robust against timing 2017-05-11 10:31:46 +00:00
log_test.err core implementation 2017-04-08 15:43:19 +02:00
log_test.ok log_test.py: cosmetic follow-up 2017-06-13 13:32:37 +02:00
log_test.py log_test.py: cosmetic follow-up 2017-06-13 13:32:37 +02:00
misc.py core implementation 2017-04-08 15:43:19 +02:00
process_test.err core implementation 2017-04-08 15:43:19 +02:00
process_test.ok fix problem in origin ancestry: don't add self twice 2017-06-07 19:53:24 +02:00
process_test.ok.ign core implementation 2017-04-08 15:43:19 +02:00
process_test.py Add remote user for RemoteProcress 2017-05-04 13:16:21 +00:00
resource_test.err core implementation 2017-04-08 15:43:19 +02:00
resource_test.ok fix and refactor logging: drop 'with', simplify 2017-06-13 13:32:01 +02:00
resource_test.ok.ign config: resolve real paths from symlinks, add paths debug logging 2017-05-04 20:56:48 +00:00
resource_test.py fix and refactor logging: drop 'with', simplify 2017-06-13 13:32:01 +02:00
sms_test.err sms_test: add output checks 2017-05-31 20:40:18 +02:00
sms_test.ok sms_test: add output checks 2017-05-31 20:40:18 +02:00
sms_test.py fix: Sms.__eq__ bug due to typo 2017-05-31 20:39:42 +02:00
suite_test.err core implementation 2017-04-08 15:43:19 +02:00
suite_test.ok fix and refactor logging: drop 'with', simplify 2017-06-13 13:32:01 +02:00
suite_test.ok.ign refactor: fix error handling; fix log.Origin; only one trial 2017-06-09 00:35:20 +02:00
suite_test.py fix and refactor logging: drop 'with', simplify 2017-06-13 13:32:01 +02:00
template_test.err core implementation 2017-04-08 15:43:19 +02:00
template_test.ok Add support for SMPP testing 2017-06-18 08:48:09 +00:00
template_test.py Add support for SMPP testing 2017-06-18 08:48:09 +00:00
trial_test.err core implementation 2017-04-08 15:43:19 +02:00
trial_test.ok trial.py: Remove accidental double creation of file 2017-05-24 12:02:43 +00:00
trial_test.ok.ign trial: always use abspath 2017-05-15 14:25:24 +02:00
trial_test.py core implementation 2017-04-08 15:43:19 +02:00
util_test.err core implementation 2017-04-08 15:43:19 +02:00
util_test.ok core implementation 2017-04-08 15:43:19 +02:00
util_test.py core implementation 2017-04-08 15:43:19 +02:00