Commit Graph

73 Commits

Author SHA1 Message Date
Harald Welte 6220dc7bf0 ccid: Lots of CCID helpers have been moved to titan.TestPorts.USB
Change-Id: Ie110ad1511b01fe84e1ad181b0e053e25f80f522
2022-02-25 16:56:16 +01:00
Daniel Willmann 095b3e0a23 deps: Use upstream IPL4asp after SCTP-related patches were merged
Change-Id: I073afe64741dd8149349da9e2494aaa86b9ab4aa
2022-01-11 15:56:30 +01:00
Daniel Willmann aa9220aeac IPL4asp: Fix ppid always shows 0, remove Iuh workaround
Change-Id: I941a794849c347ed61ca5170bca32f5329818d92
2022-01-05 09:25:07 +01:00
Daniel Willmann 4a8c45f0ac deps: Update SCTPasp to fix SCTP kernel ABI breakage
Change-Id: I257ab571eef1a7ef18998ad0976b1992482e74c4
Related: OS#5366
2021-12-22 16:16:51 +00:00
Harald Welte 65b3ca781a TITAN project migration to eclipse gitlab
As announced in https://www.eclipse.org/forums/index.php/t/1107586/
TITAN is migrating both their github and git.eclipse.org repositories to
eclipse gitlab.

Let's adjust our Makefile accordingly

Change-Id: I6a501d50891c4fda78d33d3efd6030244a4aaf50
2021-05-21 20:54:32 +02:00
Pau Espin 8c74cbbf5a sgsn: Introduce test TC_rim_eutran_to_geran
GTP_Templates.ttcn new templates use BssgpCellId, hence it depends on Osmocom_Gb_Types.ttcn.

Related: SYS#5314
Change-Id: I9dcf6ee2dc55bc6aba178eca30080233254f025e
2021-05-17 20:33:00 +00:00
Oliver Smith a25525d38c deps/Makefile: fix checkout logic for branches
Checkout origin/$branch instead of $branch. Otherwise git will just use
the local version of branch and stay at the same commit.

Note that Ia846863eff1734eca469257b9a8d5e653a45e835 changes the lines
which still have "master" to the commit. Fixing this is still useful
however, if a branch name is used in local testing.

Change-Id: If6bd440598d375a9947cb3a4fd88ae5809756e0e
2021-04-21 07:10:53 +00:00
Pau Espin 36ef7fc046 deps/Makefile: Switch branches to related commit hashes
Change-Id: Ia846863eff1734eca469257b9a8d5e653a45e835
2021-04-21 07:08:55 +00:00
Pau Espin d5ba6cef4f BSSMAP: Update ts_BSSAP_BSSMAP to contain new fields
Depends: titan.ProtocolModules.BSSMAP Change-Id I5103ceb2656a41925a089af5492d0722ca87a5c7
Related: SYS#5337
Change-Id: I9cc4d161fa7083e30d3bf8f10e959d1fe7b86032
2021-04-19 11:34:57 +02:00
Vadim Yanitskiy 94bbe99796 BTS_Tests: refactor and fix TC_pcu_socket_connect_multi
The expectations of this test case were wrong.  The IUT would first
accept() an additional connection and then close() it immediately.
Since there may be other messages, like TIME.ind and DATA.ind, the
'alt' statement would not match successful connection result, and
instead would unblock the flow due to timeout.

The titan.TestPorts.UNIX_DOMAIN_SOCKETasp had to be changed [1] to
send UD_connect_result with ERROR if recv() returns zero or a negative.

[1] https://github.com/eclipse/titan.TestPorts.UNIX_DOMAIN_SOCKETasp/pull/4

Change-Id: I898b8b14515d79766b12d652ebb1ddf834e2863c
2021-04-01 15:34:39 +00:00
Harald Welte a8dc198705 update AF_PACKET dependency to 0.1-5-g89ebea6
This includes the fix of https://gerrit.osmocom.org/c/titan.TestPorts.AF_PACKET/+/22934
which makes fr <-> fr-net pass again.

Change-Id: Ifa551fc9df340c9a02176f6644fa8ec4884431ae
2021-02-16 19:03:21 +00:00
Harald Welte 24f921baea sccp: Add Tests for SCMG SST procedure
The SST procedure can be used by any SCCP node to test the availability
of a remote SSN.  If the specified remote SSN is available at the
specified PC, a SCMG SSA is returned.  If not, there's a timeout.

