Sha256: 2c369ffaf49eb662dcfe5fe78979df9cead10ae315a66597c745f7b15a12c68f

Contents?: true

Size: 552 Bytes

Versions: 2

Compression:

Stored size: 552 Bytes

Contents

require 'rake/testtask'

namespace :test do
  Rake::TestTask.new(:gtk3) do |t|
    t.libs = ['lib']
    t.test_files = FileList['test/**/*_test.rb']
    t.ruby_opts += ['-w', '-Itest']
  end

  Rake::TestTask.new(:gtk2) do |t|
    t.libs = ['lib']
    t.test_files = FileList['test/**/*_test.rb']
    t.ruby_opts += ['-w', '-Itest']
  end

  task gtk2: :set_gtk_version_2

  task :set_gtk_version_2 do
    ENV['GTK_VERSION'] = '2'
  end

  task :sleep do
    sleep 1
  end
end

desc 'Run unit tests'
task test: ['test:gtk3', 'test:sleep', 'test:gtk2']

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
gir_ffi-gtk-0.11.0 tasks/test.rake
gir_ffi-gtk-0.10.0 tasks/test.rake