Sha256: 54e36af0af5330f91e81f9d02eb5d662be9eda539828e682bb80c540ec79b4a7

Contents?: true

Size: 717 Bytes

Versions: 3

Compression:

Stored size: 717 Bytes

Contents

#!/usr/bin/env ruby

$KCODE = 'u'

require 'yaml'
require "test/unit"

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"))

require 'test-unit-ext'

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

3 entries across 3 versions & 2 rubygems

Version Path
activeldap-0.10.0 test/run-test.rb
activeldap-0.9.0 test/run-test.rb
ruby-activeldap-0.8.3.1 test/run-test.rb