25 lines
377 B
Ruby
25 lines
377 B
Ruby
#!/usr/bin/env ruby
|
|
|
|
require 'fileutils'
|
|
|
|
system %{make clean}
|
|
|
|
$: << File.expand_path("../../../lib", __FILE__)
|
|
require 'qt/qmake'
|
|
|
|
Dir['*_test.pro'].each do |test|
|
|
FileUtils.rm_f('jhw-test')
|
|
|
|
Qt::Qmake.make!('jasmine-headless-webkit', test)
|
|
|
|
if File.file?('jhw-test')
|
|
system %{./jhw-test}
|
|
if $?.exitstatus != 0
|
|
exit 1
|
|
end
|
|
else
|
|
exit 1
|
|
end
|
|
end
|
|
|