jasmine-headless-webkit/ext/jasmine-webkit-specrunner/test.rb

25 lines
377 B
Ruby
Raw Permalink Normal View History

2011-08-03 16:26:39 +00:00
#!/usr/bin/env ruby
2011-08-29 17:35:36 +00:00
require 'fileutils'
2011-08-23 23:49:47 +00:00
system %{make clean}
2011-08-29 17:35:36 +00:00
$: << File.expand_path("../../../lib", __FILE__)
require 'qt/qmake'
2011-08-03 16:26:39 +00:00
Dir['*_test.pro'].each do |test|
2011-08-29 17:35:36 +00:00
FileUtils.rm_f('jhw-test')
2011-08-23 23:49:47 +00:00
Qt::Qmake.make!('jasmine-headless-webkit', test)
2011-08-29 17:35:36 +00:00
if File.file?('jhw-test')
system %{./jhw-test}
if $?.exitstatus != 0
exit 1
end
else
2011-08-03 16:26:39 +00:00
exit 1
end
end