Closed wearpants closed 10 years ago
After playing around a bit, generating a new keypair on each test is extremely slow (lack of entropy). Would a pre-generated homedir_template
that gets copied fresh to homedir
for each test work? Template would have a keypair for the bot, be checked into git, etc..
There is one test (GnuPGTest.test_gen_key
) which needs to generate a new key; this should probably use a separate temporary homedir entirely
Actually, this is a duplicate of #18. I'm closing this one, but you can continue commenting in the other.
And I've noticed that keygen is really really slow. Anything to speed it up is welcome :).
The following tests pass if
test/homedir
exist, but fail if it doesn't:I have a patch (soon) that resolves indeterminacy (by rm'ing
test/homedir
before each test), but we'll still need to fix the underlying problem. I think callingGnuPG.gen_key
for each test should do the trick...