aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDiego Nehab <diego@tecgraf.puc-rio.br>2001-06-08 22:40:09 +0000
committerDiego Nehab <diego@tecgraf.puc-rio.br>2001-06-08 22:40:09 +0000
commite9eafc74809319bcbe97f0661a710601fe3d1c1e (patch)
treea98d6edb31d5f18b199c4d6cd9199fed95ee7004
parent4456edcd0b56dd1401b58192b94b8364dab69c02 (diff)
downloadluasocket-e9eafc74809319bcbe97f0661a710601fe3d1c1e.tar.gz
luasocket-e9eafc74809319bcbe97f0661a710601fe3d1c1e.tar.bz2
luasocket-e9eafc74809319bcbe97f0661a710601fe3d1c1e.zip
Now prints the elapsed time.
-rw-r--r--test/httptest.lua5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/httptest.lua b/test/httptest.lua
index b88475d..8c78192 100644
--- a/test/httptest.lua
+++ b/test/httptest.lua
@@ -1,8 +1,11 @@
1-- load http 1-- load http
2assert(dofile("../lua/http.lua")) 2assert(dofile("../lua/http.lua"))
3assert(dofile("../lua/base64.lua")) 3assert(dofile("../lua/base64.lua"))
4assert(dofile("../lua/buffer.lua"))
4assert(dofile("auxiliar.lua")) 5assert(dofile("auxiliar.lua"))
5 6
7t = _time()
8
6-- needs Alias from /home/i/diego/public/html/luasocket/test to 9-- needs Alias from /home/i/diego/public/html/luasocket/test to
7-- /luasocket-test 10-- /luasocket-test
8-- needs ScriptAlias from /home/i/diego/public/html/luasocket/test/cgi-bin 11-- needs ScriptAlias from /home/i/diego/public/html/luasocket/test/cgi-bin
@@ -83,3 +86,5 @@ assert(f and m and s and not e, join(s, e))
83assert(compare(pdir .. "auth/index.html", f), "documents differ") 86assert(compare(pdir .. "auth/index.html", f), "documents differ")
84 87
85print("passed all tests") 88print("passed all tests")
89
90print(format("done in %.2fs", _time() - t))