Add testsuite for pySim-shell with real cards

This patch adds a comprehensive testsuite for pySim-shell. The testsuite
is based on python's unittest framework in combination with pySim-shell
scripts.

Related: OS#6531
Change-Id: Ieae1330767a6e55e62437f5f988a0d33b727b5de
This commit is contained in:
Philipp Maier
2024-08-12 17:56:43 +02:00
parent d7032955c5
commit f87a00c04f
114 changed files with 22424 additions and 0 deletions

View File

@@ -0,0 +1,152 @@
[
{
"response_all_ref_ar_do": [
{
"ref_ar_do": [
{
"ref_do": [
{
"aid_ref_do": "ffffffffffaa"
},
{
"dev_app_id_ref_do": "aa6872787654334567840de535c2bbd5a04f0baa"
}
]
},
{
"ar_do": [
{
"apdu_ar_do": {
"generic_access_rule": "never"
}
},
{
"nfc_ar_do": {
"nfc_event_access_rule": "never"
}
},
{
"perm_ar_do": {
"permissions": "0000000000000004"
}
}
]
}
]
},
{
"ref_ar_do": [
{
"ref_do": [
{
"aid_ref_do": "ffffffffffbb"
},
{
"dev_app_id_ref_do": "aa6872f28b340b2345678905d5c2bbd5a04f0bdd"
}
]
},
{
"ar_do": [
{
"apdu_ar_do": {
"generic_access_rule": "always"
}
},
{
"nfc_ar_do": {
"nfc_event_access_rule": "always"
}
},
{
"perm_ar_do": {
"permissions": "0000000000000004"
}
}
]
}
]
},
{
"ref_ar_do": [
{
"ref_do": [
{
"aid_ref_do": "ffffffffffcc"
},
{
"dev_app_id_ref_do": "a1234567890aaabb1f140de987657891a04f0bdd"
}
]
},
{
"ar_do": [
{
"apdu_ar_do": {
"apdu_filter": [
{
"header": "aabbccdd",
"mask": "01020304"
}
]
}
},
{
"nfc_ar_do": {
"nfc_event_access_rule": "always"
}
},
{
"perm_ar_do": {
"permissions": "0000000000000004"
}
}
]
}
]
},
{
"ref_ar_do": [
{
"ref_do": [
{
"aid_ref_do": "ffffffffffdd"
},
{
"dev_app_id_ref_do": "a1234567890123bb1f140de987aaa891bbbf0bdd"
}
]
},
{
"ar_do": [
{
"apdu_ar_do": {
"apdu_filter": [
{
"header": "aabbccdd",
"mask": "01020304"
},
{
"header": "11223344",
"mask": "05060708"
}
]
}
},
{
"nfc_ar_do": {
"nfc_event_access_rule": "never"
}
},
{
"perm_ar_do": {
"permissions": "0000000000000004"
}
}
]
}
]
}
]
}
]