This repository has been archived on 2021-09-15 . You can view files and clone it, but cannot push or open issues or pull requests.
22 lines
488 B
Ruby
22 lines
488 B
Ruby
#!/usr/bin/env ruby
|
|||
|
|||
base = File.expand_path(File.join(File.dirname(__FILE__)))
|
|||
top = File.expand_path(File.join(base, ".."))
|
|||
|
|||
$LOAD_PATH.unshift(top)
|
|||
require 'test/glib-test-init'
|
|||
|
|||
if system("which make > /dev/null")
|
|||
system("cd #{top.dump} && make > /dev/null") or exit(1)
|
|||
end
|
|||
|
|||
$LOAD_PATH.unshift(File.join(top, "ext", "glib2"))
|
|||
$LOAD_PATH.unshift(File.join(top, "lib"))
|
|||
|
|||
$LOAD_PATH.unshift(base)
|
|||
require 'glib-test-utils'
|
|||
|
|||
require 'glib2'
|
|||
|
|||
exit Test::Unit::AutoRunner.run(true, base)
|