Expand test suite to cover RSA as well as ed25519

This commit is contained in:
Daniel Kahn Gillmor committed 2019-02-21 19:21:38 -05:00
1 parent 479820a07d
commit ad8f396db0
4 files changed
+112 -85

No files matched your search

+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")