Sha256: aed193f20f35da2bf3c8135a1dd7b5a594eaaf2263985f0cd584b274ed98ef61

Contents?: true

Size: 845 Bytes

Versions: 8

Compression:

Stored size: 845 Bytes

Contents

#!/usr/bin/env ruby

$VERBOSE = true

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

require "bundler/setup"

require "test/unit"
Test::Unit::Priority.enable

Dir.glob(File.join(test_dir, "**", "test_*.rb")) do |test_file|
  require test_file
end

succeeded = true
target_adapters = [ENV["ACTIVE_LDAP_TEST_ADAPTER"]]
# target_adapters << "ldap"
# target_adapters << "net-ldap"
# target_adapters << "jndi"
target_adapters.each do |adapter|
  ENV["ACTIVE_LDAP_TEST_ADAPTER"] = adapter
  puts "using adapter: #{adapter ? adapter : 'default'}"
  unless Test::Unit::AutoRunner.run(false, nil, ARGV.dup)
    succeeded = false
  end
  puts
end

exit(succeeded)

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
activeldap-7.2.1 test/run-test.rb
activeldap-7.2.0 test/run-test.rb
activeldap-7.0.0 test/run-test.rb
activeldap-6.1.0 test/run-test.rb
activeldap-6.0.4 test/run-test.rb
activeldap-6.0.3 test/run-test.rb
activeldap-6.0.2 test/run-test.rb
activeldap-6.0.1 test/run-test.rb