Commit Graph

303 Commits

Author SHA1 Message Date
Oliver Smith c4f76c40d1 ttcn3: pgw: depend on osmo-uecups
Change-Id: I95b77ea1a9f4c31c8886dc3f613e545135da320d
2023-11-23 14:06:03 +01:00
Oliver Smith af3d692e89 ttcn3: fix missing test name in usage desc
Change-Id: I5be5ee227dac0969e12d284ec518019c75698754
2023-11-23 13:59:09 +01:00
Oliver Smith 1e497a2110 ttcn3: add aliases hss -> hss-ogs etc.
Some open5gs testsuites end in -ogs (hss, mme, ggsn), others do not
(pgw). Let the user omit -ogs and choose the right one automatically.

Change-Id: I64fb519c15cfff8a8b560d51ff8b6b5d1aada8f7
2023-11-23 12:34:33 +01:00
Oliver Smith 32eda24020 ttcn3: support hss-ogs, mme-ogs, pgw
Change-Id: I08d76e6c92e2e3eacacb02a5a6f6d589e5889499
2023-11-23 12:33:44 +01:00
Oliver Smith 7dcf8520c5 ttcn3: run_docker: remove :ro
Don't mount usr_local, var_local as read-only, so the environment is
more similar to our jenkins.

Fix for:
  + /data/
  + command -v open5gs-upfd
  + upfd_bin=/usr/local/bin/open5gs-upfd
  + setcap cap_net_raw+ep /usr/local/bin/open5gs-upfd
  Failed to set capabilities on file '/usr/local/bin/open5gs-upfd': Read-only file system

Change-Id: I52d2989d91119f0f1673f49723f1055fe7428d15
2023-11-23 11:59:42 +01:00
Oliver Smith 5f8deb0ce6 ttcn3: remove unused functions
Change-Id: I1939f1262757899c1a75c6d51cffd2ab13815c0f
2023-11-23 11:59:33 +01:00
Oliver Smith 7c8e69da79 ttcn3: add ggsn-ogs
Change-Id: Id84047e56a6c07fbf0984eb6aedcecd4d7f3ae97
2023-11-22 12:52:46 +01:00
Oliver Smith 45f8c39c96 Support building open5gs
Change-Id: Id145443ff53f13740167e9dde6417b7e915b8399
2023-11-22 11:43:24 +01:00
Oliver Smith 59dbd1c75f gen_makefile: split gen_make into more functions
Add separate functions for each rule (autoconf, configure, build,
install, reinstall, clean, distclean). This is in preparation for
supporting open5gs (meson).

Change-Id: Id7acfec7f5dd0d3d1a080b3c9d15005e51863e66
2023-11-22 11:43:24 +01:00
Oliver Smith 9d83a72e85 gen_makefile: don't shell out to nproc
Use python's multiprocessing.cpu_count() instead of "$(nproc)". The
latter didn't work properly in Makefiles, the right syntax would have
been "$(shell nproc)". Make didn't complain about it and assumed that we
want to use all CPUs with an empty argument "-j ", but meson doesn't
accept this syntax.

Change-Id: I58ca082339f3aff813f587f4c2be9c0951b9b2dd
2023-11-22 11:43:11 +01:00
Oliver Smith 8590b898e9 gen_makefile: update URL code for netfilter urls
* libgtnpnl is now developed at
* use https:// instead of git:// for libnftnl, nftables
* read the urls from a new all.urls file
* don't set a push URL pointing to gerrit for projects that have
  different URLs

Change-Id: I5522c9fcc594d296c581ba59c0beb4882e2d976e
2023-11-22 11:43:10 +01:00
Oliver Smith 9b632661ec enable color output from gcc
Change-Id: Idde8084ca981333be2fc2b369ea8f25881470654
2023-10-25 15:57:50 +02:00
Oliver Smith 0948cf4a71 werror.opts: add libgtpnl
Depends: libgtpnl Ife3716c667d2e9b3fcd94d3cdc044d594e7dab5a
Change-Id: Ia5f6f6d2641318c00608471256257b4e06627c7c
2023-10-24 13:06:05 +02:00
Oliver Smith e92331ab65 add arg to only run one test
Depends: docker-playground I1f45a05e089b429918096fcd64f7c02033d5a9dd
Change-Id: I07a76f6c58d379608ecadfc3ba845651929f668c
2023-10-13 12:56:21 +02:00
Oliver Smith 971de959d1 add options for kernel tests
Change-Id: I2a569b6712d8930807750751c14ed4e18b325e02
2023-10-12 16:59:15 +02:00
Oliver Smith 238c7de87e clean osmo-ttcn3-hacks too
Change-Id: Id0fdf5e3f0917e56e3c6abff54a2f886367252f5
2023-10-12 15:23:16 +02:00
Oliver Smith 375587cfa8 use nproc for JOBS
Change-Id: I1971e7758e67a4260ae1398d510cb719db45d101
2023-10-10 13:33:11 +02:00
Oliver Smith f05527fc96 use ccache
Use ccache for building Osmocom programs and TTCN-3 testsuites.

