Add tests

This commit is contained in:
NIIBE Yutaka
2012-07-10 08:55:48 +09:00
parent 144dd88a07
commit 63df97a2e0
3 changed files with 18 additions and 0 deletions

View File

@@ -1,5 +1,9 @@
2012-07-10 Niibe Yutaka <gniibe@fsij.org>
* test/features/202_keygen.feature: Add PSO signature test after
keygen.
* test/features/602_keygen.feature: Ditto.
* src/openpgp-do.c (gpg_do_write_prvkey): Don't call ac_reset_*
here.
(proc_key_import): But call ac_reset_* here.

View File

@@ -21,6 +21,13 @@ Feature: key generation
And put the second data to d0
Then it should get success
Scenario: compute digital signature by OPENPGP.1 key (1)
Given a message "GnuPG assumes that PW1 keeps valid after keygen."
And a public key from token for OPENPGP.1
And let a token compute digital signature
And verify signature
Then it should get success
Scenario: verify PW1 (1) after keygen
Given cmd_verify with 1 and "another user pass phrase"
Then it should get success

View File

@@ -21,6 +21,13 @@ Feature: key generation
And put the second data to d0
Then it should get success
Scenario: compute digital signature by OPENPGP.1 key (1)
Given a message "GnuPG assumes that PW1 keeps valid after keygen."
And a public key from token for OPENPGP.1
And let a token compute digital signature
And verify signature
Then it should get success
Scenario: verify PW1 (1) after keygen
Given cmd_verify with 1 and "another user pass phrase"
Then it should get success