Test for SSN=1 (SCMG), another non-SCMG SSN that exists, and for one
SSN that doesn't exist.

Change-Id: If3f5f3144c0ed83d0bda5953522a9d73287c8ba2
2021-02-11 12:00:29 +00:00
Harald Welte 7534fbff40 deps/Makefile: Update SCCP dependency
* upstream has merged all two Osmocom patches
* we can now switch back to the official repo instead of our fork

Change-Id: Ia9bc82db4c0814b06c55460d2123b5e4fa1a2335
2021-02-10 09:25:33 +01:00
Harald Welte e4a98dab78 deps: Update AF_PACKET (with FR emulation) to 0.1-4-g9c6d89b
Change-Id: Ia5005dd3ab156f677cc099271e312728fb18e0dc
Related: OS#4974
2021-02-05 21:02:10 +01:00
Harald Welte ce2e4976be deps: Use latest version of AF_PACKET
... as this contains a fix to FrameRelay_Emulation to disable T392 if a
service affecting condition is detected.

Change-Id: I8b266577f738b7c12514eb8671e11d7a75be6034
2021-02-03 19:28:00 +01:00
Harald Welte 61b3a8729f deps/SCTPasp: Update to master (uses epoll instead of select)
The old version of SCTPasp we use
* had no IPv6 support
* didn't support file descriptors > 1024

See also https://www.eclipse.org/forums/index.php/m/1837587/#msg_1837587

Change-Id: I446dfb2f885999e40478b9332162a2584b0b71a3
2021-02-03 19:28:00 +01:00
Harald Welte 920c7c45ec fr + gbproxy: Start to use AF_PACKET ENOBUFS work-around
If send() on AF_PACKET returns ENOBUFS, usleep for 2ms and re-try
until it succeeds.

Change-Id: Id7bdd2c690eae3bec1df7634944cd73f0bf0b29a
Closes: OS#5343
2021-01-30 14:08:16 +00:00
Harald Welte 14c0445cde deps/BSSGP: Use specific commit hash
Using "master" doesn't really work as the local master branch already
exists even if we change the 'remote' to a different URL, see
https://gerrit.osmocom.org/c/osmo-ttcn3-hacks/+/21587

Change-Id: Id5f5ba52dbc9cd51dda2e91391c901b56756e2db
2021-01-05 16:26:07 +01:00
Philipp Maier 8d09528ccf deps/Makefile: temporarily use own repo for ProtocolModules.BSSGP
Temporarily use titan.ProtocolModules.BSSGP_v13.0.0 from
https://github.com/osmocom/ as we have some fixes that are not
yet part of upstream.

Change-Id: I5d7261a5ac33a0231c1a3d73bdff7fb099568687
2020-12-16 15:39:40 +00:00
Harald Welte 483d314831 deps: Update AF_PACKET dependency to version with socket/bind race fix
Change-Id: Icd773273d3ff8ff6d36ce472b8bd2e8a9b1e2e19
2020-12-10 22:13:25 +01:00
Harald Welte a71a410cb3 deps/Makefile: Require v0.1 of AF_PACKET TestPort
Change-Id: I435d0c09e051e0a3082e8c87807b72ce92117007
2020-11-18 15:21:32 +01:00
Harald Welte 023b61b2cb FR/FRNET: add Frame Relay emulation
Add frame relay testcase for BSS and SGSN side.
The test cases require hdlc interfaces (based on
dadhi with super channels and no lmi).

Change-Id: I95d64dc26a8d2ff02d6cf2bfcd22a97e5481f957
2020-10-16 04:06:39 +02:00
Harald Welte 501e070d6e deps: switch TELNETasp and M3UA back to upstream
the respective changes we had have long been merged upstream, so
let's switch back from our own forks to upstream

Change-Id: I52bdac20745bc3f5ce618ea804686781483a6f4c
2020-09-13 11:34:28 +02:00
Pau Espin ffe4739a5b deps/Makefile: Update to newer titan.ProtocolEmulations.M3UA master containing build fix
For more info, see https://git.eclipse.org/r/c/titan/titan.ProtocolEmulations.M3UA/+/166637