Change-Id: I800062d0379295a6905851db29e820ff16217653
2023-10-10 13:33:11 +02:00
Oliver Smith 44e1ba1eae add clean argument
Change-Id: If779b87c02d01b877e44118db34bdf2c83dbf619
2023-10-10 13:33:11 +02:00
Oliver Smith d9c014a251 add getopts
Add getopts parsing. The idea was to add support for setting a different
IMAGE_SUFFIX argument, but later on it became clear it is not worth
implementing here. Add the getopts logic anyway because it can be used
to add other arguments in the future.

Change-Id: If55a982d92b2a24a175ab7f3a8f048f054033dc2
2023-10-10 13:32:01 +02:00
Oliver Smith f81707454b Update URLs: ->
Change-Id: Iba2ab71c06e413da4cb82fb1b85b4658d6773743
2023-09-29 12:55:58 +02:00
Oliver Smith 5438073002 ttcn3: docker images: bullseye -> bookworm
Change-Id: I60eb16291c2e12d561043bb4b6e902ebad18bd38
2023-09-27 10:46:48 +02:00
Oliver Smith 0044430c27 ttcn3: build osmo-ggsn with --enable-gtp-linux
Order the opts files alphabetically while at it.

Change-Id: I40c197fc0dc2199dd5a7b0d1d820dee1338c1703
2023-07-18 16:10:04 +02:00
Oliver Smith 6f1a3f5ac6 ttcn3/ add osmo-ggsn
Order the list alphabetically while at it.

Change-Id: Ibdf30a0f87a4cc19c37c6337edff42fd4e56342a
2023-07-18 15:45:11 +02:00
Oliver Smith ef49dd53e8 all.deps: add osmo-remsim and simtrace2
Change-Id: I58324ad5ed6c77a53e697d5b4b07ff9353859556
2023-07-14 08:32:53 +00:00
arehbein 3c88d3e6cd src/grd: Add option for cherry-picking
Option '-c|--cherry-pick' will now cherry-pick into
the current branch if passed.

Change-Id: I85b1a2c4915e3da374e4b1201f2e977708fc7c4c
2023-07-10 08:51:13 +00:00
Oliver Smith 2ee10b05d5 net/templates/run: let user confirm close of tmux
Don't immediately close tmux on exit. Without this patch the error
messages printed in error code paths are not visible to the user.

Change-Id: I4a98e7eb7691b7b954ee7edd4ed488ae3c1dd835
2023-06-27 12:14:16 +02:00
Oliver Smith aadee1a645 net/templates/osmo-bsc: modernize
* Write explicit role & sctp-role fields in ASP
* Use new mgw node

Change-Id: I0051ba7f8116ea29380d3f438fd3a0af15d9d12f
2023-06-26 14:59:34 +02:00
Oliver Smith 98eb2f47d9 net/config_2g3g: set a valid BTS1_ARFCN
Even if only one BTS is used, both ARFCNs are written to the osmo-bsc
config and osmo-bsc refuses to start up if there is an invalid ARFCN.

Change-Id: I569b407736713cefd46a1c927d9ee85f91332553
2023-06-26 14:58:44 +02:00
Oliver Smith 3e1a25c312 net/templates/ fix BSC_COUNT check
Use ${BSC_COUNT} instead of $BSC_COUNT, as otherwise the template code
doesn't replace the variable. Without this patch it always went into the
else code path.

Change-Id: I2b880a8da51f96c16fb56d9d6e3994ecc1b47ae7
2023-06-26 14:58:44 +02:00
Oliver Smith 5e8a8d87cf net/templates/osmo-msc.conf: modernize
* Write explicit role & sctp-role fields in ASP
* Use new mgw node

