summaryrefslogtreecommitdiffstats
path: root/sccp/regen_makefile.sh
diff options
context:
space:
mode:
authorStefan Sperling <ssperling@sysmocom.de>2018-06-14 15:15:46 +0200
committerHarald Welte <laforge@gnumonks.org>2018-07-24 19:05:10 +0000
commitc307e689b4a3e9249844eb253cc79839e2fc3030 (patch)
treec334b839ccb7b9f3245d01c48d891c2a390d4a0a /sccp/regen_makefile.sh
parentc290d7292e43b1f67c61ecb4a58081545e562cb5 (diff)
introduce a TTCN3 test suite for SCCP
This test suite acts as an SCCP server on top of M3UA. SCCP tests are run against the sccp_demo_user program which can be found in libosmo-sccp/examples. This program must be started in client mode: sccp_demo_user -c The SCCP test suite should then work out of the box with the provided SCCP_Tests.cfg file and this additional change to sccp_demo_user default point codes: https://gerrit.osmocom.org/#/c/libosmo-sccp/+/9652/ There is currently only one test, for the libosmo-sccp crash reported as issue OS#2666. The implementation of this test is currently using an ugly workaround due to shortcomings of the M3UA Emulation layer (see source code comments). Whether a better solution is feasible is still to be determined. The test requires a patch to the SCCP Protocol Emulation which has been submitted upstream: https://git.eclipse.org/r/#/c/124552/ Change-Id: I03f5e8b282a7396b45417495c88d8fb81b26cda8 Related: OS#2666
Diffstat (limited to 'sccp/regen_makefile.sh')
-rwxr-xr-xsccp/regen_makefile.sh7
1 files changed, 7 insertions, 0 deletions
diff --git a/sccp/regen_makefile.sh b/sccp/regen_makefile.sh
new file mode 100755
index 0000000..fc9e6d2
--- /dev/null
+++ b/sccp/regen_makefile.sh
@@ -0,0 +1,7 @@
+#!/bin/sh
+
+FILES="*.ttcn *.ttcnpp SCCP_EncDec.cc SCTPasp_PT.cc TCCConversion.cc TCCInterface.cc UD_PT.cc IPL4asp_PT.cc IPL4asp_discovery.cc IPA_CodecPort_CtrlFunctDef.cc TELNETasp_PT.cc Native_FunctionDefs.cc TCCEncoding.cc "
+
+export CPPFLAGS_TTCN3="-DIPA_EMULATION_SCCP -DUSE_MTP3_DISTRIBUTOR"
+
+../regen-makefile.sh SCCP_Tests.ttcn $FILES