Change-Id: I2550d6883464835e5977a8876c514c8ab707fac4
2020-07-24 11:03:55 +02:00
Pau Espin 0232504843 Use osmocom fork of TELNETasp to fix compilation error spotted by gcc 10.1.0
Change-Id: I45beacb3a3141531e2552588147e3741c8637f4e
2020-05-19 19:21:29 +00:00
Harald Welte 88b3ccbf5b Add GTPv2_Emulation component
Change-Id: If73aa453e44ebf28032c60d207feb03e8061dc0c
2020-04-21 22:57:31 +02:00
Vadim Yanitskiy 35d3a159e2 deps/Makefile: bump titan.ProtocolModules.MobileL3_v13.4.0_commit
This revision has an important fix concerning the length limitations
of Mobile Identity IE (see 3GPP TS 24.008, section 10.5.1.4) when
no identity is present (see 'No_Identity' record).

Change-Id: If5339c7a91b4e0188194f1cd935798f153974e01
2020-03-28 00:46:06 +07:00
Harald Welte 34b9da299c remsim: Add tests using stdin/stdout of osmo-remsim-client-shell
osmo-remsim-client-shell allows to send C-APDU via STDIN of the program
and receive R-APDU via STDOUT.  We can attach to that using the PIPEasp
TTCN3 port, and hence test a [local] osmo-remsim-client-shell
transceiving APDUs from/to a simulated bankd in the test case.

The only sad part about this is that we now will need to have the
implementation under test (osmo-remsim-client-shell binary) in the
same container as the TTCN-3 test, as it will fork/exec it.

This is why we disable it by default and a modulepar must be used to
enable those particular tests.

Change-Id: I3a69c692cf3e6bbe04ce58594050b20da0c37d16
2020-02-19 19:56:30 +01:00
Harald Welte 8aefd11dd2 deps/Makefile: Call Github repositories ECLIPSEGITHUB
ECLIPSEGIT and ECLIPSEGIT2 are really difficult to distinguish,
let's call the former ECLIPSEGITHUB, i.e. the eclipse organization
at github.

Change-Id: I3a12164f76b85168c3afe85af2dd4be42f3e560b
2020-02-18 21:47:06 +01:00
Oliver Smith 36cb88c6cc deps/Makefile: fix ECLIPSEGIT2 clone URL
Switch to working clone URL, after more repositories stopped working
with the old URL. Revert 865ba37553
("deps: Work around disappearing eclipse.org git repositories").

Related: https://bugs.eclipse.org/bugs/show_bug.cgi?id=559943
Change-Id: I04b690a262765f60b671225e1a5425e2750d093f
2020-02-10 11:25:26 +01:00
Harald Welte 865ba37553 deps: Work around disappearing eclipse.org git repositories
See https://bugs.eclipse.org/bugs/show_bug.cgi?id=559943
and https://bugs.eclipse.org/bugs/show_bug.cgi?id=559944

Change-Id: I8942e71e674d46dda7fb81d2076fa189ee31eecd
2020-02-08 14:17:33 +01:00
Harald Welte c5a8021557 remove titan.TestPorts.GPIO module
We don't use it, and it suddenly disappeared from git.eclipse.org,
see https://bugs.eclipse.org/bugs/show_bug.cgi?id=559942

Change-Id: I5e5b9ab3dca9ff574980dad37616cdc981dd8607
2020-02-08 14:02:45 +01:00
Oliver Smith 39ca7c3fe8 deps: set titan.TestPorts.UDPasp_commit
Fixes: 7c5cb6eb8a ("deps: use UDPasp from osmocom github fork")
Change-Id: I141b906d2a5969afb5f6e27413fa1c18c54d5708
2020-02-06 16:21:47 +00:00
Oliver Smith 7c5cb6eb8a deps: use UDPasp from osmocom github fork
Has additional SO_REUSEADDR patch, which is needed for D-GSM mslookup
mDNS testing.

Related: SYS#4618
Change-Id: Ie7e1c3dbd67dba9079a5768e442faffc936fd7fa
2020-01-20 07:32:40 +00:00
Oliver Smith 66fde7672e deps: add titan.ProtocolModules.DNS
To be used in mslookup mDNS tests.

Related: SYS#4618
Change-Id: I89dd528b7934892c5a24209374e8218a95db6ab3
2020-01-20 07:32:16 +00:00
Harald Welte bc88eace05 deps/Makefile: Update Socket-API + IPL4 upstream tags
Change-Id: I557f1515528ac3a90b34c1fb647d88a1989fea37
2020-01-15 15:58:00 +00:00
Harald Welte 6cb85a67e9 deps/Makefile: Update most of our dependencies to upstream
Upstream TITAN repositories have almost no actual code changes.

