Sha256: 2f988b8843b86c1281e176dfb1757a7b0faf3e6c71550c64a04faae03930cb7b

Contents?: true

Size: 1.95 KB

Versions: 30

Compression:

Stored size: 1.95 KB

Contents

#!/usr/bin/env ruby
#
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements.  See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership.  The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License.  You may obtain a copy of the License at
#
#   http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# KIND, either express or implied.  See the License for the
# specific language governing permissions and limitations
# under the License.

$VERBOSE = true

require "fileutils"
require "pathname"

(ENV["ARROW_DLL_PATH"] || "").split(File::PATH_SEPARATOR).each do |path|
  RubyInstaller::Runtime.add_dll_directory(path)
end

base_dir = Pathname.new(__dir__).parent.expand_path

lib_dir = base_dir + "lib"
ext_dir = base_dir + "ext" + "arrow"
test_dir = base_dir + "test"

build_dir = ENV["BUILD_DIR"]
if build_dir
  build_dir = File.join(build_dir, "red-arrow")
  FileUtils.mkdir_p(build_dir)
else
  build_dir = ext_dir
end

make = nil
if ENV["NO_MAKE"] != "yes"
  if ENV["MAKE"]
    make = ENV["MAKE"]
  elsif system("which gmake > #{File::NULL} 2>&1")
    make = "gmake"
  elsif system("which make > #{File::NULL} 2>&1")
    make = "make"
  end
end
if make
  Dir.chdir(build_dir.to_s) do
    unless File.exist?("Makefile")
      system(RbConfig.ruby,
             (ext_dir + "extconf.rb").to_s,
             "--enable-debug-build") or exit(false)
    end
    system("#{make} > #{File::NULL}") or exit(false)
  end
end

$LOAD_PATH.unshift(build_dir.to_s)
$LOAD_PATH.unshift(lib_dir.to_s)

require_relative "helper"

ENV["TEST_UNIT_MAX_DIFF_TARGET_STRING_SIZE"] ||= "10000"

exit(Test::Unit::AutoRunner.run(true, test_dir.to_s))

Version data entries

30 entries across 30 versions & 1 rubygems

Version Path
red-arrow-18.1.0 test/run-test.rb
red-arrow-18.0.0 test/run-test.rb
red-arrow-17.0.0 test/run-test.rb
red-arrow-16.0.0 test/run-test.rb
red-arrow-15.0.2 test/run-test.rb
red-arrow-15.0.1 test/run-test.rb
red-arrow-15.0.0 test/run-test.rb
red-arrow-14.0.2 test/run-test.rb
red-arrow-14.0.1 test/run-test.rb
red-arrow-14.0.0 test/run-test.rb
red-arrow-13.0.0 test/run-test.rb
red-arrow-12.0.1 test/run-test.rb
red-arrow-12.0.0 test/run-test.rb
red-arrow-11.0.0 test/run-test.rb
red-arrow-10.0.1 test/run-test.rb
red-arrow-10.0.0 test/run-test.rb
red-arrow-9.0.0 test/run-test.rb
red-arrow-8.0.0 test/run-test.rb
red-arrow-7.0.0 test/run-test.rb
red-arrow-6.0.1 test/run-test.rb