Files
Philipp Maier f87a00c04f 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
2024-09-20 17:53:27 +02:00

23 lines
573 B
Plaintext

set debug true
set echo true
# Create a backup the files we will modify
export --filename MF/ADF.USIM/EF.UST > restore_ef_ust.script.tmp
# Write some known default
select MF/ADF.USIM/EF.UST
update_binary beff9f9de73e04080000ff730000000600000000
# Run check
ust_service_check > test_ef_ust.tmp
# Make changes and see if they were applied
read_binary >> test_ef_ust.tmp
ust_service_activate 150
read_binary >> test_ef_ust.tmp
ust_service_deactivate 150
read_binary >> test_ef_ust.tmp
# Restore modified files to their original state
run_script restore_ef_ust.script.tmp