From a8525fc886716c42ef3f76b0ce5e5bae80e005b7 Mon Sep 17 00:00:00 2001 From: Matthew Wild Date: Mon, 15 Feb 2010 14:23:00 +0000 Subject: test/basic.lua: Add simple script to load libevent, show version, etc. --- test/basic.lua | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 test/basic.lua (limited to 'test/basic.lua') diff --git a/test/basic.lua b/test/basic.lua new file mode 100644 index 0000000..4ec72c4 --- /dev/null +++ b/test/basic.lua @@ -0,0 +1,8 @@ +require "luaevent" + +print("Version:", luaevent._NAME.." "..luaevent._VERSION) +print("libevent version:", luaevent.core.libevent_version()) +print("") +base = luaevent.core.new() +print("Testing creating base object:", type(base) == "userdata" and "OK" or "FAIL") +print("libevent backend:", base:method()) -- cgit v1.2.3