about summary refs log tree commit homepage
path: root/t
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2011-06-09 00:34:00 +0000
committerEric Wong <normalperson@yhbt.net>2011-06-09 01:06:52 +0000
commit40edc84784864063a38ba38bf854a2119c243ce4 (patch)
tree6f4138228a08034c49368d7e926684ef46b21f63 /t
parent54deb6a9a0e868c0958c9ec145e311661ce90e54 (diff)
downloadrainbows-40edc84784864063a38ba38bf854a2119c243ce4.tar.gz
This doesn't use Rainbows::Base so we have no keepalive support
at all.  This could eventually be an option for streaming
applications.
Diffstat (limited to 't')
-rw-r--r--t/GNUmakefile1
-rwxr-xr-xt/t0000-simple-http.sh1
-rwxr-xr-xt/t0001-unix-http.sh1
-rwxr-xr-xt/t0005-large-file-response.sh1
-rwxr-xr-xt/t0009-broken-app.sh1
-rwxr-xr-xt/t0010-keepalive-timeout-effective.sh2
-rwxr-xr-xt/t0011-close-on-exec-set.sh1
-rw-r--r--t/t0019-keepalive-cpu-usage.sh2
-rwxr-xr-xt/t0020-large-sendfile-response.sh1
-rwxr-xr-xt/t0021-sendfile-wrap-to_path.sh1
-rwxr-xr-xt/t0023-sendfile-byte-range.sh1
-rwxr-xr-xt/t0024-pipelined-sendfile-response.sh1
-rwxr-xr-xt/t0030-fast-pipe-response.sh1
-rwxr-xr-xt/t0031-close-pipe-response.sh1
-rwxr-xr-xt/t0032-close-pipe-to_path-response.sh1
-rwxr-xr-xt/t0034-pipelined-pipe-response.sh1
-rwxr-xr-xt/t0035-kgio-pipe-response.sh1
-rwxr-xr-xt/t0040-keepalive_requests-setting.sh1
-rw-r--r--t/t0044-autopush.sh1
-rw-r--r--t/t0050-response-body-close-has-env.sh1
-rwxr-xr-xt/t0103-rack-input-limit.sh1
-rwxr-xr-xt/t0104-rack-input-limit-tiny.sh1
-rwxr-xr-xt/t0105-rack-input-limit-bigger.sh1
-rwxr-xr-xt/t0106-rack-input-keepalive.sh1
-rwxr-xr-xt/t0107-rack-input-limit-zero.sh1
-rwxr-xr-xt/t0200-async-response.sh1
-rwxr-xr-xt/t0202-async-response-one-oh.sh1
-rwxr-xr-xt/t9001-sendfile-to-path.sh1
28 files changed, 30 insertions, 0 deletions
diff --git a/t/GNUmakefile b/t/GNUmakefile
index 3d05052..78a4e83 100644
--- a/t/GNUmakefile
+++ b/t/GNUmakefile
@@ -32,6 +32,7 @@ models += ThreadSpawn
 models += Coolio
 models += EventMachine
 models += NeverBlock
+models += StreamResponseEpoll
 
 ifeq ($(RUBY_ENGINE),ruby)
   rp := )
diff --git a/t/t0000-simple-http.sh b/t/t0000-simple-http.sh
index 6f4d738..57a7d59 100755
--- a/t/t0000-simple-http.sh
+++ b/t/t0000-simple-http.sh
@@ -1,5 +1,6 @@
 #!/bin/sh
 . ./test-lib.sh
