Sha256: fe3097fc57a9fc28bdc22fd47a929a93f36d89466bf2008911c4c37a0fbab0d3

Contents?: true

Size: 1.13 KB

Versions: 29

Compression:

Stored size: 1.13 KB

Contents

#!/usr/local/bin/ruby -ws

$v    ||= false
$h    ||= false
$f    ||= false
$q    ||= false
$help ||= false

if $h or $help then
  help = [
          "autotest [options]",
          nil,
          "options:",
          "\t-h",
          "\t-help\t\tYou're looking at it.",
          nil,
          "\t-v\t\tBe verbose.",
          "\t\t\tPrints files that autotest doesn't know how to map to",
          "\t\t\ttests.",
          nil,
          "\t-q\t\tBe more quiet.",
          nil,
          "\t-f\t\tFast start.",
          "\t\t\tDoesn't initially run tests at start.",
         ]
  STDERR.puts help.join("\n")
  exit 1
end

class Dir
  class << self
    alias :old_index :[]
    def [](*args)
      $-w, old_warn = false, $-w
      old_index(*args)
    ensure
      $-w = old_warn
    end
  end
end

require 'autotest'
style = Autotest.autodiscover
target = Autotest
unless style.empty? then
  mod = "autotest/#{style.join("_")}"
  puts "loading #{mod}"
  begin
    require mod
  rescue LoadError
    abort "Autotest style #{mod} doesn't seem to exist. Aborting."
  end
  target = Autotest.const_get(style.map {|s| s.capitalize}.join)
end
target.run

Version data entries

29 entries across 29 versions & 4 rubygems

Version Path
BanzaiMan-ZenTest-4.2 bin/autotest
ryanbriones-ZenTest-3.11.1 bin/autotest
vim-jar-0.1.2.0001 bundler/ruby/1.8/gems/ZenTest-4.4.0/bin/autotest
vim-jar-0.1.2 bundler/ruby/1.8/gems/ZenTest-4.4.0/bin/autotest
vim-jar-0.1.1 bundler/ruby/1.8/gems/ZenTest-4.4.0/bin/autotest
vim-jar-0.1.0 bundler/ruby/1.8/gems/ZenTest-4.4.0/bin/autotest
vim-jar-0.0.3 bundler/ruby/1.8/gems/ZenTest-4.4.0/bin/autotest
vim-jar-0.0.2 bundler/ruby/1.8/gems/ZenTest-4.4.0/bin/autotest
vim-jar-0.0.1 bundler/ruby/1.8/gems/ZenTest-4.4.0/bin/autotest
ZenTest-4.4.0 bin/autotest
ZenTest-4.3.3 bin/autotest
ZenTest-4.3.2 bin/autotest
ZenTest-4.3.1 bin/autotest
ZenTest-4.3.0 bin/autotest
ZenTest-4.2.1 bin/autotest
ZenTest-4.2.0 bin/autotest
ZenTest-3.9.0 bin/autotest
ZenTest-3.9.1 bin/autotest
ZenTest-3.9.2 bin/autotest
ZenTest-3.9.3 bin/autotest