Skip to content

Commit

Permalink
run ssl test only if ssl is available
Browse files Browse the repository at this point in the history
  • Loading branch information
Gerhard Lipp committed Jan 17, 2012
1 parent a4d376c commit fc468ec
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions test.lua
@@ -1,11 +1,14 @@
#!/usr/bin/lua
local run_client_test =
function(server_backend,client_backend)
os.execute('lua test_client.lua '..server_backend..' '..client_backend)
function(server_backend,client_backend,option)
local cmd = 'lua test_client.lua %s %s %s'
os.execute(cmd:format(server_backend,client_backend,option or ''))
end

run_client_test('copas_socket','socket')
run_client_test('copas_socket','socket','ssl')
if pcall(require,'ssl') then
run_client_test('copas_socket','socket','ssl')
end
run_client_test('ev_socket','socket')
run_client_test('zmq','zmq')

Expand Down

0 comments on commit fc468ec

Please sign in to comment.