Sha256: 345092a093f19b7052cfa7300a14494f6155ef242c73d246a2280e61f7403f30

Contents?: true

Size: 992 Bytes

Versions: 18

Compression:

Stored size: 992 Bytes

Contents

#!/usr/bin/env ruby

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

glib_base = File.join(ruby_gnome2_base, "glib2")
atk_base = File.join(ruby_gnome2_base, "atk")
pango_base = File.join(ruby_gnome2_base, "pango")
gdk_pixbuf_base = File.join(ruby_gnome2_base, "gdk_pixbuf2")
gtk_base = File.join(ruby_gnome2_base, "gtk2")

[[glib_base, "glib2"],
 [atk_base, "atk"],
 [pango_base, "pango"],
 [gdk_pixbuf_base, "gdk_pixbuf2"],
 [gtk_base, "gtk2"]].each do |target, module_name|
  if system("which make > /dev/null")
    `make -C #{target.dump} > /dev/null` or exit(false)
  end
  $LOAD_PATH.unshift(File.join(target, "ext", module_name))
  $LOAD_PATH.unshift(File.join(target, "lib"))
end

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

$LOAD_PATH.unshift(File.join(gtk_base, "test"))
require 'gtk-test-utils'

require 'gtk2'

exit Test::Unit::AutoRunner.run(true, File.join(gtk_base, "test"))

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
gtk2-3.1.1-x64-mingw32 test/run-test.rb
gtk2-3.1.1-x86-mingw32 test/run-test.rb
gtk2-3.1.1 test/run-test.rb
gtk2-3.1.0-x64-mingw32 test/run-test.rb
gtk2-3.1.0-x86-mingw32 test/run-test.rb
gtk2-3.1.0 test/run-test.rb
gtk2-3.0.9-x64-mingw32 test/run-test.rb
gtk2-3.0.9-x86-mingw32 test/run-test.rb
gtk2-3.0.9 test/run-test.rb
gtk2-3.0.8-x86-mingw32 test/run-test.rb
gtk2-3.0.8-x64-mingw32 test/run-test.rb
gtk2-3.0.8 test/run-test.rb
gtk2-3.0.7-x86-mingw32 test/run-test.rb
gtk2-3.0.7-x64-mingw32 test/run-test.rb
gtk2-3.0.7 test/run-test.rb
gtk2-3.0.6-x64-mingw32 test/run-test.rb
gtk2-3.0.6-x86-mingw32 test/run-test.rb
gtk2-3.0.6 test/run-test.rb