mirror of
https://gitea.osmocom.org/sim-card/pysim.git
synced 2026-03-19 03: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:
26
tests/pySim-shell_test/chv/test_manage_csv.template
Normal file
26
tests/pySim-shell_test/chv/test_manage_csv.template
Normal file
@@ -0,0 +1,26 @@
|
||||
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
|
||||
Reference in New Issue
Block a user