Expand test suite to cover RSA as well as ed25519
This commit is contained in:
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user