However, they did switch to MPLv2, and they did update documentation
from word documents to asciidoc.

Change-Id: If5bd3d567de40ec2f72cdf63499435ac0bb4047e
2020-01-12 15:33:05 +00:00
Harald Welte b82ca2f656 deps/Makefile: Switch back to upstream for more repositories
Upstream TITAN has merged some of our changes upstream, so we can
move away from our forked repositories

Change-Id: I91a1e13173e059a94fb76858ec1a1879ab1a8686
2020-01-12 15:32:55 +00:00
Harald Welte d0575c2fd8 deps: Switch to osmocom fork of titan.ProtocolEmulations.SCCP
This allows us to use the ConvertPDUEncodedAddressToASPAddress()
functions from outside SCCP_CT.  See Change-Id
I72351168d4e0e79cea3319a537d51d47027266f4

Change-Id: I38b47c3b382281d0e7a3d80d1630362096949b6f
2020-01-12 11:48:58 +01:00
Harald Welte f30e22bb17 initial checkin of CCID tests
Change-Id: I35f41cb0097a4408afe7c31f42463baaa47f15bd
2019-12-02 23:29:46 +00:00
Harald Welte 3ffb3af476 update 'deps' to use M3UA libraries with proper NOTIFY support
Change-Id: Ifb90c815adae8e30f57c188d1f9db6d6c77d199b
2019-11-07 13:38:18 +00:00
Pau Espin f8e9be73b8 deps: Fix titan.ProtocolEmulations.M3UA commit reference
The branch upstream has been rebased and old reference no longer exists.

Change-Id: I9e631663de2da0bf371404ae092ac50fdbab9c9d
2019-10-22 19:10:24 +02:00
Harald Welte faa4292444 Initial TTCN-3 test suite for osmo-remsim
This adds shared infrastructure and initial test suites for
osmo-remsim-{server,client,bankd}.

Change-Id: I00034d3a991f0f881cfd8ff0bfc4557113daf830
2019-09-13 11:45:45 +00:00
Harald Welte c4148dac35 NAS_EPS: fix 'make deps' (no commit specified)
Change-Id: I790c54568e745ea07afeed35b4d09a45b785711f
2019-08-18 19:42:23 +02:00
Harald Welte 56071b7d7d mme: Add missing link to DIAMETER_EncDec.cc from TITAN
Change-Id: I9214ba6778ed6fc8c576e9d97217ecbb9996fb12
2019-08-18 19:31:26 +02:00
Harald Welte fc5f637505 library: Add initial set of LTE/EPC NAS templates
Change-Id: I53a598011041d642f03dcd9cca128f4e9da4adfd
2019-08-18 17:14:20 +00:00
Harald Welte 0cdf071e8a Put build / run scripts under Apache 2.0 license
The license of the build or execution scripts doesn't affect the license
of the actual program, and we want to explicitly state that these scripts may
be used in any kind of context.

Change-Id: I553925cd88b05903aab52ae1afb093aa9ab9d035
2019-06-21 09:34:09 +00:00
Pau Espin fe0c6083bd Depend on our own fork of titan.ProtocolModules.BSSMAP
Since we use some BSSMAP extensions to signal Osmux, we need to maintain
our own fork of BSSMAP_Types in order to supports those IEs in BSSMAP
RESET and BSSMAP Assin Req/Compl. Hence, switch all build componenets to
fetch and use our fork.

Depends: titan.ProtocolModules.BSSMAP Iaf1e137269c0da20b2c96fd104b57edf336693af
Change-Id: Ic8debe5f3ffe8e1d4258fa6b4632a3871b99af40
2019-05-21 10:28:53 +00:00
Harald Welte 2216b75a58 deps/Makefile: Use osmocom fork of LLC protocol module
Change-Id: I8b9f107f0a99dcbd8148a3d431a101d194dfe788
2019-04-25 20:06:15 +00:00
Harald Welte 1fd461a936 SGsAP: Switch over to osmocom branch/repo to avoid bugs in official one
The VLR and MME name are octetstring with dns-style labels and not
character strings.

Change-Id: I31a8ea04ef508beba9014aac5479693c47b7b956
2018-10-28 09:52:34 +00:00