mirror of
https://gitea.osmocom.org/sim-card/pysim.git
synced 2026-03-16 18:38:32 +03:00
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
27 lines
438 B
Plaintext
27 lines
438 B
Plaintext
set debug true
|
|
set echo true
|
|
|
|
# Enable PIN1
|
|
enable_chv > test_manage_csv.tmp
|
|
reset
|
|
|
|
# Verify PIN1
|
|
verify_chv >> test_manage_csv.tmp
|
|
reset
|
|
|
|
# Change PIN1 to some arbitrary value
|
|
change_chv 1234 >> test_manage_csv.tmp
|
|
reset
|
|
|
|
# Verify PIN1
|
|
verify_chv 1234 >> test_manage_csv.tmp
|
|
reset
|
|
|
|
# Change PIN1 back to its original value
|
|
change_chv $PIN1 1234 >> test_manage_csv.tmp
|
|
reset
|
|
|
|
# Disable PIN1 again
|
|
disable_chv >> test_manage_csv.tmp
|
|
reset
|