blob: e85c1c4ccf66274542631c8e9a0766d45290d2c1 [file] [log] [blame]
Kata8ee6bb2013-04-05 17:06:30 +02001Building/installation:
2sudo python setup.py install
3If you prefer to have it cleanly removable, install checkinstall and run
4sudo checkinstall python setup.py install
Maxe732c2c2017-11-23 16:42:59 +01005Alternatively, just run 'pip install --user -e ./' or 'pip3 install --user -e ./'
6depending on your python version.
Kata8ee6bb2013-04-05 17:06:30 +02007
8Use
Maxe732c2c2017-11-23 16:42:59 +01009There are currently following scripts in this package:
Kata8ee6bb2013-04-05 17:06:30 +020010osmotestconfig.py - test that apps start/write with example configs
Maxe732c2c2017-11-23 16:42:59 +010011soap.py - implementation of SOAP <-> Ctrl proxy implemented on top of Twisted
Neels Hofmeyre5731e02017-12-19 14:48:29 +010012osmo_interact_vty.py - pipe stdin/stdout to a VTY session
13osmo_interact_ctrl.py - pipe stdin/stdout to a CTRL port
14osmo_verify_transcript_vty.py - VTY testing by VTY session screen dumps
15osmo_verify_transcript_ctrl.py - CTRL testing by CTRL session script files
Neels Hofmeyr4c283e42017-12-19 14:49:13 +010016twisted_ipa.py - implementation of IPA and Ctrl protocols on top of Twisted framework
Neels Hofmeyre5731e02017-12-19 14:48:29 +010017osmodumpdoc.py - dump documentation, superseded by osmo_interact_vty.py -X
18osmotestvty.py - test vty operations, superseded by osmo_verify_transcript_vty.py
Kata8ee6bb2013-04-05 17:06:30 +020019
20Each of these scripts imports a project-specific osmoappdesc.py,
21which provides information about the available apps, configs, vty ports, etc.
22
23Run the scripts with osmoappdesc.py in the current directory (preferred)
24or with -p <the directory containing osmoappdesc.py>.
25Remember that osmoappdesc.py may contain relative paths.
26
27Example:
28After install osmodumpdoc for openbsc's apps can be run by:
29cd <your_source_dir>/openbsc/openbsc && osmodumpdoc.py
30
31Libraries:
Kata8ee6bb2013-04-05 17:06:30 +020032osmopy/osmoutil.py - code that's shared between the scripts
Maxe732c2c2017-11-23 16:42:59 +010033osmopy/osmo_ipa.py - generic implementation of IPA and Ctrl protocols in python
Neels Hofmeyre5731e02017-12-19 14:48:29 +010034osmopy/osmo_interact/{vty,ctrl}.py - general interactions with VTY and CTRL ports
35osmopy/obscvty.py - connect to a vty, superseded by osmo_interact/vty
Kata8ee6bb2013-04-05 17:06:30 +020036
37obscvty.py may be of general use. osmoutil.py probably isn't.