luasocket/test
Diego Nehab be67f63f4e Changed buffer-per-socket to buffer-per-operation.
This is a difficult tradeoff to measure. I think large
datagrams won't be used very frequently. So it is better to
not lock a large buffer to each socket object and instead
allocate and deallocate for each operation receiving a
datagram larger than UDP_DATAGRAMSIZE.
2015-10-06 11:33:50 +08:00
..
auth Out of the box support for Lua 5.3. 2015-02-18 20:51:37 -02:00
cgi The test directory! 2003-03-21 23:49:18 +00:00
dicttest.lua Updates for 2.0.1 on the way. 2006-03-19 21:22:21 +00:00
excepttest.lua Forgot a few files. 2004-07-01 05:38:44 +00:00
find-connect-limit Utility to find how many TCP connections can be made. 2012-04-11 13:45:59 -07:00
ftptest.lua Saving before big changes to support IPv6. 2011-05-25 20:57:22 +00:00
hello.lua Build with Lua 5.2 without LUA_COMPAT_MODULE flag. 2013-05-27 12:45:09 +04:00
httptest.lua Out of the box support for Lua 5.3. 2015-02-18 20:51:37 -02:00
index.html The test directory! 2003-03-21 23:49:18 +00:00
ltn12test.lua support multiple filters in ltn12.{sink,source}.chain() 2013-06-18 11:01:46 +02:00
luasocket.png Better image to test mail. 2006-04-02 23:24:37 +00:00
mimetest.lua Fix. use table.unpack in mimetest on Lua 5.2. 2013-05-27 13:11:07 +04:00
README Decent makefiles! 2009-05-27 09:31:38 +00:00
smtptest.lua Use the length operator (#) instead of table.getn. 2013-02-25 20:28:28 -02:00
stufftest.lua More adjustments/bugfixes. 2004-06-21 06:07:58 +00:00
tcp-getoptions Support getoption method for tcp objects. 2012-04-11 13:54:01 -07:00
test_bind.lua Fix. setsockname fails with "*" as host. 2013-05-27 11:25:31 +04:00
test_getaddrinfo.lua Fix. getaddrinfo returns garbage as address on Windows. 2013-05-27 11:20:52 +04:00
test_socket_error.lua Fix makefile and test_socket_error.lua 2013-06-12 21:45:15 +08:00
testclnt.lua Changed buffer-per-socket to buffer-per-operation. 2015-10-06 11:33:50 +08:00
testmesg.lua Decent makefiles! 2009-05-27 09:31:38 +00:00
testsrvr.lua New agnostic IPv4 IPv6 functions. 2015-08-22 19:52:01 -03:00
testsupport.lua Saving before big changes to support IPv6. 2011-05-25 20:57:22 +00:00
tftptest.lua Almost ready for beta3 2004-11-27 07:58:04 +00:00
udp-zero-length-send Stop returning an error after successful send of zero length UDP packets 2012-04-11 13:45:59 -07:00
udp-zero-length-send-recv On failure, exit with a message instead of blocking indefinitely. 2012-04-11 13:54:01 -07:00
udpconnectclnt.lua New agnostic IPv4 IPv6 functions. 2015-08-22 19:52:01 -03:00
udpconnectsrvr.lua Fix udp:setpeername("*") 2012-08-23 19:31:15 -03:00
unixclnt.lua Added simple unix tests. 2007-04-09 22:04:13 +00:00
unixsrvr.lua Added simple unix tests. 2007-04-09 22:04:13 +00:00
upload.html The test directory! 2003-03-21 23:49:18 +00:00
urltest.lua Use the length operator (#) instead of table.getn. 2013-02-25 20:28:28 -02:00
utestclnt.lua Unix domain tests still broken. 2013-05-30 17:59:28 +08:00
utestsrvr.lua Unix domain tests still broken. 2013-05-30 17:59:28 +08:00

This provides the  automated test scripts used to make  sure the library
is working properly.

The files provided are:

    testsrvr.lua            -- test server
    testclnt.lua            -- test client

To run these tests, just run lua on the server and then on the client. 

    hello.lua               -- run to verify if installation worked

Good luck,
Diego.