Commit Graph

256 Commits

Author SHA1 Message Date
Oliver Smith f3eb0ba445 ttcn3.sh: support IMAGE_SUFFIX=latest
Add the image suffix to the marker in run_docker() which indicates if
the testsuite docker container was already built (with all its
dependencies), so the script doesn't assume that everything is already
built if using without IMAGE_SUFFIX first and then switching to
IMAGE_SUFFIX=latest.

Add an usage example to README for IMAGE_SUFFIX=latest.

Change-Id: I867740831810324a7f5906a0548f0d04ecb9a0a1
2021-08-13 09:17:39 +02:00
Oliver Smith f03dfa30a2 ttcn3.sh: get_program_repo: add osmo-pcap-*
Make "ttcn3.sh osmo-pcap-client" work.

Change-Id: I61f1b9f8ce9157f34cefad093b7ae7d445834961
2021-08-13 09:17:39 +02:00
Oliver Smith 6b84b46198 ttcn3.sh: set NO_LIST_OSMO_PACKAGES=1
Speed up tests by not running a separate docker instances first that
lists installed packages.

Depends: docker-playground Iaafb81e9ee94850ae3b6318574ad5370d74a2838
Change-Id: I3d9976d07f088e2d106d23259889a4bffe1abbcb
2021-07-12 08:35:49 +00:00
Oliver Smith 4186b95259 net/templates/run.sh: tweak masquerade
Replace the old check with an exact check for the given rule. The old
check doesn't work on my system if docker is running and sets up other
masquerading rules.

Change -A to -I, so it is less likely to be affected by whatever other
rules may already be above in the chain.

Change-Id: I30c22fe4e7683611e8dada329dbf7d51f78b6016
2021-07-12 08:35:49 +00:00
Neels Hofmeyr 1276bf2c1a add no_libmnl.opts 2021-06-21 22:39:41 +00:00
Neels Hofmeyr 58c219d370 deps: add osmo-smlc
Change-Id: Ib09012162e53d52c5326946b90c311886712d3cd
2021-06-21 22:39:41 +00:00
Neels Hofmeyr f486870137 src/osmo-add-gerrit-hooks.sh: maxdepth 2 2021-06-22 00:37:05 +02:00
Neels Hofmeyr fc7b8edaab localhost cfg 2021-06-22 00:37:05 +02:00
Neels Hofmeyr ec789e7e44 add osmo-bts to 3G+2G.deps 2021-06-22 00:37:05 +02:00
Oliver Smith 6f7954e869 ttcn3: add missing ttcn3-docker-run.sh
After recent refactoring, having this file in /usr/local/bin is required
to run the testsuites.

Change-Id: I23467136af6deaca69e0b43697a06385cb65444d
2021-06-01 14:16:20 +02:00
Oliver Smith 7531cea612 ttcn3: prepare_local_bin: update respawn.sh path
Make logic to install the file simpler while at it, and allow it to
create /usr/local/bin if it doesn't exist (I just had that).

Change-Id: I497b9e8909a419f5b5286fcccce9d8a1ba9d515c
2021-06-01 13:32:21 +02:00
Oliver Smith 710107a459 net/templates/osmo-gbproxy.cfg: update format
Update to changes in osmo-gbproxy
* Id67592aa7712e5e04e7264b2fb8f26d57eb7e69e
* I2a18dcf035f1fc7304a0c7c7c83b5e8e15429d2b

Change-Id: Ia7008d6d2d26030aa4c35439f1525a53957443a1
2021-03-19 13:13:02 +01:00
Oliver Smith 964539c416 net/templates/osmo-sgsn.cfg: update format
Migrate to the new gprs_ns2_vty configuration introduced in osmo-sgsn
Ie9306ab4d4738c2c57a69987086e22771b30657e.

Change-Id: Ie0a6d4a55f725ebcc6a55b6bd71c52ad72accbd2
2021-03-19 13:12:55 +01:00
Oliver Smith b3ae4b60ff gen_makefile.py: regen: put args in own lines
Make it easier to adjust opts before running 'make regen'.

Change-Id: I3c537ca9cd876e62547efca1ea40f31e90d8761e
2021-02-01 14:45:22 +01:00
Neels Hofmeyr 0a5ccc45d8 gits fu
Change-Id: I453c6644be4d6fc6032b162216b8c3a25854c26a
2020-09-25 05:17:55 +02:00
Vadim Yanitskiy d9cdec6afb gen_makefile.py: fix echo: add -e to enable backslash escapes
I guess it's enabled by default in some distributions like Debian,
but at least for Arch Linux it needs to be enabled using '-e'.

