diff options
Diffstat (limited to 't')
-rw-r--r-- | t/GNUmakefile | 5 | ||||
-rw-r--r-- | t/simple-http_EventMachine.ru | 9 |
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 +} |