Commit Graph

51 Commits

Author SHA1 Message Date
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
Stefan Sperling fd0a130314 use tag for test dependency commit
Use the output of 'git describe' to pin the commit checked out
for dependency titan.ProtocolModules.SGsAP_13.2.0_commit, i.e.
the tag which points to 81544cf008378058b95ff20d33f3770fadb7e235.

Using a plain commit hash will always re-trigger an update of
the working tree in this particular case because 'git describe'
won't ever return an error.

Change-Id: Ia994b5c4488fd9b0d410b992e515c6eec4dd23b1
2018-10-12 16:34:46 +02:00
Harald Welte 18314435e9 Add SGsAP_Templates for SGsAP on the MME<->MSC interface
Change-Id: I435dab312fc4965c69ffb9cc22917539ebab93e7
2018-10-10 20:33:21 +00:00
Stefan Sperling e6bf4ac879 move M3UA_Emulation dependency repository to commit R.2.A-2-g742cf02
Change-Id: Ifd258da7a0fb53eadb2aa080348a5250c307fe85
2018-06-14 11:24:15 +00:00
Harald Welte 3103fce005 deps: Add titan.ProtocolModules.MAP
Change-Id: I228800c4ef103b55da4831aff59bd4370cf25969
2018-05-26 14:34:52 +02:00
Harald Welte 834d67e304 deps: Add Titan.ProtocolModules.ROSE
ROSE is used by MAP and SS

Change-Id: I9c2c7b1989e261cc970d3846511f232ddc104fbd
2018-05-26 14:34:52 +02:00
Harald Welte 36296dcc37 deps: Switch titan.ProtocolModules.SMPP back to upstream TITAN
Our patch for SMPP AlertNotification was merged, so we can switch
back to use upstream instead of our osmocom fork.

Change-Id: Ib171451af264aa675b173b5cad37f08bcd64fbc3
2018-04-16 17:37:31 +02:00
Harald Welte a28dce1021 deps: Use upstream titan.TestPorts.UNIX_DOMAIN_SOCKETasp again
Our patch has been merged upstream, there's no need for using our
forked repository anymore.

Change-Id: Ibfbc5d1457181fd6c893993e4a34fdb2fb3baa92
2018-04-14 22:04:05 +02:00
Harald Welte 72199a8be9 deps: Use SMPP from osmocom fork
the osmocom fork has support for AlertNotification, which upstream
doesn't.  Pull request is pending, so we have to use our osmocom
fork repo meanwhile.

Change-Id: I9b6b120fe74b46183517264d85651ac0d99b4035
2018-04-14 21:58:16 +02:00
Harald Welte 0a068c3a8c deps: Update titan.TestPorts.UNIX_DOMAIN_SOCKETasp_commit
The osmocom fork of the titan.TestPorts.UNIX_DOMAIN_SOCKETasp master
branch has been force-pushed in order to incorporate patch review
comments from upstream TITAN.

Change-Id: I23ec12fa5fb30796f37257cf5ea3fcd74d3ecb80
2018-04-06 13:52:35 +02:00
Harald Welte b1add59560 deps/Makefile: Various updates
* SCCP changes were merged upstream, we don't need to use osmocom fork
* SCCP upstream now has proper tag based version
* M3UA now has a new version tag (with Routing Context)
* UNIX_DOMAIN_SOCKET has new verison tag (upstream requested changes)

Change-Id: I5526c1688d84cf985299baa973271a620b4b4544
2018-03-27 20:52:38 +02:00
Harald Welte 035f7f8af4 deps/Makefile: Add missing "git fetch" to /update and /clean targets
When the Makefile was modified to use a new tag/hash of a given
repo, the "make update" or "make clean" target will fail as the
new version/tag is not yet known to the local repo, only to the
remote (and hence we need a fetch).

Change-Id: I52c44c744674cd4dab0c85086d68bde6f9be1fca
2018-03-27 20:52:38 +02:00
Harald Welte 498634bfd3 deps: Switch to our own fork of the M3UA ProtocolEmulation
.. as we have some patches that are not yet in upstream

Change-Id: Ie8a9380ae8838c571fe3d0776f60485b34c85d4e
2018-03-27 19:21:55 +02:00
Stefan Sperling a2b5449f97 preserve uncommitted local changes in ttcn3 deps repositories
The previous Makefile rules would always overwrite uncommitted
local changes within repositories under the deps directory.

