Sha256: 5b79e25a57bdc42e648b8a88a4be5ba4fd4be034646d55ff32c18caee15a1982

Contents?: true

Size: 896 Bytes

Versions: 67

Compression:

Stored size: 896 Bytes

Contents

#!/usr/bin/env ruby

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

if system("which make > /dev/null")
  system("cd #{base_dir.dump} && make > /dev/null") or exit(1)
end

glib_dir = File.expand_path(File.join(base_dir, "..", "glib2"))
gdk_pixbuf_dir = File.expand_path(File.join(base_dir, "..", "gdk_pixbuf2"))
gtk_dir = File.expand_path(File.join(base_dir, "..", "gtk2"))

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

[[gtk_dir, "gtk2"],
 [gdk_pixbuf_dir, "gdk_pibuf2"],
 [glib_dir, "glib2"],
 [base_dir, "poppler"]].each do |dir, module_name|
  $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

67 entries across 67 versions & 1 rubygems

Version Path
poppler-2.0.2-x86-mingw32 test/run-test.rb
poppler-2.0.2 test/run-test.rb
poppler-2.0.1-x86-mingw32 test/run-test.rb
poppler-2.0.1 test/run-test.rb
poppler-2.0.0-x86-mingw32 test/run-test.rb
poppler-2.0.0 test/run-test.rb
poppler-1.2.6-x86-mingw32 test/run-test.rb
poppler-1.2.6 test/run-test.rb
poppler-1.2.5-x86-mingw32 test/run-test.rb
poppler-1.2.5 test/run-test.rb
poppler-1.2.4-x86-mingw32 test/run-test.rb
poppler-1.2.4 test/run-test.rb
poppler-1.2.3-x86-mingw32 test/run-test.rb
poppler-1.2.3 test/run-test.rb
poppler-1.2.2-x86-mingw32 test/run-test.rb
poppler-1.2.2 test/run-test.rb
poppler-1.2.1-x86-mingw32 test/run-test.rb
poppler-1.2.1 test/run-test.rb
poppler-1.2.0-x86-mingw32 test/run-test.rb
poppler-1.2.0 test/run-test.rb