Change-Id: Ie9c0657c9decb83bf8531ce1a0e97c27ee7008bb
2020-09-16 01:19:25 +00:00
Neels Hofmeyr 67e53d9d7f gits: proper rebase dialog
Change-Id: I3d399f38db583df990d6f6da858fc2e199639cb0
2020-09-08 01:37:56 +02:00
Neels Hofmeyr bc2caa3fd9 gits: tweak UI flow
Change-Id: I937f817245a36b14b5b2052e68155923042ddab4
2020-08-26 15:31:28 +02:00
Neels Hofmeyr 7458414135 sgsn-manual.opts
Change-Id: Idce270b5ef6c9a4835d422930e764641b9558b7f
2020-05-21 13:24:02 +02:00
Neels Hofmeyr 03f0f9692e bsc-manual.opts
Change-Id: I54df09b2de642111f465cec99b612513e3d97cc0
2020-05-21 13:24:02 +02:00
Neels Hofmeyr e0570c2a34 fill_config.py: fix expansion of ${_name}
Change-Id: Icece4135fd3b6ff6e091e43f40c6ed423db7fd8f
2020-05-20 22:41:50 +02:00
Oliver Smith 8bdd7ababa README: update ttcn3.sh description
Explain that it is using docker containers now.

Change-Id: I00d48bb8f5917e9dc4e5502b4523050a99f07765
2020-05-05 14:18:34 +02:00
Oliver Smith 389dafb940 ttcn3.sh: clone deps on first run
Change-Id: Id41a64d1012b9f54811c19d593cab125322a5c96
2020-05-05 14:04:22 +02:00
Oliver Smith 1b471a9a39 ttcn3.sh: make sure respawn.sh is available
Change-Id: I3de75642eb4b4b26b74013d774652337433ba264
2020-05-05 14:04:22 +02:00
Oliver Smith 01a510a967 ttcn3: mount osmo-dev src in docker containers
Instead of trying to run everything outside of docker, just build the
docker containers and then mount /usr/local and osmo-ttcn3-hacks from
the host system into the docker containers. This way, we can just use
the same configs as the official jenkins jobs are using, while still
having a short test-cycle once the docker containers are built for the
first time. I've decided to implement this, because it was not feasible
to maintain the separate configs.

Depends: docker-playground I8d1f78aee926f8f6ec0b704e16639bc83f525816
Change-Id: Iecba5391dafc353058d369deb513b156534face1
2020-05-05 14:04:12 +02:00
Oliver Smith 10da26d3f1 ttcn3.sh: use no_{dahdi,optimization,doxygen}.opts
Change-Id: If4e5f271d31ebba25ff7c945ee962aefb4a848fa
2020-01-07 13:17:54 +01:00
Neels Hofmeyr 96a12a1681 make freeswitch template configurable
move some freeswitch config files out of the freeswitch/ tree and symlink so
that they become configurable

Apply new PBX_* variable naming

fill_config: enable symlinks;
ignore template function 'strftime' because freeswith cfg uses that.

Change-Id: I97d3db87398c743637f7eb13629e21b149bcc8fa
2019-12-04 04:09:05 +01:00
Neels Hofmeyr ba0a8280a9 clean up naming: s/SIPCON_REMOTE/PBX_SIP etc
Change-Id: Ie66b32466f80d930150ea940d236cfbbe026fc50
2019-12-04 03:58:17 +01:00
Neels Hofmeyr 7049cc146d add no_dahdi.opts hlr-manual.opts
Change-Id: I9a96f5653b8a2086dabc4fe123987a48eee13612
2019-12-04 03:28:38 +01:00
Oliver Smith 667f19b199 add freeswitch
Change-Id: If948de9e9e7e288b0a031ab973f453cd91a9e99b
2019-12-04 03:16:59 +01:00
Oliver Smith 87dae195e3 fill_config.py: copy subdirs
Change-Id: I010336d1ab2bb8abb69f38b3b5630ec9c47c77ed
2019-12-04 02:55:34 +01:00
Neels Hofmeyr 1d6a2b3bc3 fix BTS_MAX_POWER_RED
Change-Id: I921b900c55fb9ac962aa4681478eacaaf0da0467
2019-12-04 02:53:53 +01:00
Oliver Smith 01401bcfe4 ttcn3.sh: support sip (osmo-sip-connector)
Change-Id: I9eed35628f25be37bf0190e5d5797d792c1f0ef9
2019-11-28 12:19:28 +01:00
Oliver Smith e398564bdd ttcn3: run ttcn3 testsuites from osmo-dev
Build testsuite, SUT and dependencies and run everything with one
command. Example usage:

$ ./ttcn3/ttcn3.sh msc

So far, it works at least with:
hlr, mgw, msc, pcu, pcu-sns, sgsn

Change-Id: I6b4bf2743adeec1a950d5f090a690182b991cf49
2019-10-18 11:32:51 +02:00
Neels Hofmeyr c65901cf09 fill_config.py: sort foreach items numerically, not alphabetically
Make sure that BTS 11 doesn't get sorted between BTS 1 and 2, because osmo-bsc
requires the BTS to be configured in numerical order.

