mirror of
https://gitea.osmocom.org/sim-card/pysim.git
synced 2026-03-17 02:48:34 +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:
22
tests/pySim-shell_test/file_specific/test_ef_ist.script
Normal file
22
tests/pySim-shell_test/file_specific/test_ef_ist.script
Normal file
@@ -0,0 +1,22 @@
|
||||
set debug true
|
||||
set echo true
|
||||
|
||||
# Create a backup the files we will modify
|
||||
export --filename MF/ADF.ISIM/EF.IST > restore_ef_ist.script.tmp
|
||||
|
||||
# Write some known default
|
||||
select MF/ADF.ISIM/EF.IST
|
||||
update_binary 190208
|
||||
|
||||
# Run check
|
||||
ist_service_check > test_ef_ist.tmp
|
||||
|
||||
# Make changes and see if they were applied
|
||||
read_binary >> test_ef_ist.tmp
|
||||
ust_service_activate 7
|
||||
read_binary >> test_ef_ist.tmp
|
||||
ust_service_deactivate 7
|
||||
read_binary >> test_ef_ist.tmp
|
||||
|
||||
# Restore modified files to their original state
|
||||
run_script restore_ef_ist.script.tmp
|
||||
Reference in New Issue
Block a user