#!/usr/bin/ruby -w

#
# Run all of the etch test cases
#

require 'test/unit'
Dir.foreach('.') do |entry|
  next unless entry =~ /\.rb$/
  # Skip this file
  next if entry == 'alltests.rb'
  # And the shared file
  next if entry == 'etchtest.rb'

  require entry
end

#!/usr/bin/ruby -w

#
# Run all of the etch test cases
#

require 'test/unit'
Dir.chdir(File.dirname(__FILE__))
Dir.foreach('.') do |entry|
  next unless entry =~ /\.rb$/
  # Skip this file
  next if entry == 'alltests.rb'
  # And the shared file
  next if entry == 'etchtest.rb'

  require entry
end

Add chdir to the test directory so this script can be run from anywhere.
Add chdir to the test directory so this script can be run from anywhere.

