blob: 9d2b91aa1c903dbc8f2f8691da23ee681390ef55 [file] [log] [blame]
Neels Hofmeyrdae3d3c2017-03-28 12:16:58 +02001INSTALLATION
2
3So far the osmo-gsm-tester directory is manually placed in /usr/local/src
4
5
6DEPENDENCIES
7
8Packages required to run the osmo-gsm-tester:
9
10 dbus
11 python3
12 python3-dbus
13 python3-pip
14 python3-mako
15 tcpdump
16 smpplib (pip install git+git://github.com/podshumok/python-smpplib.git)
17 ofono
18
19To build ofono:
20 libglib2.0-dev
21 libdbus-1-dev
22 libudev-dev
23 mobile-broadband-provider-info
24
25
26INSTALLATION
27
28Place a copy of the osmo-gsm-tester repository in /usr/local/src/
29
30 cp install/osmo-gsm-tester-limits.conf /etc/security/limits.d/
31 cp install/*.service /lib/systemd/system/
32 cp install/org.ofono.conf /etc/dbus-1/system.d/
33 systemctl daemon-reload
34
35To run:
36
37 systemctl enable ofono
38 systemctl start ofono
39 systemctl status ofono
40
41 systemctl enable osmo-gsm-tester
42 systemctl start osmo-gsm-tester
43 systemctl status osmo-gsm-tester
44
45
46To stop:
47
48 systemctl stop osmo-gsm-tester
49
50After ofonod has been started and modems have been connected to the system,
51you can run the 'list-modems' script located in /usr/local/src/ofono/test to get
52a list of the modems that have been detected by ofono.
53
54
55CONFIGURATION
56
57Host System configuration
58
59Create the /var/tmp/osmo-gsm-tester directory. It will be used to accept new test jobs.
60
61Test resources (NITB, BTS and modems) are currently configured in the test_manager.py.
62
63For every nitb resource that can be allocated, one alias IP address needs
64to be set up in /etc/network/interfaces on the interface that is connected to the BTSes.
65By add the following lines for each nitb instance that can be allocated (while making
66sure each interface alias and IP is unique)
67
68 auto eth1:0
69 allow-hotplug eth1:0
70 iface eth1:0 inet static
71 address 10.42.42.2
72 netmask 255.255.255.0
73
74Also make sure, the user executing the tester is allowed to run tcpdump. If
75the user is not root, we have used the folloing line to get proper permissions:
76
77 groupadd pcap
78 addgroup <your-user-name> pcap
79 setcap cap_net_raw,cap_net_admin=eip /usr/sbin/tcpdump
80 chgroup pcap /usr/sbin/tcpdump
81 chmod 0750 /usr/sbin/tcpdump
82
83The tester main unit must be able to ssh without password to the sysmobts (and
84possibly other) hardware: place the main unit's public SSH key on the sysmoBTS.
85Log in via SSH at least once to accept the BTS' host key.
86
87
88LAUNCHING A TEST RUN
89
90osmo-gsm-tester watches /var/tmp/osmo-gsm-tester for instructions to launch
91test runs. A test run is triggered by a subdirectory containing binaries and a
92manifest file, typically created by jenkins using the enclosed scripts.