forked from public/pysim
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:
152
tests/pySim-shell_test/ara_m/adf_ara-m.cfg.ok
Normal file
152
tests/pySim-shell_test/ara_m/adf_ara-m.cfg.ok
Normal 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"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
Reference in New Issue
Block a user