Skip to content

Commit

Permalink
(mostly) fix interactive tests
Browse files Browse the repository at this point in the history
  • Loading branch information
daringer committed Sep 27, 2020
1 parent 4aaf859 commit 0f7138d
Showing 1 changed file with 12 additions and 9 deletions.
21 changes: 12 additions & 9 deletions interactive_test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,18 @@ function testfido2
run ls
run fido2 list

make_title "resetting and set pin"
# hrm ...
#echo -ne "1234\n1234\n" > set_pin.txt
#echo -ne "1234\n123456\n123456\n" > change_pin.txt

run fido2 reset
run fido2 set-pin
echo "make sure pin is finally: 123456"
run fido2 change-pin
run fido2 verify
#--pin 123456


make_title "create a credential + challenge-response using it"

Expand Down Expand Up @@ -86,15 +98,6 @@ function testfido2
run fido2 reboot
sleep 5

# hrm ...
#echo -ne "1234\n1234\n" > set_pin.txt
#echo -ne "1234\n123456\n123456\n" > change_pin.txt

run fido2 reset
run fido2 set-pin
echo "make sure pin is finally: 123456"
run fido2 change-pin
run fido2 verify --pin 123456

make_title "finally one more reset and then verify"
run fido2 reset
Expand Down

0 comments on commit 0f7138d

Please sign in to comment.