Expand test suite to cover RSA as well as ed25519

This commit is contained in:
Daniel Kahn Gillmor
2019-02-21 10:49:22 -05:00
parent 479820a07d
commit ad8f396db0
4 changed files with 112 additions and 85 deletions
+10 -6
View File
@@ -1,8 +1,12 @@
-- -*- lua -*-
mt.echo("beginning test")
conn = mt.connect("unix:signing.sock")
if conn == nil then
error "mt.connect() failed"
for _, keytype in ipairs({"ed25519", "rsa"}) do
for _, func in ipairs({"signing", "verify"}) do
mt.echo("testing "..keytype.." "..func)
conn = mt.connect("unix:"..keytype.."."..func..".sock")
if conn == nil then
error("mt.connect() failed "..keytype.." "..func)
end
mt.disconnect(conn)
mt.echo(keytype.." "..func.." complete")
end
end
mt.disconnect(conn)
mt.echo("test complete")