Sha256: d64d98e693e53608cbb2025961ea105d515e1d1e4141c5e9467442b7e8645ddd

Contents?: true

Size: 553 Bytes

Versions: 11

Compression:

Stored size: 553 Bytes

Contents

#!/usr/bin/env ruby

source_dir = File.expand_path(File.join(__dir__, ".."))
build_dir = File.expand_path(".")
ext_dir = File.join(build_dir, "ext", "cairo")
lib_dir = File.join(source_dir, "lib")
test_dir = File.join(source_dir, "test")

if system("which make >/dev/null 2>&1")
  Dir.chdir(build_dir) do
    if File.exist?("Makefile")
      system("make > /dev/null") or exit(1)
    end
  end
end

require "test-unit"

$LOAD_PATH.unshift(ext_dir)
$LOAD_PATH.unshift(lib_dir)

require_relative "helper"

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

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
cairo-1.17.13 test/run-test.rb
cairo-1.17.12 test/run-test.rb
cairo-1.17.11 test/run-test.rb
cairo-1.17.10 test/run-test.rb
cairo-1.17.9 test/run-test.rb
cairo-1.17.8 test/run-test.rb
cairo-1.17.7 test/run-test.rb
cairo-1.17.6 test/run-test.rb
cairo-1.17.5 test/run-test.rb
cairo-1.17.4 test/run-test.rb
cairo-1.16.6 test/run-test.rb