#!/usr/bin/env ruby --disable-gems root = File.expand_path('../..', __FILE__) DEV_TEST_ROOT = root + '/test' $LOAD_PATH.unshift(DEV_TEST_ROOT) def test_files Dir.glob(DEV_TEST_ROOT + "/**/*_test.rb") end if ARGV.empty? test_files.each { |f| require(f) } exit 0 end # A list of files is presumed to be specified ARGV.each do |a| require a.sub(%r{^test/}, '').sub(%r{^misc/gatekeeper/test/}, '') end