From: Enrico Tassi <gares@fettunta.org>
Date: Fri, 29 Nov 2013 17:37:39 +0100
Subject: split test into two parts: md5 and des56

---
 tests/test.lua | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/tests/test.lua b/tests/test.lua
index 4f57aea..fcb5263 100755
--- a/tests/test.lua
+++ b/tests/test.lua
@@ -6,6 +6,7 @@ if string.find(_VERSION, "Lua 5.0") then
 	LUA_PATH = "?;?.lua;/usr/local/share/lua/5.0/?.lua"
 	string.gmatch = string.gfind
 end
+if select(1,...) == 'md5' then
 local md5 = require"md5"
 
 
@@ -84,6 +85,7 @@ assert(md5.crypt('a','a',seed) ~= md5.crypt('a','b',seed))
 
 print"MD5 OK"
 
+elseif select(1,...) == 'des56' then
 
 -- Testing DES 56
 local des56
@@ -118,3 +120,9 @@ key = string.sub(ascii, 2)
 assert(des56.decrypt(des56.crypt(ascii, key), key) == ascii)
 
 print"DES56 OK"
+
+else
+
+	error 'Specify an algorithm to test'
+
+end
