aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2010-02-15 14:23:00 +0000
committerMatthew Wild <mwild1@gmail.com>2010-02-15 14:23:00 +0000
commita8525fc886716c42ef3f76b0ce5e5bae80e005b7 (patch)
treea45197beb43fac9b732c96b00ee4cdfad3f21f57 /test
parentdcf2339cc6e5820b0c8345475329ff53151a5945 (diff)
downloadluaevent-prosody-a8525fc886716c42ef3f76b0ce5e5bae80e005b7.tar.gz
luaevent-prosody-a8525fc886716c42ef3f76b0ce5e5bae80e005b7.zip
test/basic.lua: Add simple script to load libevent, show version, etc.
Diffstat (limited to 'test')
-rw-r--r--test/basic.lua8
1 files changed, 8 insertions, 0 deletions
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())