Sha256: d357ff37018088087550d95f07612c7794e870fcbf72bd394fe8f91d8f3f101b

Contents?: true

Size: 924 Bytes

Versions: 31

Compression:

Stored size: 924 Bytes

Contents

#!/usr/bin/env ruby

base_dir = File.expand_path(File.join(File.dirname(__FILE__), ".."))

have_make = system("which make > /dev/null")

glib_dir = File.expand_path(File.join(base_dir, "..", "glib2"))
gdk_pixbuf_dir = File.expand_path(File.join(base_dir, "..", "gdk_pixbuf2"))
pango_dir = File.join(File.join(base_dir, ".." , "pango"))

$LOAD_PATH.unshift(File.join(glib_dir, "test"))
require 'glib-test-init'

[[gdk_pixbuf_dir, "gdk_pixbuf2"],
 [pango_dir, "pango"],
 [glib_dir, "glib2"],
 [base_dir, "poppler"]].each do |dir, module_name|
  if have_make
    system("cd #{dir.dump} && make > /dev/null") or exit(false)
  end
  $LOAD_PATH.unshift(File.join(dir, "ext", module_name))
  $LOAD_PATH.unshift(File.join(dir, "lib"))
end
require "poppler"

$LOAD_PATH.unshift(File.join(base_dir, "test"))
require 'poppler-test-utils'
class Test::Unit::TestCase
  include PopplerTestUtils
end

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

Version data entries

31 entries across 31 versions & 1 rubygems

Version Path
poppler-3.0.5-x64-mingw32 test/run-test.rb
poppler-3.0.5-x86-mingw32 test/run-test.rb
poppler-3.0.5 test/run-test.rb
poppler-3.0.4-x64-mingw32 test/run-test.rb
poppler-3.0.4-x86-mingw32 test/run-test.rb
poppler-3.0.4 test/run-test.rb
poppler-3.0.3-x64-mingw32 test/run-test.rb
poppler-3.0.3-x86-mingw32 test/run-test.rb
poppler-3.0.3 test/run-test.rb
poppler-3.0.2-x64-mingw32 test/run-test.rb
poppler-3.0.2-x86-mingw32 test/run-test.rb
poppler-3.0.2 test/run-test.rb
poppler-3.0.1-x64-mingw32 test/run-test.rb
poppler-3.0.1-x86-mingw32 test/run-test.rb
poppler-3.0.1 test/run-test.rb
poppler-3.0.0-x64-mingw32 test/run-test.rb
poppler-3.0.0-x86-mingw32 test/run-test.rb
poppler-2.2.5-x64-mingw32 test/run-test.rb
poppler-2.2.5-x86-mingw32 test/run-test.rb
poppler-2.2.5 test/run-test.rb