Project

General

Profile

TestingInfrastructure » History » Version 21

Denis 'GNUtoo' Carikli, 01/21/2019 11:55 PM

1 1 Denis 'GNUtoo' Carikli
h1. TestingInfrastructure
2
3 18 Denis 'GNUtoo' Carikli
h2. Applications that can be used to do some testing on the device
4
5
* https://f-droid.org/wiki/page/org.zeroxlab.zeroxbenchmark
6
7 5 Denis 'GNUtoo' Carikli
h2. Projects and/or hardware that can be used to do functional testing
8 1 Denis 'GNUtoo' Carikli
9
h3. Lava
10
11 7 Denis 'GNUtoo' Carikli
"Lava":https://www.linaro.org/engineering/projects/lava/ can be used to do functional tests on real hardware. It can be easily installed on PureOS, an FSDG compliant GNU/Linux distribution.
12 4 Denis 'GNUtoo' Carikli
13 5 Denis 'GNUtoo' Carikli
h3. OsmoGSMTester
14 3 Denis 'GNUtoo' Carikli
15 6 Denis 'GNUtoo' Carikli
The "OsmoGSMTester project":https://osmocom.org/projects/osmo-gsm-tester is able to be interfaced with the Android RIL through ofono and can emulate a GSM network with the help of a compatible GSM base station or SDR.
16 3 Denis 'GNUtoo' Carikli
17 5 Denis 'GNUtoo' Carikli
h3. Simtrace2
18 3 Denis 'GNUtoo' Carikli
19 1 Denis 'GNUtoo' Carikli
The "Simtrace 2 project":https://osmocom.org/projects/simtrace2/wiki can be used, along with SIM card readers to programmatically feed a SIM card to a smartphone. This can be used to run test on real networks.
20 7 Denis 'GNUtoo' Carikli
21
h2. Replicant supported devices and testing
22
23
h3. Requirements
24
25 8 Denis 'GNUtoo' Carikli
* Antenna connector for the modem
26 10 Denis 'GNUtoo' Carikli
* The ability to control the device buttons in order to be able to programmatically power on and off the device, and trigger boots into the bootloader and recovery
27 11 Denis 'GNUtoo' Carikli
* Optionally a way to connect to the serial port, programmatically
28 1 Denis 'GNUtoo' Carikli
29 11 Denis 'GNUtoo' Carikli
h3. Galaxy S2 (I9100)
30 7 Denis 'GNUtoo' Carikli
31 9 Denis 'GNUtoo' Carikli
* The Galaxy S2 (I9100) has:
32 1 Denis 'GNUtoo' Carikli
** An antenna connector
33 10 Denis 'GNUtoo' Carikli
** The SOC serial port that is accessible behind the USB connector at a low voltage
34 12 Denis 'GNUtoo' Carikli
** A full size mini-sim (easier to interface with)
35
36 13 Denis 'GNUtoo' Carikli
Holding the smartphone in place:
37
* The smartphone could either be screwed on a metallic surface or an external case could be screwed on a metallic surface enabling the smartphone not to move.
38 1 Denis 'GNUtoo' Carikli
39 13 Denis 'GNUtoo' Carikli
SIM cards:
40 14 Denis 'GNUtoo' Carikli
* Simtrace 2 "lacks screw holes":https://osmocom.org/issues/3711 so a way must be found to make sure that it doesn't move as it uses flex cables to interface with the SIM socket of the smartphone. That may be fixed in a subsequent hardware revision.
41 1 Denis 'GNUtoo' Carikli
42 13 Denis 'GNUtoo' Carikli
Serial port and USB:
43 1 Denis 'GNUtoo' Carikli
44 13 Denis 'GNUtoo' Carikli
Buttons:
45 12 Denis 'GNUtoo' Carikli
46 13 Denis 'GNUtoo' Carikli
Battery:
47
48
Antenna connector and GSM tower or SDR:
49 15 Denis 'GNUtoo' Carikli
The Galaxy S2 (I9100) has two antenna connectors:
50
* One internal connector, TODO: find the connector type
51
* One external connector, TODO: Find the connector type
52 16 Denis 'GNUtoo' Carikli
53
h4. Example setup
54
55 21 Denis 'GNUtoo' Carikli
See also the links inside the [[Serial_port]] article for more background on how to get serial port access on devices like the Galaxy SIII (i9300) or the Galaxy S2 (i9100).
56 20 Denis 'GNUtoo' Carikli
57 17 Denis 'GNUtoo' Carikli
!i9100.jpg!
58
59 19 Denis 'GNUtoo' Carikli
See https://git.replicant.us/contrib/GNUtoo/test-infrastructure.git for the source of the file.
60
61
h4. Links
62
63
* "How to use a Galaxy SIII without a battery":https://techblog.jeppson.org/2017/12/revive-old-samsung-galaxy-s3/