Added simple unix tests.
This commit is contained in:
parent
be2e467929
commit
37f266ceea
3 changed files with 17 additions and 10 deletions
8
test/unixclnt.lua
Normal file
8
test/unixclnt.lua
Normal file
|
@ -0,0 +1,8 @@
|
|||
socket = require"socket"
|
||||
socket.unix = require"socket.unix"
|
||||
c = assert(socket.unix())
|
||||
assert(c:connect("/tmp/foo"))
|
||||
while 1 do
|
||||
local l = io.read()
|
||||
assert(c:send(l .. "\n"))
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue