mirror of
https://gitea.osmocom.org/sim-card/pysim.git
synced 2026-03-17 19:08:35 +03:00
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:
20
tests/pySim-shell_test/gp/test_put_delete_key.script
Normal file
20
tests/pySim-shell_test/gp/test_put_delete_key.script
Normal file
@@ -0,0 +1,20 @@
|
||||
set debug true
|
||||
set echo true
|
||||
|
||||
# Establish secure channel
|
||||
select ADF.ISD-R
|
||||
establish_scp03 --key-provider-suffix 1 --key-ver 50 --security-level 3
|
||||
|
||||
# Put a keyset
|
||||
put_key --key-version-nr 42 --key-id 1 --key-type aes --key-data 11111111111111111111111111111111 --key-type aes --key-data 22222222222222222222222222222222 --key-type aes --key-data 33333333333333333333333333333333
|
||||
|
||||
# Read key information to see if the keyset was actually stored
|
||||
get_data key_information > key_information.tmp
|
||||
|
||||
# Delete the keyset again
|
||||
delete_key --key-id 1 --key-ver 42
|
||||
delete_key --key-id 2 --key-ver 42
|
||||
delete_key --key-id 3 --key-ver 42
|
||||
|
||||
# Release secure channel
|
||||
release_scp
|
||||
Reference in New Issue
Block a user