Also makes sense as foreach loop ordering in general.

Change-Id: Ib06052fd71def3d4c869ee9b3dc4d02ba06267af
2019-08-21 04:07:41 +02:00
Neels Hofmeyr fecf156c11 kamailio: fixes and tweaks
This is what I did to get external MNCC with kamailio to work.

(As before, only change MSC_MNCC from "internal" to "external ..." in config_*
to enable use of kamailio as external MNCC.)

Change-Id: I18c991bf914dedeb69cb8a2fcde117633e51a899
2019-08-08 15:43:54 +02:00
Neels Hofmeyr 768303432f osmo-bsc.cfg: remove 'as' config from cs7
It's not needed and causes confusion with routing-keys when more BSCs show up.

Change-Id: I6b3717a29ae832d61710abc58d922c00ae8f4dc0
2019-08-08 15:43:54 +02:00
Neels Hofmeyr 0dc7326b0f run.sh: drop -M mncc-socket option from osmo-msc cmdline
Since commit [1], the MNCC socket path is configured in the .cfg file. There is
no need to pass the -M option to osmo-msc on the cmdline anymore.

Also, the udtrace example to launch osmo-msc in run.sh includes a '| tee' so
that the -M would be passed as option to tee and breaks that example.

[1] cbdd7180a6 / Ie6352c584c0fce57c617387160c285abf40a5f90

Change-Id: Id5c177a7fe98b752881ddd0d98152a2e30380d0e
2019-08-08 15:43:54 +02:00
Neels Hofmeyr 8e4948421c run.sh: add comment to show how to enable MNCC udtrace
Change-Id: I94fdc87e8adea345ad735449558b75a56953fcc5
2019-08-08 15:20:38 +02:00
Neels Hofmeyr eb446fe27f add sysmobts-calib.py
Change-Id: I0cb372bddd115246ad1822dc06d318815387e8a4
2019-08-08 15:13:46 +02:00
Neels Hofmeyr 0ec459258a don't trigger rebuild on config.h.in
Lately I'm seeing unecessary rebuilds because config.h.in is newer than the
./configure file. The rule to trigger on *.in files is intended for "manual"
.in files, not those from autoconf/automake. Exclude config.h.in.
2019-07-12 01:22:50 +02:00
Neels Hofmeyr 7f46be3a0d gits: dont ask to push -f to None
Change-Id: I5edf0abff1b01a3d85e4bf2d77c8ab964e0bf2f0
2019-03-29 15:43:04 +01:00
Neels Hofmeyr efa34acc59 gits: also rebase onto origin/master
Change-Id: Icb331d225e8ec1b75d199e40c61c741a44c9a87c
2019-03-15 15:35:38 +01:00
Neels Hofmeyr 94e0aec3f6 gits: tweak "Rebasing" output
Change-Id: I81d57481650c6f94a3816f04d7b93e28bbc7f9c3
2019-03-15 15:35:38 +01:00
Neels Hofmeyr 3cf904ac68 fill_config.py: expand ${FOOn} outside of ${foreach} blocks
Change-Id: Icd724218afac86e04d1c1030ff982d9b7c3ab6cb
2019-03-15 15:35:38 +01:00
Oliver Smith 2490f69804 run.sh: fix $TO_RAN_IP and $TO_RAN_IU_IP usage
Add curly braces around both variables, so they get replaced properly
again.

Change-Id: I1f0f749b74fe5fd3982e045283735151f69c2487
2019-03-13 15:16:16 +01:00
Neels Hofmeyr 44543a98b0 gen_makefile: fix deps: add *.map (for e.g. libosmogsm.map)
Change-Id: I7bc2b5889213a1c635d039d4c6b577f6b4766d7f
2019-03-10 21:08:46 +01:00
Neels Hofmeyr cbdd7180a6 net/: refactor cfg templates
Adopt "foreach" and "common_" features and generally take in the improved
templates as used at 35c3.

If your config file relies on the tmpl_std that is now removed, you can locally
resurrect it with

  git checkout 2c6a55baa7 -- tmpl_std

but it's probably better to make a new copy of config_2g3g and insert your
local config there.

Change-Id: Ie6352c584c0fce57c617387160c285abf40a5f90
2019-03-07 16:28:06 +01:00
Neels Hofmeyr 3ad6817cd1 add manuals.opts, no_doxygen.opts, no_optimization.opts
Change-Id: Ief9e6865eaff587dbd1f1f73f2fecac470e77a81
2019-03-06 16:49:10 +01:00
Oliver Smith 2136f52ddf Add .gitreview
Allows downloading patches quickly with 'git review -d 1308' and other
shortcurts. We also have this in the other Osmocom repositories.

Change-Id: I18712cf0779ec65389736132ad6b40e629c37dc6
2019-03-04 11:09:35 +01:00