Pau Espin Pedrol | bc1ed88 | 2018-05-17 16:59:58 +0200 | [diff] [blame] | 1 | This directory contains a set of scripts and osmo-gsm-tester testsuites to run |
| 2 | osmo-ttcn3-hacks.git BTS_tests.ttcn (https://git.osmocom.org/osmo-ttcn3-hacks/tree/bts). |
| 3 | |
| 4 | The idea is to set up automatically the following components: |
| 5 | TTCN3 <-> osmocon (osmocom-bb) <-> motorola C123 <-> RF network <-> BTS_TO_TEST <-> TTCN3 + osmo-bsc |
| 6 | |
| 7 | * A jenkins job builds a docker image containing a built BTS_tests TTCN testsuite. |
| 8 | * Another jenkins job retrieves the artifacts from osmo-gsm-tester-build jobs |
| 9 | plus one for required osmocon binary. This job then calls osmo-gsm-tester/ttcn3/jenkins-run.sh, which will: |
| 10 | ** Pull the above mentioned docker image containing BTS_Tests. |
| 11 | ** Start osmo-gsm-tester with OSMO_GSM_TESTER_OPTS=osmo-gsm-tester/ttcn3/paths.conf, |
| 12 | that contains mostly same stuff as regular osmo-gsm-tester jobs, but with a |
| 13 | different testsuite containing 1 test "ttcn3_bts_tests.py". |
| 14 | ** The test "ttcn3_bts_tests.py" does the following: |
| 15 | *** Start and manage all osmocom required components to run BTS_Tests: osmo-bts, osmo-bsc, osmocon, etc. |
| 16 | *** Generate the BTS_Tests.cfg required by BTS_Tests from a template to adapt to dynamic bits set by osmo-gsm-tester. |
| 17 | *** Launch script osmo-gsm-tester/ttcn3/suites/ttcn3_bts_tests/scripts/run_ttcn3_docker.sh with parameters and wait for it to finish. |
| 18 | This script will start and manage the lifecycle of the docker container running BTS_Tests |
| 19 | |
| 20 | See OS#3155 for more information regarding this topic. |