+skip_models StreamResponseEpoll
 t_plan 25 "simple HTTP connection keepalive/pipelining tests for $model"
 
 t_begin "checking for config.ru for $model" && {
diff --git a/t/t0001-unix-http.sh b/t/t0001-unix-http.sh
index e9bc919..32d54c7 100755
--- a/t/t0001-unix-http.sh
+++ b/t/t0001-unix-http.sh
@@ -1,5 +1,6 @@
 #!/bin/sh
 . ./test-lib.sh
+skip_models StreamResponseEpoll
 t_plan 19 "simple HTTP connection keepalive/pipelining tests for $model"
 
 t_begin "checking for config.ru for $model" && {
diff --git a/t/t0005-large-file-response.sh b/t/t0005-large-file-response.sh
index d709d79..c21209d 100755
--- a/t/t0005-large-file-response.sh
+++ b/t/t0005-large-file-response.sh
@@ -1,5 +1,6 @@
 #!/bin/sh
 . ./test-lib.sh
+skip_models StreamResponseEpoll
 test -r random_blob || die "random_blob required, run with 'make $0'"
 
 if ! grep -v ^VmRSS: /proc/self/status >/dev/null 2>&1
diff --git a/t/t0009-broken-app.sh b/t/t0009-broken-app.sh
index 5ccb400..efa9ea1 100755
--- a/t/t0009-broken-app.sh
+++ b/t/t0009-broken-app.sh
@@ -1,5 +1,6 @@
 #!/bin/sh
 . ./test-lib.sh
+skip_models StreamResponseEpoll
 
 t_plan 9 "graceful handling of broken apps for $model"
 
diff --git a/t/t0010-keepalive-timeout-effective.sh b/t/t0010-keepalive-timeout-effective.sh
index 9d4d651..0a6236f 100755
--- a/t/t0010-keepalive-timeout-effective.sh
+++ b/t/t0010-keepalive-timeout-effective.sh
@@ -1,5 +1,7 @@
 #!/bin/sh
 . ./test-lib.sh
+skip_models StreamResponseEpoll
+
 t_plan 6 "keepalive_timeout tests for $model"
 
 t_begin "setup and start" && {
diff --git a/t/t0011-close-on-exec-set.sh b/t/t0011-close-on-exec-set.sh
index 7ff0a6b..9c66575 100755
--- a/t/t0011-close-on-exec-set.sh
+++ b/t/t0011-close-on-exec-set.sh
@@ -1,6 +1,7 @@
 #!/bin/sh
 nr=${nr-"5"}
 . ./test-lib.sh
+skip_models StreamResponseEpoll
 
 t_plan 7 "ensure close-on-exec flag is set for $model"
 
diff --git a/t/t0019-keepalive-cpu-usage.sh b/t/t0019-keepalive-cpu-usage.sh
index e368709..b63c3c9 100644
--- a/t/t0019-keepalive-cpu-usage.sh
+++ b/t/t0019-keepalive-cpu-usage.sh
@@ -5,6 +5,8 @@ then
 fi
 . ./test-lib.sh
 skip_models WriterThreadSpawn WriterThreadPool Base
+skip_models StreamResponseEpoll
+
 t_plan 6 "keepalive_timeout CPU usage tests for $model"
 
 t_begin "setup and start" && {
diff --git a/t/t0020-large-sendfile-response.sh b/t/t0020-large-sendfile-response.sh
index 18b0bf5..a8bc8e2 100755
--- a/t/t0020-large-sendfile-response.sh
+++ b/t/t0020-large-sendfile-response.sh
@@ -1,5 +1,6 @@
 #!/bin/sh
 . ./test-lib.sh
+skip_models StreamResponseEpoll
 test -r random_blob || die "random_blob required, run with 'make $0'"
 case $RUBY_ENGINE in
 ruby) ;;
diff --git a/t/t0021-sendfile-wrap-to_path.sh b/t/t0021-sendfile-wrap-to_path.sh
index 7f3acaa..77437b6 100755
--- a/t/t0021-sendfile-wrap-to_path.sh
+++ b/t/t0021-sendfile-wrap-to_path.sh
@@ -1,5 +1,6 @@
 #!/bin/sh
 . ./test-lib.sh
+skip_models StreamResponseEpoll
 test -r random_blob || die "random_blob required, run with 'make $0'"
 case $RUBY_ENGINE in
 ruby) ;;
diff --git a/t/t0023-sendfile-byte-range.sh b/t/t0023-sendfile-byte-range.sh
index 2cb8516..a5b6ab2 100755
--- a/t/t0023-sendfile-byte-range.sh
+++ b/t/t0023-sendfile-byte-range.sh
@@ -1,5 +1,6 @@
 #!/bin/sh
 . ./test-lib.sh
+skip_models StreamResponseEpoll
 test -r random_blob || die "random_blob required, run with 'make $0'"
 case $RUBY_ENGINE in
 ruby) ;;
diff --git a/t/t0024-pipelined-sendfile-response.sh b/t/t0024-pipelined-sendfile-response.sh
index 9111ce9..d98be5f 100755
--- a/t/t0024-pipelined-sendfile-response.sh
+++ b/t/t0024-pipelined-sendfile-response.sh
@@ -1,5 +1,6 @@
 #!/bin/sh
 . ./test-lib.sh
+skip_models StreamResponseEpoll
 
 t_plan 6 "pipelined sendfile response for $model"
 
diff --git a/t/t0030-fast-pipe-response.sh b/t/t0030-fast-pipe-response.sh
index f81029a..aab4357 100755
--- a/t/t0030-fast-pipe-response.sh
+++ b/t/t0030-fast-pipe-response.sh
@@ -1,5 +1,6 @@
 #!/bin/sh
 . ./test-lib.sh
+skip_models StreamResponseEpoll
 test -r random_blob || die "random_blob required, run with 'make $0'"
 
 t_plan 10 "fast pipe response for $model"
diff --git a/t/t0031-close-pipe-response.sh b/t/t0031-close-pipe-response.sh
index c863d4a..04ac12b 100755
--- a/t/t0031-close-pipe-response.sh
+++ b/t/t0031-close-pipe-response.sh
@@ -1,5 +1,6 @@
 #!/bin/sh
 . ./test-lib.sh
+skip_models StreamResponseEpoll
 
 t_plan 16 "close pipe response for $model"
 
diff --git a/t/t0032-close-pipe-to_path-response.sh b/t/t0032-close-pipe-to_path-response.sh
index e3d8f1b..8092930 100755
--- a/t/t0032-close-pipe-to_path-response.sh
+++ b/t/t0032-close-pipe-to_path-response.sh
@@ -1,5 +1,6 @@
 #!/bin/sh
 . ./test-lib.sh
+skip_models StreamResponseEpoll
 if ! test -d /dev/fd
 then
         t_info "skipping $T since /dev/fd is required"
diff --git a/t/t0034-pipelined-pipe-response.sh b/t/t0034-pipelined-pipe-response.sh
index 6dff9ad..2d28f86 100755
--- a/t/t0034-pipelined-pipe-response.sh
+++ b/t/t0034-pipelined-pipe-response.sh
@@ -1,5 +1,6 @@
 #!/bin/sh
 . ./test-lib.sh
+skip_models StreamResponseEpoll
 
 t_plan 6 "pipelined pipe response for $model"
 
diff --git a/t/t0035-kgio-pipe-response.sh b/t/t0035-kgio-pipe-response.sh
index 90258eb..552270f 100755
--- a/t/t0035-kgio-pipe-response.sh
+++ b/t/t0035-kgio-pipe-response.sh
@@ -1,5 +1,6 @@
 #!/bin/sh
 . ./test-lib.sh
+skip_models StreamResponseEpoll
 test -r random_blob || die "random_blob required, run with 'make $0'"
 
 t_plan 10 "fast Kgio pipe response for $model"
diff --git a/t/t0040-keepalive_requests-setting.sh b/t/t0040-keepalive_requests-setting.sh
index 81194f1..103b217 100755
--- a/t/t0040-keepalive_requests-setting.sh
+++ b/t/t0040-keepalive_requests-setting.sh
@@ -1,5 +1,6 @@
 #!/bin/sh
 . ./test-lib.sh
+skip_models StreamResponseEpoll
 t_plan 6 "keepalive_requests limit tests for $model"
 
 t_begin "setup and start" && {
diff --git a/t/t0044-autopush.sh b/t/t0044-autopush.sh
index bac97d7..5017067 100644
--- a/t/t0044-autopush.sh
+++ b/t/t0044-autopush.sh
@@ -15,6 +15,7 @@ fi
 # these buffer internally in external libraries, so we can't detect when
 # to use TCP_CORK
 skip_models EventMachine NeverBlock
+skip_models StreamResponseEpoll
 skip_models Coolio CoolioThreadPool CoolioThreadSpawn
 skip_models Revactor Rev RevThreadPool RevThreadSpawn
 
diff --git a/t/t0050-response-body-close-has-env.sh b/t/t0050-response-body-close-has-env.sh
index be16a99..e7e6a68 100644
--- a/t/t0050-response-body-close-has-env.sh
+++ b/t/t0050-response-body-close-has-env.sh
@@ -1,5 +1,6 @@
 #!/bin/sh
 . ./test-lib.sh
+skip_models StreamResponseEpoll
 
 t_plan 29 "keepalive does not clear Rack env prematurely for $model"
 
diff --git a/t/t0103-rack-input-limit.sh b/t/t0103-rack-input-limit.sh
index 64d6dac..efb87fe 100755
--- a/t/t0103-rack-input-limit.sh
+++ b/t/t0103-rack-input-limit.sh
@@ -1,5 +1,6 @@
 #!/bin/sh
 . ./test-lib.sh
+skip_models StreamResponseEpoll
 test -r random_blob || die "random_blob required, run with 'make $0'"
 req_curl_chunked_upload_err_check
 
diff --git a/t/t0104-rack-input-limit-tiny.sh b/t/t0104-rack-input-limit-tiny.sh
index 1104a97..7e806db 100755
--- a/t/t0104-rack-input-limit-tiny.sh
+++ b/t/t0104-rack-input-limit-tiny.sh
@@ -1,5 +1,6 @@
 #!/bin/sh
 . ./test-lib.sh
+skip_models StreamResponseEpoll
 test -r random_blob || die "random_blob required, run with 'make $0'"
 req_curl_chunked_upload_err_check
 
diff --git a/t/t0105-rack-input-limit-bigger.sh b/t/t0105-rack-input-limit-bigger.sh
index ed13d4e..1ae0191 100755
--- a/t/t0105-rack-input-limit-bigger.sh
+++ b/t/t0105-rack-input-limit-bigger.sh
@@ -1,5 +1,6 @@
 #!/bin/sh
 . ./test-lib.sh
+skip_models StreamResponseEpoll
 test -r random_blob || die "random_blob required, run with 'make $0'"
 req_curl_chunked_upload_err_check
 
diff --git a/t/t0106-rack-input-keepalive.sh b/t/t0106-rack-input-keepalive.sh
index f9c9758..e408701 100755
--- a/t/t0106-rack-input-keepalive.sh
+++ b/t/t0106-rack-input-keepalive.sh
@@ -1,5 +1,6 @@
 #!/bin/sh
 . ./test-lib.sh
+skip_models StreamResponseEpoll
 t_plan 11 "rack.input pipelining test"
 
 t_begin "setup and startup" && {
diff --git a/t/t0107-rack-input-limit-zero.sh b/t/t0107-rack-input-limit-zero.sh
index 94aa256..5da8667 100755
--- a/t/t0107-rack-input-limit-zero.sh
+++ b/t/t0107-rack-input-limit-zero.sh
@@ -1,5 +1,6 @@
 #!/bin/sh
 . ./test-lib.sh
+skip_models StreamResponseEpoll
 req_curl_chunked_upload_err_check
 
 t_plan 6 "rack.input client_max_body_size zero"
diff --git a/t/t0200-async-response.sh b/t/t0200-async-response.sh
index 16e1f76..11917f0 100755
--- a/t/t0200-async-response.sh
+++ b/t/t0200-async-response.sh
@@ -3,6 +3,7 @@ CONFIG_RU=${CONFIG_RU-'async-response.ru'}
 . ./test-lib.sh
 
 skip_models Base WriterThreadPool WriterThreadSpawn
+skip_models StreamResponseEpoll
 
 case $CONFIG_RU in
 *no-autochunk.ru)
diff --git a/t/t0202-async-response-one-oh.sh b/t/t0202-async-response-one-oh.sh
index 0d833ca..80ffc1f 100755
--- a/t/t0202-async-response-one-oh.sh
+++ b/t/t0202-async-response-one-oh.sh
@@ -3,6 +3,7 @@ CONFIG_RU=${CONFIG_RU-'async-response.ru'}
 . ./test-lib.sh
 
 skip_models Base WriterThreadPool WriterThreadSpawn
+skip_models StreamResponseEpoll
 
 t_plan 6 "async HTTP/1.0 response for $model"
 
diff --git a/t/t9001-sendfile-to-path.sh b/t/t9001-sendfile-to-path.sh
index 88b9c34..5a9fdcd 100755
--- a/t/t9001-sendfile-to-path.sh
+++ b/t/t9001-sendfile-to-path.sh
@@ -1,5 +1,6 @@
 #!/bin/sh
 . ./test-lib.sh
+skip_models StreamResponseEpoll
 
 t_plan 7 "Sendfile middleware test for $model"