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