Skip to content
Unstable

Changes

Summary

  1. testenv: pass env var for --binary-repo (details)
  2. bts/run_fake_trx.sh: tweak cd logic (details)
  3. testenv: respawn.sh: don't respawn on segfault (details)
  4. testenv: print backtrace on startup fail too (details)
  5. testenv: build virtphy from src with --binary-repo (details)
  6. bts: add initial testenv.cfg (details)
Commit 77311c76c05eef9a1ba80a52764038faf1c46883 by Oliver Smith
testenv: pass env var for --binary-repo

Pass TESTENV_BINARY_REPO=1 to the podman container if the --binary-repo
argument is set. This will be used for the BTS testsuite to figure out
from where we need to run fake-trx.

Change-Id: Ia88906147e2e579145e3c8d04090c58f533febd5
The file was modified_testenv/testenv/podman.py
Commit ec1fe0c53d42db52516efeaab64c3bf65840d6b3 by Oliver Smith
bts/run_fake_trx.sh: tweak cd logic

Don't test if FAKE_TRX_DIR is empty, because it is never empty at that
point. If it was empty, then the line above would assign a default
value.

Change-Id: I63f9720487b564de5c5609eb52a6bb9d5a8aa74f
The file was modifiedbts/run_fake_trx.sh
Commit c615e041532b855b4a15f10dfca2e5fd3cf5b31a by Pau Espin Pedrol
testenv: respawn.sh: don't respawn on segfault

Do not respawn the process if it segfaulted or aborted abnormally in
another way (exit code >= 128).

Change-Id: I6f3f6218095643609a8b8869b57dde6b6bdb77a0
The file was modified_testenv/data/scripts/respawn.sh
Commit edb02d68d65ffe0de0a509dfb9e5aceb4202935e by Pau Espin Pedrol
testenv: print backtrace on startup fail too

When a program fails to start up, look for the coredump and print a
backtrace if it was found (instead of only doing it if a program
crashes later on).

Change-Id: I66a55dcfdab17d035ce6425220763a85b5b6dc90
The file was modified_testenv/testenv/daemons.py
Commit 4c56973a0abb617ea759db35a1536abb59081ca0 by Oliver Smith
testenv: build virtphy from src with --binary-repo

Add logic to build virtphy from source when running with --binary-repo.
This extra code path is needed because we currently don't have virtphy
packaged (like trxcon and sccp_demo_user), and we need to build the
libosmocore binary package instead of building completely from source as
we would do it with osmo-dev.

Use ".split(" ", 1)[0]" on the program= value to only look at its first
word, so we can later on use it in testenv.cfg file as follows:

  [virtphy]
  program=virtphy -s /tmp/osmocom_l2

Change-Id: I37bac8509b2601286e4feab099782f82c8338dca
The file was modified_testenv/testenv/podman_install.py
Commit fa4995e8de0c32242f9ffeed3666b8f53cabebbe by Oliver Smith
bts: add initial testenv.cfg

As usually, imported from docker-playground and adjusted to run on the
loopback device.

Related: OS#6638
Change-Id: Id9ed3780d166c5f6736a006f466dc5f0dded6279
The file was addedbts/osmo-bsc-fh.confmerge
The file was modifiedbts/run_fake_trx.sh
The file was addedbts/testenv_hopping.cfg
The file was addedbts/testenv_oml.cfg
The file was addedbts/testenv_generic.cfg
The file was addedbts/BTS_Tests_FH.cfg
The file was addedbts/BTS_Tests_OML.cfg
The file was addedbts/osmo-bts-oml.confmerge