Let's assume that somebody who has local changes inside dependencies
knows what they are doing, and eliminate the risk of discarding
results of their work. Always skip repositories which contain
local changes. Only print a warning about such repositories.

Nothing changes for people who do not modify dependencies.

While testing this change, I noticed that the 'make distclean' target
was not reachable via 'make distclean', and I've fixed this as well.

Related: OS#3090
Change-Id: I0ee4ed70868b1c1efa39ad2bf200bf59ae2a2019
2018-03-22 12:56:54 +00:00
Stefan Sperling 61c11e9234 make management of osmo-ttcn3 git repository dependencies automatic
Add rules to deps/Makefile which ensure that 'make deps' puts the git
repositories of dependencies into a known state. In particular, set
the origin remote url to a known value, and check out a known commit
into the work tree.

This change ensures that ttcn3 builds run with 'make' will always use
correct versions of dependencies.

The 'make update-deps' now has the same effect as 'make deps', but it
is not yet removed in case build scripts rely on its existence.
The new 'make deps' target is fast enough to be run before every build.

Change-Id: I561eee7e12d976cd2265ba1bb8cd22dd8c1a0735
Related: OS#3090
2018-03-21 10:25:29 +00:00
Harald Welte c87abfcb60 Remove M3UA/MTP3/SCCP code from this repo, use upstream repos
Originally, this code was not yet in an official upstream git repo.
However, it has been for many months, so let's remove our local copy
and use upstream git repositories like for all the other modules.

Change-Id: I2c616fb865df32cfec323d42e5d0d06de40c497b
2018-03-18 12:52:20 +01:00
Harald Welte 6fc784e3c8 L1CTL: Add message segmentation helper via getMsgLen()
As L1CTL is using a stream socket, we need to give the UNIX_DOMAIN
port some clue as to where our L1CTL message boundaries are in the
stream.

This requires a patched UNIX_DOMAIN_SOCKETasp test port with the
following commit applied:

commit 655cb4ab2ac006b3a73d1b679c83081d9743410a
Author: Harald Welte <laforge@gnumonks.org>
Date:   Sun Feb 25 23:25:46 2018 +0100

    Add "getMsgLen" function similar to IPL4asp_PT

Change-Id: Iab33f57cb4311180e521a76307a552d16287b062
2018-02-27 22:32:49 +01:00
Harald Welte 4c294b6d46 deps/Makefile: Separate 'distclean' from 'clean'
'distclean' removes the actual git clones, while 'clean' now simply
ensures that there are no local changes between to index.

Change-Id: I5de68644b397ff7fbca0595a8900b41508d59bde
2018-02-15 18:32:28 +01:00
Harald Welte 981be73b1c deps/Makefile: Use "git remote set-url" to catch URL changes
In the past, we sometimes had to switch a repository URL (e.g. from
official git repo ot osmocom fork with patches/fixes).  The existing
Makefile didn't pick this up during "make update".  Let's use "git
remote set-url" to always update the remote URL before doing the "git
fetch".

Change-Id: I1d699ad5087f438e64b84c2e5c6e7320cb9457f6
2018-02-15 18:32:28 +01:00
Daniel Willmann 12984ef36d deps: Ensure that branches are updated on make update as well
Don't just force-checkout the local master branch again, but reset to
origin/master

Change-Id: I7d5e0e3d7f92fc51fa438b92f00c79f63945e74f
2018-02-06 16:04:04 +01:00
Harald Welte c98b42c8c3 deps: Use SCTPasp from osmocom github fork (SO_REUSEADDR, usleep hack)
Change-Id: I9169d231358a9a7e9e10302044a895087f7e7d78
2018-01-27 14:27:38 +01:00
Harald Welte 53a06cd2f4 deps: Switch back to upstream titan.TestPorts.UNIX_DOMAIN_SOCKETasp
Upstream TITAN has merged our SOCK_SEQPACKET support, so there's no
need for using our private repo anymore.

Change-Id: Ib04d9a3095cf93609af07af0de0b701cba460f67
2018-01-27 14:27:38 +01:00
Harald Welte 701b574fed Use Osmocom-patched UNIX_DOMAIN_SOCKETasp for SEQPACKET support
Upstream TITAN doesn't have this yet (it's submitted, though),
so we have to use our own repo for titan.TestPorts.UNIX_DOMAIN_SOCKETasp
and at the same time make sure that our MNCC port is using
SEQPACKET in MSC_Tests.cfg

Change-Id: Ifa3661d8f818564d595c4612e5612a245a31a8f4
2018-01-22 11:31:38 +01:00