aboutsummaryrefslogtreecommitdiff
path: root/test/unixclnt.lua
diff options
context:
space:
mode:
authorDiego Nehab <diego@tecgraf.puc-rio.br>2007-04-09 22:04:13 +0000
committerDiego Nehab <diego@tecgraf.puc-rio.br>2007-04-09 22:04:13 +0000
commit37f266ceea2d257e58734a83addf6be3927114a3 (patch)
tree3a88aa94eeb7853019ee837ce3f790ee7c1a8bb8 /test/unixclnt.lua
parentbe2e467929be9f27fbe92fe7b94783635c920c06 (diff)
downloadluasocket-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.lua8
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 @@
1socket = require"socket"
2socket.unix = require"socket.unix"
3c = assert(socket.unix())
4assert(c:connect("/tmp/foo"))
5while 1 do
6 local l = io.read()
7 assert(c:send(l .. "\n"))
8end