Change-Id: Id77a579ff9315f2c6bf9d7f6d80b4b022e8d4963
2023-06-26 14:58:41 +02:00
Oliver Smith 0ba5b0be92 net/templates/run: fix prompts not working
Reset the terminal after tmux new-window and after killing programs
during shutdown. Otherwise with tmux 3.2a the input prompts do not work.

Change-Id: I7f14c364637f82699a5b935637222d5da977d67d
2023-06-26 14:44:57 +02:00
Pau Espin ca00e2bf06 Write explicit role & sctp-role fields in ASP configurations
Change-Id: I2d3cb4a6d2dec2d88491c6db2fc72269c827815d
2023-06-08 19:43:34 +02:00
Oliver Smith 3115b12e72 refactor logic for building images 2023-04-20 13:10:30 +02:00
Oliver Smith 9326b3672a build_testsuite: build docker img first 2023-04-20 12:56:15 +02:00
Oliver Smith 837d4d6e86 ttcn3/ adjust path
The script was moved to the common dir in docker-playground.git, so
adjust the path here.
2023-04-17 14:20:34 +02:00
Neels Hofmeyr 6ea95c0120 src/ use sccp -O
Change-Id: I5e1186bca1da1a0f212ff3e07f731b547af1feb0
2023-04-12 02:07:16 +02:00
Oliver Smith 145feaa642 all-tests: add osmo-sip-connector
Change-Id: I44a1bbd40a292251e56b4a7998b207795f4348e1
2023-03-22 14:46:46 +01:00
Oliver Smith 57a795cfe1 README: link to related OsmoDevCall
Change-Id: I0befcd6b058e4fa222c4f2b1363fa4596588f32a
2023-03-09 13:20:59 +01:00
Oliver Smith 6711b4f76b ttcn3: support bsc-sccplite
Change-Id: I8dd4b1ab9f14240335b4f9055066d1b0b6cee2ea
2023-03-06 11:29:48 +01:00
Oliver Smith f44fd1b144 ttcn3: print testsuite_image
Change-Id: If3d5f31054217ae7d007bb005e7427558755d332
2023-03-06 11:24:26 +01:00
Oliver Smith 78a1e058f4 ttcn3: print dir_testsuite_docker if invalid
Change-Id: I54080ee2561a33b7ebf0dde90a93bd62bd3ec23b
2023-03-06 11:12:23 +01:00
Oliver Smith f4faadf3f5 src/grd: replace
As discussed with Neels, replace the previous version of the script that
didn't work anymore (probably due to api change from gerrit) with a new
one that works with the current api and also doesn't require unlocking
the ssh key.

Change-Id: Ie5d061323dce6843cafe49434250cc4780c8c832
2023-02-24 10:32:02 +01:00
Vadim Yanitskiy 479e55ac24 gits: fix alias 're' of 'rebase' doing nothing
Change-Id: Ib861155ee988503ee142c97fac531770700761db
2023-01-28 21:51:25 +07:00
Vadim Yanitskiy 6f84a084cd clone repos with --recurse-submodules
Change-Id: Ie305422145aff257eeb6f13d82d6a978d6c2849a
2022-12-23 23:21:39 +07:00
Oliver Smith 07ff4210f5 all.deps: add osmo-e1d
Change-Id: I37ce89ac4e32d7a5bc737eaaa16a6bcc3b70a996
2022-12-08 14:57:13 +01:00
Oliver Smith ccf7b09319 werror.opts: enable osmo-iuh
It builds without warnings now \o/

Related: OS#4462
Change-Id: Ie974632462aab755d73e1345ebc9a08eb2d80893
2022-11-15 13:04:16 +01:00
Oliver Smith ba1cfcc875 ttcn3: colorize compiler output
Attach a tty to the docker container while building the testsuite, as
this is what "should_colorize()" checks for.

Related: b3dca57db9
Change-Id: I6d3c9e1e82b1cf4384b4abd3f1eed072d8fe6fde
2022-10-21 12:13:22 +02:00
Oliver Smith f3d71209ec ttcn3: build testsuite inside docker too
Build the ttcn3 testsuites inside docker, so there is no mismatch of
libraries between the host system and the docker container when
attempting to run the testsuite inside docker later (like jenkins does

Change-Id: Ic89e32ed68848bb3b661f77775ed1520c9f44fd9
2022-10-18 15:58:32 +02:00
Neels Hofmeyr 51df7420b0 virt-nitb: tweaks
Change-Id: Icba4b16e25db93ba9d069388bbe39cd5adfed770
2022-09-04 05:29:06 +02:00