Sha256: 88e418588ff72706889999d1f9ffcb3a2bc7f179b6b66255f51e80b50eb29c16

Contents?: true

Size: 725 Bytes

Versions: 4

Compression:

Stored size: 725 Bytes

Contents

#!/usr/bin/env ruby

require 'rubygems'
require 'bundler/setup'
$:.unshift(File.dirname(__FILE__))
require 'TestConfig'

def modTime(test)
  if test =~ /^(.*?\/)(\w+).test.rb$/
    target = File.expand_path(File.join($1, TestConfig::LIB_PATH, $2 + ".rb"))
    if File.exists?(target)
      [File.mtime(test), File.mtime(target)].max
    else
      File.mtime(test)
    end
  end
end

def sortByModTime(tests)
  tests.sort do |a, b| modTime(b) <=> modTime(a) end
end

testFiles = File.join(File.dirname(__FILE__), "*.test.rb")
for test in sortByModTime(Dir[testFiles])
  puts "----- #{test}"
  system("#{test}")
  exit(1) if $? != 0
end

# Local Variables:
# tab-width: 2
# ruby-indent-level: 2
# indent-tabs-mode: nil
# End:

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
sqlpostgres-1.3.0 test/test
sqlpostgres-1.2.6 test/test
sqlpostgres-1.2.5 test/test
sqlpostgres-1.2.4 test/test