Tag Archives: zentest

inotify support for autotest

autotest is a really great tool. But my laptop is too old and the current autotest method to detect modifications is a bit heavy for it.

Like Mark Scottishclimbs, I thought about using ruby-inotify to detect changes in source files.

Add to your .autotest file this piece of code to add inotify support. A small change in Autotest#wait_for_changes replaces the simple sleep by a waiting of an inotify event.

Update: ruby-inotify seems buggy. I’ve switched successfully the implementation to inotify. Just download INotify-0.3.0.rb into your load path (such /usr/local/lib/site_ruby/1.8). No native library is required.