Sha256: d1143e887792af720190266875ea1c75b40eea0e8dc6b7bb0eb2b90f5931ac90

Contents?: true

Size: 801 Bytes

Versions: 2

Compression:

Stored size: 801 Bytes

Contents

#!/usr/bin/env ruby

$VERBOSE = true

$KCODE = 'u'

require 'yaml'

base_dir = File.expand_path(File.dirname(__FILE__))
top_dir = File.expand_path(File.join(base_dir, ".."))
$LOAD_PATH.unshift(File.join(top_dir, "lib"))
$LOAD_PATH.unshift(File.join(top_dir, "test"))

$LOAD_PATH.unshift(File.join(top_dir, "test-unit", "lib"))
require "test/unit"
ARGV.unshift("--priority-mode")

test_file = "test/test_*.rb"
Dir.glob(test_file) do |file|
  require file
end

[nil, "ldap", "net-ldap"].each do |adapter|
  ENV["ACTIVE_LDAP_TEST_ADAPTER"] = adapter
  puts "using adapter: #{adapter ? adapter : 'default'}"
  args = [File.dirname($0), ARGV.dup]
  if Test::Unit::AutoRunner.respond_to?(:standalone?)
    args.unshift(false)
  else
    args.unshift($0)
  end
  Test::Unit::AutoRunner.run(*args)
  puts
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
activeldap-1.0.1 test/run-test.rb
activeldap-1.0.2 test/run-test.rb