Files
openairinterface5g/ci-scripts/tests
Robert Schmidt d1f58d1430 Use new core network class in Iperf()/Iperf2_Unidir()/Ping()
Use the core network class to configure one "end" of these tests. This
will make the tests more generic and predictable, as they are explicitly
configured through two ci_infra.yaml "entities", instead of some
implicit "EPC" IP address given in configuration.

As of this commit, no XML passes this info into the framework, so no XML
step will work. As it is many changes, the following commits will add
the necessary info one by one.
2025-03-31 16:38:12 +02:00
..

In this directory and subdirectories are various CI code test cases and helper scripts.

Unit test

This repository contains unit tests. To run them, switch to the parent directory, i.e., ci-scripts/, and run

python3 -m unittest tests/*.py

To run individual unit tests, start them like so:

python tests/build.py -v
python tests/cmd.py -v
python tests/corenetwork.py -v
python tests/deployment.py -v
python tests/iperf-analysis.py -v
python tests/ping-iperf.py -v

The logs will indicate if all tests passed. tests/deployment.py requires these images to be present:

  • oai-ci/oai-nr-ue:develop-12345678
  • oai-ci/oai-gnb:develop-12345678

It will try to download oaisoftwarealliance/oai-{gnb,nr-ue}:develop automatically and retag the images.

test-runner test

This is not a true test, because the results need to be manually inspected. To run this "test", run

./run.sh

inside the test-runner/ directory (important!).