diff options
author | Diego Nehab <diego@tecgraf.puc-rio.br> | 2001-06-08 22:40:09 +0000 |
---|---|---|
committer | Diego Nehab <diego@tecgraf.puc-rio.br> | 2001-06-08 22:40:09 +0000 |
commit | e9eafc74809319bcbe97f0661a710601fe3d1c1e (patch) | |
tree | a98d6edb31d5f18b199c4d6cd9199fed95ee7004 | |
parent | 4456edcd0b56dd1401b58192b94b8364dab69c02 (diff) | |
download | luasocket-e9eafc74809319bcbe97f0661a710601fe3d1c1e.tar.gz luasocket-e9eafc74809319bcbe97f0661a710601fe3d1c1e.tar.bz2 luasocket-e9eafc74809319bcbe97f0661a710601fe3d1c1e.zip |
Now prints the elapsed time.
-rw-r--r-- | test/httptest.lua | 5 |
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 |
2 | assert(dofile("../lua/http.lua")) | 2 | assert(dofile("../lua/http.lua")) |
3 | assert(dofile("../lua/base64.lua")) | 3 | assert(dofile("../lua/base64.lua")) |
4 | assert(dofile("../lua/buffer.lua")) | ||
4 | assert(dofile("auxiliar.lua")) | 5 | assert(dofile("auxiliar.lua")) |
5 | 6 | ||
7 | t = _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)) | |||
83 | assert(compare(pdir .. "auth/index.html", f), "documents differ") | 86 | assert(compare(pdir .. "auth/index.html", f), "documents differ") |
84 | 87 | ||
85 | print("passed all tests") | 88 | print("passed all tests") |
89 | |||
90 | print(format("done in %.2fs", _time() - t)) | ||