1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82
|
# ****************************************************************************
#
# Copyright (c) Microsoft Corporation.
#
# This source code is subject to terms and conditions of the Microsoft Public License. A
# copy of the license can be found in the License.html file at the root of this distribution. If
# you cannot locate the Microsoft Public License, please send an email to
# ironruby@microsoft.com. By using this source code in any fashion, you are agreeing to be bound
# by the terms of the Microsoft Public License.
#
# You must not remove this notice, or any other, from this software.
#
#
# ****************************************************************************
require "#{ENV['MERLIN_ROOT']}/Languages/Ruby/Scripts/irtests"
namespace :test do
desc "remove output files and generated debugging info from tests directory"
task :clean do
Dir.chdir("#{project_root + 'Languages/Ruby/Tests'}") do
exec "del /s *.log"
exec "del /s *.pdb"
exec "del /s *.exe"
exec "del /s *.dll"
end
end
desc "Run the IronRuby Dev unit test suite"
task :smoke => :happy do
load "#{ENV['MERLIN_ROOT']}\\Languages\\Ruby\\Tests\\Scripts\\irtest.rb"
end
desc "Run mspec psuedo-folders :lang, :cli, :netinterop, :cominterop, :thread, :netcli"
task :spec_a => :happy do
IRTest.test(:RubySpec_A)
end
desc "Run mspec psuedo-folders :core1, :lib1"
task :spec_b => :happy do
IRTest.test(:RubySpec_B)
end
desc "Run mspec psuedo-folders :core2, lib2"
task :spec_c => :happy do
IRTest.test(:RubySpec_C)
end
desc "Run all mspecs"
task :specs => [:spec_a,:spec_b,:spec_c]
desc "Run legacy Ruby tests"
task :legacy => :happy do
IRTest.test(:Legacy)
end
desc "Run app specific tests (Rubygems, Rake and YAML)"
task :apps => [:gems, :rake, :yaml]
desc "Run rake tests"
task :rake => :happy do
IRTest.test(:Rake)
end
desc "Run gems tests"
task :gems => :happy do
IRTest.test(:RubyGems)
end
desc "Run Yaml tests"
task :yaml => :happy do
IRTest.test(:Yaml)
end
desc "(NOT IMPLEMENTED) Run tests corresponding to samples"
task :samples => :happy do
end
desc "Run all tests"
task :all => [:compile, "compile:ironpython", :smoke, :legacy, :spec_a, :spec_b, :spec_c, :apps]
end
task :default => "test:all"
|