Permalink
Browse files

Fixed spec:compiler to run -tr. Added to default task. Fixed :script …

…breakage
  • Loading branch information...
1 parent 7859acc commit 574448ceee148be73a5fcf1e2ea8d0d78eb69115 Ryan Davis committed Sep 12, 2008
Showing with 9 additions and 3 deletions.
  1. +1 −1 Rakefile
  2. +1 −1 lib/compiler/compiler.rb
  3. +7 −1 rakelib/spec.rake
View
@@ -14,7 +14,7 @@ RUBINIUS_BASE = File.expand_path(File.dirname(__FILE__))
# require 'rakelib/const_generator'
# require 'rakelib/types_generator'
-task :default => %w[build vm:test]
+task :default => %w[build vm:test spec:compiler]
desc "Compile the given ruby file into a .rbc file"
task :compile_ruby, :file do |task, args|
View
@@ -215,7 +215,7 @@ def convert_sexp(sexp)
def into_script(sexp)
begin
- convert_sexp([:script, sexp])
+ convert_sexp(s(:script, sexp))
rescue Object => e
puts "Compilation error detected: #{e.message}"
puts " near #{@file}:#{@line}"
View
@@ -117,7 +117,7 @@ namespace :spec do
sh "bin/mspec ci -j -t #{spec_target} -B full.mspec"
end
- spec_targets = %w(compiler core language library parser rubinius)
+ 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"
@@ -126,6 +126,12 @@ namespace :spec do
end
end
+ desc "Run compiler examples"
+ task :compiler do
+ sh "bin/mspec -tr spec/compiler"
+ end
+
+
desc "Run subtend (Rubinius C API) examples"
task :subtend => "spec:setup:subtend" do
sh "bin/mspec spec/rubinius/subtend"

0 comments on commit 574448c

Please sign in to comment.