Change in pysim[master]: import pysim-testdata of automatic testing to this repository

Harald Welte gerrit-no-reply at lists.osmocom.org
Fri May 10 14:22:28 UTC 2019


Harald Welte has uploaded this change for review. ( https://gerrit.osmocom.org/13968


Change subject: import pysim-testdata of automatic testing to this repository
......................................................................

import pysim-testdata of automatic testing to this repository

This test data is used by the jenkins build verification for pySim,
and it was previously located locally on the build slave.

By moving the testdata to this repository, any contributor can
modify both the code and the expected test results simultaneously.

Change-Id: I6714b091a114035d6aab8ba750c5f2b86e438467
---
M contrib/jenkins.sh
A pysim-testdata/fakemagicsim.data
A pysim-testdata/fakemagicsim.ok
A pysim-testdata/sysmoUSIM-SJS1.data
A pysim-testdata/sysmoUSIM-SJS1.ok
A pysim-testdata/sysmosim-gr1.data
A pysim-testdata/sysmosim-gr1.ok
7 files changed, 56 insertions(+), 1 deletion(-)



  git pull ssh://gerrit.osmocom.org:29418/pysim refs/changes/68/13968/1

diff --git a/contrib/jenkins.sh b/contrib/jenkins.sh
index 94da198..f17b1f8 100755
--- a/contrib/jenkins.sh
+++ b/contrib/jenkins.sh
@@ -13,7 +13,6 @@
 . venv/bin/activate
 pip install pytlv
 
-cp -a "$HOME/pysim-testdata/" pysim-testdata/
 cd pysim-testdata
 ../tests/pysim-test.sh
 
diff --git a/pysim-testdata/fakemagicsim.data b/pysim-testdata/fakemagicsim.data
new file mode 100644
index 0000000..deab2f7
--- /dev/null
+++ b/pysim-testdata/fakemagicsim.data
@@ -0,0 +1,6 @@
+MCC=001
+MNC=01
+ICCID=1122334455667788990
+KI=FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
+OPC=FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
+IMSI=001010000000102
\ No newline at end of file
diff --git a/pysim-testdata/fakemagicsim.ok b/pysim-testdata/fakemagicsim.ok
new file mode 100644
index 0000000..876060f
--- /dev/null
+++ b/pysim-testdata/fakemagicsim.ok
@@ -0,0 +1,12 @@
+Reading ...
+ICCID: 1122334455667788990
+IMSI: 001010000000102
+SMSP: ffffffffffffffffffffffffe1ffffffffffffffffffffffff0581005155f5ffffffffffff000000
+PLMNsel: fff11fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff
+PLMNwAcT: Can't read file -- SW match failed! Expected 9000 and got 9404.
+OPLMNwAcT: Can't read file -- SW match failed! Expected 9000 and got 9404.
+HPLMNAcT: Can't read file -- SW match failed! Expected 9000 and got 9404.
+ACC: ffff
+MSISDN: Not available
+Done !
+
diff --git a/pysim-testdata/sysmoUSIM-SJS1.data b/pysim-testdata/sysmoUSIM-SJS1.data
new file mode 100644
index 0000000..b7c1e81
--- /dev/null
+++ b/pysim-testdata/sysmoUSIM-SJS1.data
@@ -0,0 +1,7 @@
+MCC=001
+MNC=01
+ICCID=1122334455667788990
+KI=FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
+OPC=FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
+IMSI=001010000000102
+ADM=55538407
diff --git a/pysim-testdata/sysmoUSIM-SJS1.ok b/pysim-testdata/sysmoUSIM-SJS1.ok
new file mode 100644
index 0000000..c530f6b
--- /dev/null
+++ b/pysim-testdata/sysmoUSIM-SJS1.ok
@@ -0,0 +1,12 @@
+Reading ...
+ICCID: 1122334455667788990
+IMSI: 001010000000102
+SMSP: ffffffffffffffffffffffffffffffffffffffffffffffffe1ffffffffffffffffffffffff0581005155f5ffffffffffff000000
+PLMNsel: fff11fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff
+PLMNwAcT: ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff
+OPLMNwAcT: ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff
+HPLMNAcT: ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff
+ACC: 0008
+MSISDN: Not available
+Done !
+
diff --git a/pysim-testdata/sysmosim-gr1.data b/pysim-testdata/sysmosim-gr1.data
new file mode 100644
index 0000000..90d23f8
--- /dev/null
+++ b/pysim-testdata/sysmosim-gr1.data
@@ -0,0 +1,7 @@
+MCC=001
+MNC=01
+ICCID=1122334455667788990
+KI=FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
+OPC=FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF
+IMSI=001010000000102
+ADM=DDDDDDDD
diff --git a/pysim-testdata/sysmosim-gr1.ok b/pysim-testdata/sysmosim-gr1.ok
new file mode 100644
index 0000000..d344c65
--- /dev/null
+++ b/pysim-testdata/sysmosim-gr1.ok
@@ -0,0 +1,12 @@
+Reading ...
+ICCID: 1122334455667788990
+IMSI: 001010000000102
+SMSP: ffffffffffffffffffffffffe1ffffffffffffffffffffffff0581005155f5ffffffffffff000000
+PLMNsel: fff11fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff
+PLMNwAcT: Can't read file -- SW match failed! Expected 9000 and got 9404.
+OPLMNwAcT: Can't read file -- SW match failed! Expected 9000 and got 9404.
+HPLMNAcT: Can't read file -- SW match failed! Expected 9000 and got 9404.
+ACC: 0008
+MSISDN: Not available
+Done !
+

-- 
To view, visit https://gerrit.osmocom.org/13968
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings

Gerrit-Project: pysim
Gerrit-Branch: master
Gerrit-MessageType: newchange
Gerrit-Change-Id: I6714b091a114035d6aab8ba750c5f2b86e438467
Gerrit-Change-Number: 13968
Gerrit-PatchSet: 1
Gerrit-Owner: Harald Welte <laforge at gnumonks.org>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20190510/29691dfc/attachment.html>


More information about the gerrit-log mailing list