mirror of
https://gitea.osmocom.org/sim-card/pysim.git
synced 2026-03-19 20:08:36 +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:
21
tests/pySim-shell_test/chv/test_unblock_direct.template
Normal file
21
tests/pySim-shell_test/chv/test_unblock_direct.template
Normal file
@@ -0,0 +1,21 @@
|
||||
set debug true
|
||||
set echo true
|
||||
|
||||
# Enable PIN1
|
||||
enable_chv $PIN1 > test_unblock_direct.tmp
|
||||
reset
|
||||
|
||||
# Enter the wrong PIN1 more than 3 times to block it (we will see some exceptions, which is normal)
|
||||
verify_chv 2468
|
||||
verify_chv 2468
|
||||
verify_chv 2468
|
||||
verify_chv 2468
|
||||
reset
|
||||
|
||||
# Unblock the PIN again
|
||||
unblock_chv $PUK1 $PIN1 >> test_unblock_direct.tmp
|
||||
reset
|
||||
|
||||
# Disable PIN1
|
||||
disable_chv $PIN1 >> test_unblock_direct.tmp
|
||||
reset
|
||||
Reference in New Issue
Block a user