TestRig » History » Version 4
laforge, 07/25/2022 06:59 AM
gitea
1 | 2 | laforge | {{>toc}} |
---|---|---|---|
2 | |||
3 | 1 | roh | h1. pySim TestRig |
4 | |||
5 | we are running a CI setup at sysmocom to test pySim against real physical smartcards and readers. |
||
6 | |||
7 | these tests are controlled by https://jenkins.osmocom.org/ and run on a dedicated jenkins node https://jenkins.osmocom.org/jenkins/computer/simtester/ |
||
8 | |||
9 | h2. setup |
||
10 | |||
11 | h3. hardware |
||
12 | |||
13 | 2 | laforge | * the jenkins node is run inside a KVM VM on AMD APU based hardware. |
14 | * there are 6 Omnikey 3121 Smart Card Readers connected to a usb-hub; the resulting usbdevices are passed through to the vm. |
||
15 | 1 | roh | |
16 | 2 | laforge | Currently (05/2020) these types of simcards are installed and tested: |
17 | 1 | roh | * Fairwaves-SIM |
18 | * fakemagicsim |
||
19 | * sysmoISIM-SJA2 |
||
20 | * sysmosim-gr1 |
||
21 | * sysmoUSIM-SJS1 |
||
22 | * Wavemobile-SIM |
||
23 | |||
24 | h3. software |
||
25 | |||
26 | 3 | laforge | The tests for pySim are executed by this jenkins job https://jenkins.osmocom.org/jenkins/job/gerrit-pysim/. The job is triggered by gerrit and acts as build verification job for any proposed pySim changes that are pushed into gerrit for review. |
27 | 1 | roh | |
28 | 3 | laforge | The same hardware rig is also used for other tests (scheduled by jenkins), but this is out of scope for pySim. |
29 | |||
30 | 4 | laforge | It does so via a script https://gitea.osmocom.org/sim-card/pysim/src/branch/master/contrib/jenkins.sh |
31 | which in turn calls https://gitea.osmocom.org/sim-card/pysim/src/branch/master/tests/pysim-test.sh from the /pysim-testdata directory. |
||
32 | https://gitea.osmocom.org/sim-card/pysim/src/branch/master/pysim-testdata holds all the information to access the cards and which output each test expects as result. |