diff options
Diffstat (limited to 'test')
| -rw-r--r-- | test/httptest.lua | 7 | ||||
| -rw-r--r-- | test/mimetest.lua | 2 |
2 files changed, 6 insertions, 3 deletions
diff --git a/test/httptest.lua b/test/httptest.lua index 1f4158a..31e8212 100644 --- a/test/httptest.lua +++ b/test/httptest.lua | |||
| @@ -3,8 +3,11 @@ | |||
| 3 | -- needs ScriptAlias from /home/c/diego/tec/luasocket/test/cgi | 3 | -- needs ScriptAlias from /home/c/diego/tec/luasocket/test/cgi |
| 4 | -- to "/luasocket-test-cgi" and "/luasocket-test-cgi/" | 4 | -- to "/luasocket-test-cgi" and "/luasocket-test-cgi/" |
| 5 | -- needs "AllowOverride AuthConfig" on /home/c/diego/tec/luasocket/test/auth | 5 | -- needs "AllowOverride AuthConfig" on /home/c/diego/tec/luasocket/test/auth |
| 6 | |||
| 7 | local socket = require("socket") | 6 | local socket = require("socket") |
| 7 | |||
| 8 | -- override protection to make sure we see all errors | ||
| 9 | -- socket.protect = function(s) return s end | ||
| 10 | |||
| 8 | local http = require("http") | 11 | local http = require("http") |
| 9 | local mime = require("mime") | 12 | local mime = require("mime") |
| 10 | local url = require("url") | 13 | local url = require("url") |
| @@ -19,7 +22,7 @@ http.TIMEOUT = 10 | |||
| 19 | 22 | ||
| 20 | local t = socket.gettime() | 23 | local t = socket.gettime() |
| 21 | 24 | ||
| 22 | host = host or "diego.princeton.edu" | 25 | host = host or "diego.student.princeton.edu" |
| 23 | proxy = proxy or "http://localhost:3128" | 26 | proxy = proxy or "http://localhost:3128" |
| 24 | prefix = prefix or "/luasocket-test" | 27 | prefix = prefix or "/luasocket-test" |
| 25 | cgiprefix = cgiprefix or "/luasocket-test-cgi" | 28 | cgiprefix = cgiprefix or "/luasocket-test-cgi" |
diff --git a/test/mimetest.lua b/test/mimetest.lua index 413a83b..d549ba6 100644 --- a/test/mimetest.lua +++ b/test/mimetest.lua | |||
| @@ -8,7 +8,7 @@ local qptest = "qptest.bin" | |||
| 8 | local eqptest = "qptest.bin2" | 8 | local eqptest = "qptest.bin2" |
| 9 | local dqptest = "qptest.bin3" | 9 | local dqptest = "qptest.bin3" |
| 10 | 10 | ||
| 11 | local b64test = "luasocket.dll" | 11 | local b64test = "luasocket.so" |
| 12 | local eb64test = "b64test.bin" | 12 | local eb64test = "b64test.bin" |
| 13 | local db64test = "b64test.bin2" | 13 | local db64test = "b64test.bin2" |
| 14 | 14 | ||
