Sha256: e93b370b89bbea72a9e4d9cbc33a97a10ba0649d49e7500be119e41c6947092f

Contents?: true

Size: 440 Bytes

Versions: 4

Compression:

Stored size: 440 Bytes

Contents

if test(?e, PROJ.test.file) or not PROJ.test.files.to_a.empty?
require 'rake/testtask'

namespace :test do

  Rake::TestTask.new(:run) do |t|
    t.libs = PROJ.libs
    t.test_files = if test(?f, PROJ.test.file) then [PROJ.test.file]
                   else PROJ.test.files end
    t.ruby_opts += PROJ.ruby_opts
    t.ruby_opts += PROJ.test.opts
  end

end  # namespace :test

desc 'Alias to test:run'
task :test => 'test:run'

end

# EOF

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
gir_ffi-0.0.4 tasks/test.rake
gir_ffi-0.0.3 tasks/test.rake
gir_ffi-0.0.2 tasks/test.rake
gir_ffi-0.0.1 tasks/test.rake