aboutsummaryrefslogtreecommitdiffstats
path: root/Rakefile
diff options
context:
space:
mode:
authorKazuki Yamaguchi <k@rhe.jp>2016-08-06 14:48:36 +0900
committerKazuki Yamaguchi <k@rhe.jp>2016-08-14 16:17:17 +0900
commitf0754f0b2f335c84a276508cabe9eee8c46e04f8 (patch)
treee38dd242b9a093d12ccaf3e977435d2fc6611209 /Rakefile
parent223bd90cd4c8efd1340eff7af5feb77e8cb27114 (diff)
downloadruby-openssl-f0754f0b2f335c84a276508cabe9eee8c46e04f8.tar.gz
test: add test/mdebug extension
It adds OpenSSL.print_mem_leaks method, that prints the memory leaks recorded by OpenSSL. This useful to find memory leaks originating in our bugs.
Diffstat (limited to 'Rakefile')
-rw-r--r--Rakefile7
1 files changed, 6 insertions, 1 deletions
diff --git a/Rakefile b/Rakefile
index 7adf9500..82669ea8 100644
--- a/Rakefile
+++ b/Rakefile
@@ -7,12 +7,17 @@ require 'rdoc/task'
Rake::ExtensionTask.new('openssl')
-# the same as before
Rake::TestTask.new do |t|
t.libs << 'test'
t.warning = true
end
+Rake::ExtensionTask.new('test/mdebug') do |ext|
+ # hack to emit mdebug.so under ./test/
+ ext.ext_dir = 'test/mdebug'
+ ext.lib_dir = '.'
+end
+
RDoc::Task.new do |rdoc|
rdoc.rdoc_files.include("README.md", "lib/**/*.rb", "ext/**/*.c")
end