Sha256: 5eb71dd42217838791585bc3f2da572bbfd2a50f56bd40cbc157299e30c4a558

Contents?: true

Size: 502 Bytes

Versions: 1

Compression:

Stored size: 502 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
end

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

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
gir_ffi-gtk-0.9.0 tasks/test.rake