changeset 450:4b8281c5c5af

add web/test
author Franklin Schmidt <fschmidt@gmail.com>
date Mon, 04 May 2015 23:40:52 -0600
parents e89bf64a0d05
children d62c35a5cd6b
files web/src/luan/modules/web/test.luan
diffstat 1 files changed, 11 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
diff -r e89bf64a0d05 -r 4b8281c5c5af web/src/luan/modules/web/test.luan
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/web/src/luan/modules/web/test.luan	Mon May 04 23:40:52 2015 -0600
@@ -0,0 +1,11 @@
+local Io = require "luan:Io"
+local Server = require "luan:web/Server"
+
+if #{...} ~= 2 then
+	Io.stderr.write "usage: luan luan:web/serve dir-URI test-URI\n"
+	return
+end
+
+local dir, test = ...
+Server.init(dir)
+require(test)