summaryrefslogtreecommitdiffstats
path: root/extconf.rb
diff options
context:
space:
mode:
Diffstat (limited to 'extconf.rb')
-rw-r--r--extconf.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/extconf.rb b/extconf.rb
index 32dbd06..73d0ce7 100644
--- a/extconf.rb
+++ b/extconf.rb
@@ -2,6 +2,12 @@ require "mkmf"
create_makefile "mmap"
begin
make = open("Makefile", "a")
+ make.puts "\ntest: $(DLLIB)"
+ Dir.foreach('tests') do |x|
+ next if /^\./ =~ x || /(_\.rb|~)$/ =~ x
+ next if FileTest.directory?(x)
+ make.print "\truby tests/#{x}\n"
+ end
make.print <<-EOT
unknown: $(DLLIB)