about summary refs log tree commit homepage
path: root/t
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2009-10-25 16:34:33 -0700
committerEric Wong <normalperson@yhbt.net>2009-10-26 02:26:22 -0700
commitfa93a16ede574df6159497a526153a9978b66dd1 (patch)
tree7df4902849493bdf7a5547153e4c5934cbef9b13 /t
parent8487d928f9581d98aee14e1991f129422278367c (diff)
downloadrainbows-fa93a16ede574df6159497a526153a9978b66dd1.tar.gz
log reopens, graceful shutdown, HTTP error responses
should all be working now.
Diffstat (limited to 't')
-rw-r--r--t/GNUmakefile5
-rw-r--r--t/simple-http_EventMachine.ru9
2 files changed, 13 insertions, 1 deletions
diff --git a/t/GNUmakefile b/t/GNUmakefile
index 465a68b..4fcbc81 100644
--- a/t/GNUmakefile
+++ b/t/GNUmakefile
@@ -17,7 +17,7 @@ endif
 export RUBYLIB RUBY_VERSION
 
 models := ThreadPool ThreadSpawn Revactor Rev
-all_models := $(models) Base
+all_models := $(models) Base EventMachine
 
 T = $(wildcard t[0-9][0-9][0-9][0-9]-*.sh)
 
@@ -26,6 +26,9 @@ $(T): MODELS = $(models)
 
 # some tests can be run with all models
 t0000-simple-http.sh: MODELS = $(all_models)
+t0002-graceful.sh: MODELS = $(all_models)
+t0002-parser-error.sh: MODELS = $(all_models)
+t0003-reopen-logs.sh: MODELS = $(all_models)
 
 # this test is not compatible with non-Thread models yet
 t9000-rack-app-pool.sh: MODELS = ThreadPool ThreadSpawn
diff --git a/t/simple-http_EventMachine.ru b/t/simple-http_EventMachine.ru
new file mode 100644
index 0000000..192b908
--- /dev/null
+++ b/t/simple-http_EventMachine.ru
@@ -0,0 +1,9 @@
+use Rack::ContentLength
+use Rack::ContentType
+run lambda { |env|
+  if env['rack.multithread'] == false && env['rainbows.model'] == :EventMachine
+    [ 200, {}, [ env.inspect << "\n" ] ]
+  else
+    raise "rack.multithread is true"
+  end
+}