blob: 4dd90ff59f0b2c72b2f6f097e3f915078d518076 [file] [log] [blame]
Neels Hofmeyrc0827c42017-04-23 15:04:19 +02001== Configuration
2
Pau Espin Pedrol7e0b2dd2020-03-10 11:46:39 +01003=== Schemas
Neels Hofmeyrb52df172017-05-14 20:09:35 +02004
Pau Espin Pedrol7e0b2dd2020-03-10 11:46:39 +01005All configuration attributes in {app-name} are stored and provided as YAML
6files, which are handled internally mostly as sets of dictionaries, lists and
7scalars. Each of these configurations have a known format, which is called
8'schema'. Each provided configuration is validated against its 'schema' at parse
9time. Hence, 'schemas' can be seen as a namespace containing a structured tree
10of configuration attributes. Each attribute has a schema type assigned which
11constrains the type of value it can hold.
Neels Hofmeyrc0827c42017-04-23 15:04:19 +020012
Pau Espin Pedrol7e0b2dd2020-03-10 11:46:39 +010013There are several well-known schemas used across {app-name}, and they are
14described in following sub-sections.
Neels Hofmeyrc0827c42017-04-23 15:04:19 +020015
Pau Espin Pedrol7e0b2dd2020-03-10 11:46:39 +010016[[schema_resources]]
17==== Schema 'resources'
Neels Hofmeyrc0827c42017-04-23 15:04:19 +020018
Pau Espin Pedrol7e0b2dd2020-03-10 11:46:39 +010019This schema defines all the attributes which can be assigned to
20a _resource_, and it is used to validate the <<resources_conf,resources.conf>>
21file. Hence, the <<resources_conf,resources.conf>> contains a list of elements
22for each resource type.
Neels Hofmeyrc0827c42017-04-23 15:04:19 +020023
Pau Espin Pedrol7e0b2dd2020-03-10 11:46:39 +010024It is important to understand that the content in this schema refers to a list of
25resources for each resource class. Since a list is ordered by definition, it
26clearly identifies specific resources by order. This is important when applying
27filters or modifiers, since they are applied per-resource in the list. One can
28for instance apply attribute A to first resource of class C, while not applying
29it or applying another attribute B to second resources of the same class. As a
30result, complex forms can be used to filter and modify a list of resources
31required by a testsuite.
Neels Hofmeyrc0827c42017-04-23 15:04:19 +020032
Pau Espin Pedrol7e0b2dd2020-03-10 11:46:39 +010033On the other hand, it's also important to note that lists for simple or scalar
34types are currently being treated as unordered sets, which mean combination of
35filters or modifiers apply differently. In the future, it may be possible to
36have both behaviors for scalar/simple types by using also the YAML 'set' type in
37{app-handle}.
Neels Hofmeyrb52df172017-05-14 20:09:35 +020038
Pau Espin Pedrol7e0b2dd2020-03-10 11:46:39 +010039//TODO: update this list and use a table for each resource type
40These kinds of resources and their attributes are known:
Neels Hofmeyrc0827c42017-04-23 15:04:19 +020041
Neels Hofmeyr5d0330f2017-05-18 18:38:50 +020042'ip_address'::
Neels Hofmeyrc0827c42017-04-23 15:04:19 +020043 List of IP addresses to run osmo-nitb instances on. The main unit
44 typically has a limited number of such IP addresses configured, which
45 the connected BTS models can see on their network.
46 'addr':::
47 IPv4 address of the local interface.
48
49'bts'::
50 List of available BTS hardware.
51 'label':::
52 human readable label for your own reference
53 'type':::
54 which way to launch this BTS, one of
55 - 'osmo-bts-sysmo'
56 - 'osmo-bts-trx'
57 - 'osmo-bts-octphy'
58 - 'ipa-nanobts'
Pau Espin Pedrol264829e2017-11-02 16:43:04 +010059 'ipa_unit_id':::
60 ip.access unit id to be used by the BTS, written into BTS and BSC config.
Neels Hofmeyrc0827c42017-04-23 15:04:19 +020061 'addr':::
Pau Espin Pedrol264829e2017-11-02 16:43:04 +010062 Remote IP address of the BTS for BTS like sysmoBTS, and local IP address
63 to bind to for locally run BTS such as osmo-bts-trx.
Neels Hofmeyrc0827c42017-04-23 15:04:19 +020064 'band':::
65 GSM band that this BTS shoud use (*TODO*: allow multiple bands). One of:
66 - 'GSM-1800'
67 - 'GSM-1900'
68 - (*TODO*: more bands)
69 'trx_list':::
70 Specific TRX configurations for this BTS. There should be as many of
71 these as the BTS has TRXes. (*TODO*: a way to define >1 TRX without
72 special configuration for them.)
73 'hw_addr'::::
74 Hardware (MAC) address of the TRX in the form of '11:22:33:44:55:66',
75 only used for osmo-bts-octphy. (*TODO*: and nanobts??)
76 'net_device'::::
77 Local network device to reach the TRX's 'hw_addr' at, only used for
Pau Espin Pedrol264829e2017-11-02 16:43:04 +010078 osmo-bts-octphy. Example: 'eth0'.
79 'nominal_power'::::
80 Nominal power to be used by the TRX.
81 'max_power_red'::::
82 Max power reduction to apply to the nominal power of the TRX.
Neels Hofmeyrc0827c42017-04-23 15:04:19 +020083'arfcn'::
84 List of ARFCNs to use for running BTSes, which defines the actual RF
85 frequency bands used.
86 'arfcn':::
87 ARFCN number, see e.g.
88 https://en.wikipedia.org/wiki/Absolute_radio-frequency_channel_number
89 (note that the resource type 'arfcn' contains an item trait also named
Pau Espin Pedrol264829e2017-11-02 16:43:04 +010090 'arfcn').
Neels Hofmeyrc0827c42017-04-23 15:04:19 +020091 'band':::
92 GSM band name to use this ARFCN for, same as for 'bts:band' above.
93
94'modem'::
95 List of modems reachable via ofono and information on the inserted SIM
Pau Espin Pedrol264829e2017-11-02 16:43:04 +010096 card. (Note: the MSISDN is allocated dynamically in test scripts).
Neels Hofmeyrc0827c42017-04-23 15:04:19 +020097 'label':::
Pau Espin Pedrol264829e2017-11-02 16:43:04 +010098 Human readable label for your own reference, which also appears in logs.
Neels Hofmeyrc0827c42017-04-23 15:04:19 +020099 'path':::
Pau Espin Pedrol264829e2017-11-02 16:43:04 +0100100 Ofono's path for this modem, like '/modemkind_99'.
Neels Hofmeyrc0827c42017-04-23 15:04:19 +0200101 'imsi':::
Pau Espin Pedrol264829e2017-11-02 16:43:04 +0100102 IMSI of the inserted SIM card, like '"123456789012345"'.
Neels Hofmeyrc0827c42017-04-23 15:04:19 +0200103 'ki':::
104 16 byte authentication/encryption KI of the inserted SIM card, in
105 hexadecimal notation (32 characters) like +
Pau Espin Pedrol264829e2017-11-02 16:43:04 +0100106 '"00112233445566778899aabbccddeeff"'.
107 'auth_algo':::
108 Authentication algorithm to be used with the SIM card. One of:
109 - 'none'
110 - 'xor'
111 - 'comp128v1'
112 'ciphers':::
113 List of ciphers that this modem supports, used to match
114 requirements in suites or scenarios. Any combination of:
115 - 'a5_0'
116 - 'a5_1'
117 - 'a5_2'
118 - 'a5_3'
119 - 'a5_4'
120 - 'a5_5'
121 - 'a5_6'
122 - 'a5_7'
123 'features':::
124 List of features that this modem supports, used to match requirements in
125 suites or scenarios. Any combination of:
126 - 'sms'
127 - 'gprs'
128 - 'voice'
129 - 'ussd'
Neels Hofmeyrc0827c42017-04-23 15:04:19 +0200130
Pau Espin Pedrol7e0b2dd2020-03-10 11:46:39 +0100131[[schema_want]]
132==== Schema 'want'
133
134This schema is basically the same as the <<schema_resources,resources>> one, but
135with an extra 'times' attribute for each resource item. All 'times' attributes
136are expanded before matching. For example, if a 'suite.conf' requests two BTS,
137one may enforce that both BTS should be of type 'osmo-bts-sysmo' in these ways:
138
139----
140resources:
141 bts:
142 - type: osmo-bts-sysmo
143 - type: osmo-bts-sysmo
144----
145
146or alternatively,
147
148----
149resources:
150 bts:
151 - times: 2
152 type: osmo-bts-sysmo
153----
154
155[[schema_conf]]
156==== Schema 'conf'
157
158This schema is used by <<suite_conf,suite.conf>> and <<scenario_conf,scenario.conf>> files. It contains 3 main element sections:::
159[[schema_conf_sec_resources]]
160- Section 'resources': Contains a set of elements validated with <<schema_resources,resources>>
161 schema. In <<suite_conf,suite.conf>> it is used to construct the list of
162 requested resources. In <<scenario_conf,scenario.conf>>, it is used to inject
Pau Espin Pedrolc1220e12020-03-16 19:50:40 +0100163 attributes to the initial <<suite_conf,suite.conf>> _resources_ section and
Pau Espin Pedrol7e0b2dd2020-03-10 11:46:39 +0100164 hence further restrain it.
165[[schema_conf_sec_modifiers]]
166- Section 'modifiers': Both in <<suite_conf,suite.conf>> and
167 <<scenario_conf,scenario.conf>>, values presented in here are injected into
168 the content of the <<schema_conf_sec_resources,resources section>> after
169 _resource_ allocation, hereby overwriting attributes passed to the object
170 class instance managing the specific _resource_ (matches by resource type and
171 list position). Since it is combined with the content of
172 <<schema_conf_sec_resources,resources section>>, it is clear that the
173 <<schema_resources,resources schema>> is used to validate this content.
174[[schema_conf_sec_config]]
175- Section 'config': Contains configuration attributes for {app-name} classes which are
176 not _resources_, and hence cannot be configured with <<schema_modifiers,modifiers>>.
177 They can overwrite values provided in the <<defaults_conf,defaults.conf>> file.
178
179//TODO: defaults.timeout should be change in code to be config.test_timeout or similar
180//TODO: 'config' should be split into its own schema and validate defaults.conf
181
182[[config_paths]]
183=== Config Paths
184
185The osmo-gsm-tester looks for configuration files in various standard
186directories in this order:
187
188- '$HOME/.config/osmo-gsm-tester/'
189- '/usr/local/etc/osmo-gsm-tester/'
190- '/etc/osmo-gsm-tester/'
191
192The config location can also be set by an environment variable
193'$OSMO_GSM_TESTER_CONF', which then overrides the above locations.
194
195The osmo-gsm-tester expects to find the following configuration files in a
196configuration directory:
197
198- <<paths_conf,paths.conf>>
199- <<resource_conf,resources.conf>>
200- <<default_suites_conf,default-suites.conf>> (optional)
201- <<defaults_conf,defaults.conf>> (optional)
202
203These are described in detail in the following sections.
204
205[[paths_conf]]
206==== 'paths.conf'
207
208The 'paths.conf' file defines where to store the global state (of reserved
209resources) and where to find suite and scenario definitions.
210
211Any relative paths found in a 'paths.conf' file are interpreted as relative to
212the directory of that 'paths.conf' file.
213
214There's not yet any well-known schema to validate this file contents since it
215has only 3 attributes.
216
217.Sample paths.conf file:
218----
219state_dir: '/var/tmp/osmo-gsm-tester/state'
220suites_dir: '/usr/local/src/osmo-gsm-tester/suites'
221scenarios_dir: './scenarios'
222----
223
224[[state_dir]]
225===== 'state_dir'
226
227It contains global or system-wide state for osmo-gsm-tester. In a typical state
228dir you can find the following files:
229
230'last_used_*.state'::
231 Contains stateful content spanning accross {app-name} instances and
232 runs. For instance, 'last used msisdn number.state' is automatically
233 (and atomically) increased every time osmo-gsm-tester needs to assign a
234 new subscriber in a test, ensuring tests get unique msisdn numbers.
235'reserved_resources.state'::
236 File containing a set of reserved resources by any number of
237 osmo-gsm-tester instances (aka pool of allocated resources). Each
238 osmo-gsm-tester instance is responsible to clear its resources from the
239 list once it is done using them and are no longer reserved.
240'lock'::
241 Lock file used to implement a mutual exclusion zone around any state
242 files in the 'state_dir', to prevent race conditions between different
243 {app-name} instances running in parallel.
244
245This way, several concurrent users of osmo-gsm-tester (ie. several
246osmo-gsm-tester processes running in parallel) can run without interfering with
247each other (e.g. using same ARFCN, same IP or same ofono modem path).
248
249If you would like to set up several separate configurations (not typical), note
250that the 'state_dir' is used to reserve resources, which only works when all
251configurations that share resources also use the same 'state_dir'. It's also
252important to notice that since resources are stored in YAML dictionary form, if
253same physical device is described differently in several
254<<resource_conf,resources.conf>> files (used by different {app-name} instances),
255resource allocation may not work as expected.
256
257[[suites_dir]]
258===== 'suites_dir'
259
260Suites contain a set of tests which are designed to be run together to test a
261set of features given a specific set of resources. As a result, resources are
262allocated per suite and not per test.
263
264Tests for a given suite are located in the form of '.py' python scripts in the
265same directory where the <<suite_conf,suite.conf>> lays.
266
267Tests in the same testsuite willing to use some shared code can do so by putting
268it eg. in '$suites_dir/$suitename/lib/testlib.py':
269----
270#!/usr/bin/env python3
271from osmo_gsm_tester.testenv import *
272
273def my_shared_code(foo):
274 return foo.bar()
275----
276
277and then in the test itself use it this way:
278----
279#!/usr/bin/env python3
280from osmo_gsm_tester.testenv import *
281
282import testlib
283suite.test_import_modules_register_for_cleanup(testlib)
284from testlib import my_shared_code
285
286bar = my_shared_code(foo)
287----
288
289.Sample 'suites_dir' directory tree:
290----
291suites_dir/
292|-- suiteA
293| |-- suite.conf
294| '-- testA.py
295|-- suiteB
296| |-- testB.py
297| |-- testC.py
298| |-- lib
299| | '-- testlib.py
300| '-- suite.conf
301----
302
303[[suite_conf]]
304===== 'suite.conf'
305
306This file content is parsed using the <<schema_want,Want>> schema.
307
308It provides
309{app-name} with the base restrictions (later to be further filtered by
310<<scenario_conf,scenario>> files) to apply when allocating resources.
311
312It can also override attributes for the allocated resources through the
313<<schema_want,modifiers>> section (to be further modified by
314<<scenario_conf,scenario>> files later on). Similary it can do the same for
315general configuration options (no per-resource) through the
316<<schema_want,config>> section.
317
318.Sample 'suite.conf' file:
319----
320resources:
321 ip_address:
322 - times: 9 # msc, bsc, hlr, stp, mgw*2, sgsn, ggsn, iperf3srv
323 bts:
324 - times: 1
325 modem:
326 - times: 2
327 features:
328 - gprs
329 - voice
330 - times: 2
331 features:
332 - gprs
333
334config:
335 bsc:
336 net:
337 codec_list:
338 - fr1
339
340defaults:
341 timeout: 50s
342----
343
344[[scenarios_dir]]
345===== 'scenarios_dir'
346
347This dir contains scenario configuration files.
348
349.Sample 'scenarios_dir' directory tree:
350----
351scenarios_dir/
352|-- scenarioA.conf
353'-- scenarioB.conf
354----
355
356[[scenario_conf]]
357===== 'scenario conf file'
358Scenarios define further constraints to serve the resource requests of a
359<<suite_conf,suite.conf>>, ie. to select specific resources from the general
360resource pool specified in <<resource_conf,resources.conf>>.
361
362If only one resource is specified in the scenario, then the resource allocator
363assumes the restriction is to be applied to the first resource and that remaining
364resources have no restrictions to be taken into consideration.
365
366To apply restrictions only on the second resource, the first element can be left
367emtpy, like:
368
369----
370resources:
371 bts:
372 - {}
373 - type: osmo-bts-sysmo
374----
375
376On the 'osmo_gsm_tester.py' command line and the
377<<default_suites_conf,default_suites.conf>>, any number of such scenario
378configurations can be combined in the form:
379
380----
381<suite_name>:<scenario>[+<scenario>[+...]]
382----
383
384e.g.
385
386----
387my_suite:sysmo+tch_f+amr
388----
389
Pau Espin Pedrol7dc22162020-03-11 19:57:45 +0100390*_Parametrized scenario conf files_*:
391
392Furthermore, scenario '.conf' files can be parametrized. The concept is similar to that
393of systemd's Template Unit Files. That is, an scenario file can be written so
394that some values inside it can be passed at the time of referencing the
395scenario name. The idea behind its existence is to re-use the same
396scenario file for a set of attributes which are changed and that can have a lot
397of different values. For instance, if a scenario is aimed at setting or
398filtering some specific attribute holding an integer value, without parametrized
399scenarios then a separate file would be needed for each value the user wanted to use.
400
401A parametrized scenario file, similar to systemd Template Unit Files,
402contain the character '@' in their file name, ie follow the syntax below:
403----
404scenario-name@param1,param2,param3,[...],paramN.conf
405----
406
407Then, its content can be written this way:
408----
409$ cat $scenario_dir/my-parametrized-scenario@.conf
410resources:
411 enb:
412 - type: srsenb
413 rf_dev_type: ${param1}
414modifiers:
415 enb:
416 - num_prb: ${param2}
417----
418
Pau Espin Pedrol6b8f5ae2020-04-07 18:51:57 +0200419Finally, it can be referenced during {app-name} execution this way, for instance
420when running a suite named '4g':
Pau Espin Pedrol7dc22162020-03-11 19:57:45 +0100421----
Pau Espin Pedrol6b8f5ae2020-04-07 18:51:57 +0200422- 4g:my-parametrized-scenario@uhd,6
Pau Espin Pedrol7dc22162020-03-11 19:57:45 +0100423----
424This way {app-name} when parsing the scenarios and combining them with the suite will::
425. Find out it is parametrized (name contains '@').
426. Split the name
Pau Espin Pedrol6b8f5ae2020-04-07 18:51:57 +0200427 ('my-parametrized-scenario') from the parameter list (param1='uhd', param2='6')
Pau Espin Pedrol7dc22162020-03-11 19:57:45 +0100428. Attempt to match a '.conf' file fully matching name and parameters (hence
429 specific content can be set for specific values while still using parameters
430 for general values), and otherwise match only by name.
431. Generate the final
432 scenario content from the template available in the matched '.conf' file.
433
Pau Espin Pedrol7e0b2dd2020-03-10 11:46:39 +0100434[[resources_conf]]
435==== 'resources.conf'
436
437//TODO: update this section
438The 'resources.conf' file defines which hardware is connected to the main unit,
439as well as which limited configuration items (like IP addresses or ARFCNs)
440should be used.
441
442A 'resources.conf' is validated by the <<schema_resources,resources schema>>.
443That means it is structured as a list of items for each resource type, where
444each item has one or more attributes -- for an example, see
445<<resources_conf_example>>.
446
Neels Hofmeyrc0827c42017-04-23 15:04:19 +0200447Side note: at first sight it might make sense to the reader to rather structure
Neels Hofmeyr5d0330f2017-05-18 18:38:50 +0200448e.g. the 'ip_address' or 'arfcn' configuration as +
Neels Hofmeyrc0827c42017-04-23 15:04:19 +0200449'"arfcn: GSM-1800: [512, 514, ...]"', +
450but the more verbose format is chosen to stay consistent with the general
451structure of resource configurations, which the resource allocation algorithm
452uses to resolve required resources according to their traits. These
453configurations look cumbersome because they exhibit only one trait / a trait
454that is repeated numerous times. No special notation for these cases is
455available (yet).
456
Pau Espin Pedrolc1220e12020-03-16 19:50:40 +0100457[[default_suites_conf]]
Pau Espin Pedrol7e0b2dd2020-03-10 11:46:39 +0100458==== 'default-suites.conf' (optional)
Neels Hofmeyrc0827c42017-04-23 15:04:19 +0200459
Pau Espin Pedrol7e0b2dd2020-03-10 11:46:39 +0100460The 'default-suites.conf' file contains a YAML list of 'suite:scenario+scenario+...'
Neels Hofmeyrc0827c42017-04-23 15:04:19 +0200461combination strings as defined by the 'osmo-gsm-tester.py -s' commandline
462option. If invoking the 'osmo-gsm-tester.py' without any suite definitions, the
463'-s' arguments are taken from this file instead. Each of these suite + scenario
464combinations is run in sequence.
465
Pau Espin Pedrol7e0b2dd2020-03-10 11:46:39 +0100466A suite name must match the name of a directory in the
467<<suites_dir,suites_dir/>> as defined by <<paths_conf,paths.conf>>.
Neels Hofmeyrc0827c42017-04-23 15:04:19 +0200468
469A scenario name must match the name of a configuration file in the
Pau Espin Pedrol7e0b2dd2020-03-10 11:46:39 +0100470<<scenarios_dir,scnearios_dir/>> as defined by <<paths_conf,paths.conf>>
471(optionally without the '.conf' suffix).
Neels Hofmeyrc0827c42017-04-23 15:04:19 +0200472
Pau Espin Pedrol7e0b2dd2020-03-10 11:46:39 +0100473.Sample 'default-suites.conf' file:
Neels Hofmeyrc0827c42017-04-23 15:04:19 +0200474----
475- sms:sysmo
476- voice:sysmo+tch_f
477- voice:sysmo+tch_h
478- voice:sysmo+dyn_ts
479- sms:trx
480- voice:trx+tch_f
481- voice:trx+tch_h
482- voice:trx+dyn_ts
483----
484
Pau Espin Pedrol7e0b2dd2020-03-10 11:46:39 +0100485==== 'defaults.conf' (optional)
486
487In {app-name} object instances requested by the test and created by the suite
488relate to a specific allocated resource. That's not always the case, and even if
489it the case the information stored in <<resources_conf,resources.conf>> for that
490resource may not contain tons of attributes which the object class needs to
491manage the resource.
492
493For this exact reason, the 'defaults.conf' file exist. It contains a set of
494default attributes and values (in YAML format) that object classes can use to
495fill in the missing gaps, or to provide values which can easily be changed or
496overwritten by <<suite_conf,suite.conf>> or <<scenario_conf,scenario.conf>>
497files through modifiers.
Neels Hofmeyrc0827c42017-04-23 15:04:19 +0200498
499Each binary run by osmo-gsm-tester, e.g. 'osmo-nitb' or 'osmo-bts-sysmo',
500typically has a configuration file template that is populated with values for a
Pau Espin Pedrol7e0b2dd2020-03-10 11:46:39 +0100501trial run. Hence, a <<suite_conf,suite.conf>>, <<scenario_conf,scenario.conf>>
502or a <<resources_conf,resources.conf>> providing a similar setting always has
503precedence over the values given in a 'defaults.conf'
Neels Hofmeyrc0827c42017-04-23 15:04:19 +0200504
Neels Hofmeyrc0827c42017-04-23 15:04:19 +0200505
Pau Espin Pedrol7e0b2dd2020-03-10 11:46:39 +0100506.Sample 'defaults.conf' file:
Neels Hofmeyrc0827c42017-04-23 15:04:19 +0200507----
508nitb:
509 net:
Pau Espin Pedrol6fa61992017-11-02 16:57:22 +0100510 mcc: 901
511 mnc: 70
512 short_name: osmo-gsm-tester-nitb
513 long_name: osmo-gsm-tester-nitb
Neels Hofmeyrc0827c42017-04-23 15:04:19 +0200514 auth_policy: closed
Pau Espin Pedrol6fa61992017-11-02 16:57:22 +0100515 encryption: a5_0
Neels Hofmeyrc0827c42017-04-23 15:04:19 +0200516
Pau Espin Pedrol6fa61992017-11-02 16:57:22 +0100517bsc:
518 net:
519 mcc: 901
520 mnc: 70
521 short_name: osmo-gsm-tester-msc
522 long_name: osmo-gsm-tester-msc
523 auth_policy: closed
524 encryption: a5_0
525 authentication: optional
526
527msc:
528 net:
529 mcc: 901
530 mnc: 70
531 short_name: osmo-gsm-tester-msc
532 long_name: osmo-gsm-tester-msc
533 auth_policy: closed
534 encryption: a5_0
535 authentication: optional
536
537bsc_bts:
Neels Hofmeyrc0827c42017-04-23 15:04:19 +0200538 location_area_code: 23
539 base_station_id_code: 63
540 stream_id: 255
541 osmobsc_bts_type: sysmobts
542 trx_list:
Pau Espin Pedrol6fa61992017-11-02 16:57:22 +0100543 - nominal_power: 23
544 max_power_red: 0
Neels Hofmeyrc0827c42017-04-23 15:04:19 +0200545 arfcn: 868
546 timeslot_list:
547 - phys_chan_config: CCCH+SDCCH4
548 - phys_chan_config: SDCCH8
549 - phys_chan_config: TCH/F_TCH/H_PDCH
550 - phys_chan_config: TCH/F_TCH/H_PDCH
551 - phys_chan_config: TCH/F_TCH/H_PDCH
552 - phys_chan_config: TCH/F_TCH/H_PDCH
553 - phys_chan_config: TCH/F_TCH/H_PDCH
554 - phys_chan_config: TCH/F_TCH/H_PDCH
555----
Pau Espin Pedrol7e0b2dd2020-03-10 11:46:39 +0100556
557=== Example Setup
558
559{app-name} comes with an example official setup which is the one used to run
560Osmocom's setup. There are actually two different available setups: a
561production one and an RnD one, used to develop {app-name} itself. These two set
562ups share mostly all configuration, main difference being the
563<<resources_conf,resources.conf>> file being used.
564
Pau Espin Pedrolc1220e12020-03-16 19:50:40 +0100565All {app-name} related configuration for that environment is publicly available
566in 'osmo-gsm-tester.git' itself:
567
568- <<paths_conf,paths.conf>>: Available Available under 'example/', with its paths
569 already configured to take required bits from inside the git repository.
Pau Espin Pedrol69488f62020-04-07 16:40:41 +0200570- <<suite_dir,suites_dir>>: Available under 'example/suites/'
Pau Espin Pedrol7e0b2dd2020-03-10 11:46:39 +0100571- <<scenarios_dir,scenarios_dir>>: Available under 'example/scenarios/'
572- <<resource_conf,resources.conf>>: Available under 'example/' as
573 'resources.conf.prod' for Production setup and as 'resources.conf.rnd' for the
Pau Espin Pedrolc1220e12020-03-16 19:50:40 +0100574 RnD setup. One must use a symbolic link to have it available as
575 'resources.conf'.
Pau Espin Pedrol7e0b2dd2020-03-10 11:46:39 +0100576
577//TODO: resources.conf file path should be modifiable through paths.conf!
578
579==== Typical Invocations
580
581Each invocation of osmo-gsm-tester deploys a set of pre-compiled binaries for
582the Osmocom core network as well as for the Osmocom based BTS models. To create
583such a set of binaries, see <<trials>>.
584
585Examples for launching test trials:
586
Pau Espin Pedrolc1220e12020-03-16 19:50:40 +0100587- Run the default suites (see <<default_suites_conf,default_suites.conf>>) on a
588 given set of binaries:
Pau Espin Pedrol7e0b2dd2020-03-10 11:46:39 +0100589
590----
591osmo-gsm-tester.py path/to/my-trial
592----
593
594- Run an explicit choice of 'suite:scenario' combinations:
595
596----
597osmo-gsm-tester.py path/to/my-trial -s sms:sysmo -s sms:trx -s sms:nanobts
598----
599
600- Run one 'suite:scenario1+scenario2' combination, setting log level to 'debug'
601 and enabling logging of full python tracebacks, and also only run just the
602 'mo_mt_sms.py' test from the suite, e.g. to investigate a test failure:
603
604----
605osmo-gsm-tester.py path/to/my-trial -s sms:sysmo+foobar -l dbg -T -t mo_mt
606----
607
608A test script may also be run step-by-step in a python debugger, see
609<<debugging>>.