balgarath / cgi-ext

C Extension to Ruby's cgi.rb for Google Summer of Code '08

This URL has Read+Write access

cgi-ext / .autotest
100644 10 lines (8 sloc) 0.2 kb
1
2
3
4
5
6
7
8
9
10
Autotest.add_hook :initialize do |at|
  at.add_mapping(/ext\/.*\/(.*)\.[ch]/) do |_, m|
    ["test/test_#{m[1]}_extn.rb"]
  end
end
 
Autotest.add_hook :run_command do |at|
  system "rake compile"
end