about summary refs log tree commit homepage
path: root/Rakefile
diff options
context:
space:
mode:
Diffstat (limited to 'Rakefile')
-rw-r--r--Rakefile10
1 files changed, 9 insertions, 1 deletions
diff --git a/Rakefile b/Rakefile
index 255d346..cf4311e 100644
--- a/Rakefile
+++ b/Rakefile
@@ -9,9 +9,17 @@ rescue LoadError
 end
 
 Rake::TestTask.new(:test)
-task :test => :compile
+task 'test-ruby' => :compile
 task :default => :compile
 
+task 'test-httpd': 'lib/mwrap.so' do
+  require 'rbconfig'
+  ENV['RUBY'] = RbConfig.ruby
+  sh "#{ENV['PROVE'] || 'prove'} -v"
+end
+
+task test: %w(test-ruby test-httpd)
+
 c_files = File.readlines('MANIFEST').grep(%r{ext/.*\.[ch]$}).map!(&:chomp!)
 task 'compile:mwrap' => c_files