diff options
author | Diego Nehab <diego@tecgraf.puc-rio.br> | 2007-04-09 22:04:13 +0000 |
---|---|---|
committer | Diego Nehab <diego@tecgraf.puc-rio.br> | 2007-04-09 22:04:13 +0000 |
commit | 37f266ceea2d257e58734a83addf6be3927114a3 (patch) | |
tree | 3a88aa94eeb7853019ee837ce3f790ee7c1a8bb8 /test/unixclnt.lua | |
parent | be2e467929be9f27fbe92fe7b94783635c920c06 (diff) | |
download | luasocket-37f266ceea2d257e58734a83addf6be3927114a3.tar.gz luasocket-37f266ceea2d257e58734a83addf6be3927114a3.tar.bz2 luasocket-37f266ceea2d257e58734a83addf6be3927114a3.zip |
Added simple unix tests.
Diffstat (limited to 'test/unixclnt.lua')
-rw-r--r-- | test/unixclnt.lua | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/test/unixclnt.lua b/test/unixclnt.lua new file mode 100644 index 0000000..5171535 --- /dev/null +++ b/test/unixclnt.lua | |||
@@ -0,0 +1,8 @@ | |||
1 | socket = require"socket" | ||
2 | socket.unix = require"socket.unix" | ||
3 | c = assert(socket.unix()) | ||
4 | assert(c:connect("/tmp/foo")) | ||
5 | while 1 do | ||
6 | local l = io.read() | ||
7 | assert(c:send(l .. "\n")) | ||
8 | end | ||