Skip to content

Commit

Permalink
- rename test runner for easier launching from the jar.
Browse files Browse the repository at this point in the history
  • Loading branch information
jordansissel committed Apr 9, 2011
1 parent 3f1406f commit 6335bb0
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion test/run.rb → test/logstash_test_runner.rb
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,17 @@ def use(path)
use "logstash/filters/test_grep"
use "logstash/filters/test_multiline"
use "logstash/filters/test_grok"
use "logstash/outputs/test_elasticsearch"

if __FILE__ =~ /^file:.*\.jar/
puts "Skipping elasticsearch tests since we're running from a jar."
skip "logstash/outputs/test_elasticsearch"
else
use "logstash/outputs/test_elasticsearch"
end

skip "logstash/inputs/test_file"
skip "logstash/inputs/test_syslog"
skip "logstash/inputs/test_stomp"

Test::Unit::AutoRunner.run

0 comments on commit 6335bb0

Please sign in to comment.