Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Removed rake spec commands. See rake spec for details.

  • Loading branch information...
commit 2e737d7380cc2d9508bc7ab4b8ef04255b675bee 1 parent aa2bd09
@brixen brixen authored
Showing with 58 additions and 114 deletions.
  1. +58 −1 Rakefile
  2. +0 −113 rakelib/spec.rake
View
59 Rakefile
@@ -12,7 +12,9 @@ RUBINIUS_BASE = File.expand_path(File.dirname(__FILE__))
$: << "lib"
-task :default => %w[build vm:test spec:sydney]
+task :default => %w[build vm:test] do
+ system "bin/mspec ci"
+end
desc "Compile the given ruby file into a .rbc file"
task :compile_ruby, :file do |task, args|
@@ -179,3 +181,58 @@ namespace :clean do
rm_f files, :verbose => $verbose unless files.empty?
end
end
+
+desc "Documents why no spec tasks exist"
+task :spec do
+ puts <<-EOM
+
+ The spec and spec:xxx commands are deprecated (and removed).
+ Use bin/mspec directly. MSpec provides 'psuedo-directories',
+ which are labels that refer to sets of specs to run. Refer
+ to spec/default.mspec, spec/full.mspec and the MSpec docs
+ for full details.
+
+ The following are likely scenarios for running the specs.
+ Unless -t <target> is passed to mspec, bin/rbx is run.
+
+ Run the CI specs that are run with the default 'rake' command
+
+ bin/mspec ci
+
+ Run _all_ the CI spec:
+
+ bin/mspec ci -B full
+
+ Run all the frozen specs:
+
+ bin/mspec
+
+ Run all the frozen Array specs:
+
+ bin/mspec core/array
+ OR
+ bin/mspec spec/frozen/core/array
+
+ Run spec/frozen/core/array/append_spec.rb:
+
+ bin/mspec core/array/append
+ OR
+ bin/mspec spec/frozen/core/array/append_spec.rb
+
+ Run all the compiler specs:
+
+ bin/mspec :compiler
+
+ Run all the [language, core, library, capi] specs:
+
+ bin/mspec :language
+ bin/mspec :core
+ ...
+
+ Run all the spec/ruby specs using the MRI on your path
+ (assuming you have run 'rake rubyspec:update'):
+
+ bin/mspec -tr :ruby
+
+ EOM
+end
View
113 rakelib/spec.rake
@@ -1,113 +0,0 @@
-# -*- ruby -*-
-
-def spec_target
- target = ENV['SPEC_TARGET'] || 'rubinius'
- ENV['RBX_RUNTIME'] = 'runtime'
- if target == 'rubinius' then
- system %(bin/rbx -e 'puts "rubinius build: \#{Rubinius::BUILDREV}"')
- end
- target
-end
-
-desc "Run all 'known good' specs (task alias for spec:ci)"
-task :spec => 'spec:ci'
-
-namespace :spec do
- namespace :setup do
- # Setup for 'Subtend' specs. No need to call this yourself.
- task :capi do
- Dir["spec/capi/**/Rakefile"].each do |rakefile|
- sh "rake -f #{rakefile}"
- end
- end
- end
-
- desc "Run all 'known good' specs with SydneyParser"
- task :sydney do
- warn "*** Running with SydneyParser enabled ***"
- ENV['SYDNEY'] = '1'
-
- sh "bin/mspec ci -t #{spec_target}"
- end
-
- desc "Run all rubyspecs under MatzRuby"
- task :check do
- sh "bin/mspec -t ruby #{spec_ruby}"
- end
-
- desc "Run continuous integration examples"
- task :ci => :build do
- sh "bin/mspec ci -t #{spec_target}"
- end
-
- desc "Run continuous integration examples including stdlib"
- task :full => :build do
- clear_compiler
- sh "bin/mspec ci -t #{spec_target} -B full.mspec"
- end
-
- desc "Run continuous integration examples including stdlib with SydneyParser"
- task :full_sydney => :build do
- warn "*** Running with SydneyParser enabled ***"
- ENV['SYDNEY'] = '1'
-
- clear_compiler
- sh "bin/mspec ci -t #{spec_target} -B full.mspec"
- end
-
- desc "Run continuous integration examples including stdlib on multiple processors"
- task :multi => :build do
- clear_compiler
- sh "bin/mspec ci -j -t #{spec_target} -B full.mspec"
- end
-
- spec_targets = %w(core language library parser rubinius)
- # Build a spec:<task_name> for each group of Rubinius specs
- spec_targets.each do |group|
- desc "Run #{group} examples"
- task group do
- sh "bin/mspec spec/#{group}"
- end
- end
-
- desc "Run compiler examples"
- task :compiler do
- files = Dir["spec/compiler/*_spec.rb"].reject { |s| s =~ /new_compiler/ }
-
- sh "bin/mspec -tr #{files.join(' ')}"
- end
-
-
- desc "Run capi (Rubinius C API) examples"
- task :capi => "spec:setup:capi" do
- sh "bin/mspec spec/capi"
- end
-
- # Specdiffs to make it easier to see what your changes have affected :)
- desc 'Run specs and produce a diff against current base'
- task :diff => 'diff:run'
-
- namespace :diff do
- desc 'Run specs and produce a diff against current base'
- task :run do
- system 'bin/mspec -f ci -o spec/reports/specdiff.txt spec'
- system 'diff -u spec/reports/base.txt spec/reports/specdiff.txt'
- system 'rm spec/reports/specdiff.txt'
- end
-
- desc 'Replace the base spec file with a new one'
- task :replace do
- system 'bin/mspec -f ci -o spec/reports/base.txt spec'
- end
- end
-
- desc "Run the rspec specs for mspec"
- task :mspec do
- # Use the rspec spec runner (see mspec/README; gem install rspec)
- sh 'spec ./mspec/spec'
- end
-
- task :r2r do
- puts ARGV.inspect
- end
-end
Please sign in to comment.
Something went wrong with that request. Please try again.