Skip to content

Commit

Permalink
Added tags for 'rbx' and 'ruby' implementations.
Browse files Browse the repository at this point in the history
Ideally, all specs would pass. But it will take some time to get the specs
passing, so we'll add tags for now so we have a known good set of specs.
  • Loading branch information
brixen committed Oct 25, 2010
1 parent 68f843e commit 2f7c647
Show file tree
Hide file tree
Showing 30 changed files with 65 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Rakefile
Expand Up @@ -6,7 +6,7 @@ BASE_DIR = File.expand_path('../', __FILE__)
RUBY = ENV["RUBY"] || "rbx"

def spec(target)
sh("mspec -t #{target} -T -I#{BASE_DIR} spec") { |ok, res| }
sh("mspec ci -t #{target} -T -I#{BASE_DIR} spec") { |ok, res| }
end

desc "Run the specs with $RUBY or 'rbx' (default)"
Expand Down
6 changes: 6 additions & 0 deletions spec/default.mspec
Expand Up @@ -3,5 +3,11 @@
require 'spec/custom/guards/engine'

class MSpecScript
tags_dir = defined?(RUBY_ENGINE) ? RUBY_ENGINE : 'ruby'
set :tags_patterns, [
[%r(spec/), "spec/#{tags_dir}/tags/"],
[/_spec.rb$/, '_tags.txt']
]

set :target, 'rbx'
end
2 changes: 2 additions & 0 deletions spec/rbx/tags/matching/evaluator/character_tags.txt
@@ -0,0 +1,2 @@
fails:Character#match returns the index of the character following the matched substring
fails:Character#match returns 0 when pattern is empty
2 changes: 2 additions & 0 deletions spec/rbx/tags/matching/evaluator/choice_tags.txt
@@ -0,0 +1,2 @@
fails:Choice#match matches the first pattern if both match
fails:Choice#match matches the second pattern if the first does not match
1 change: 1 addition & 0 deletions spec/rbx/tags/matching/evaluator/concatenation_tags.txt
@@ -0,0 +1 @@
fails:Concatenation#match returns the index of the character following the matched substring
1 change: 1 addition & 0 deletions spec/rbx/tags/matching/evaluator/if_tags.txt
@@ -0,0 +1 @@
fails:If#match returns the index of the character following the matched substring
1 change: 1 addition & 0 deletions spec/rbx/tags/matching/evaluator/unless_tags.txt
@@ -0,0 +1 @@
fails:Unless#match returns the index of the character following the matched substring
3 changes: 3 additions & 0 deletions spec/rbx/tags/matching/machine/any_tags.txt
@@ -0,0 +1,3 @@
fails:Any#match returns nil when the subject is empty
fails:Any#match returns nil if there are not N characters to match in the subject
fails:Any#match returns the index of the character following the matched substring
3 changes: 3 additions & 0 deletions spec/rbx/tags/matching/machine/character_tags.txt
@@ -0,0 +1,3 @@
fails:Character#match returns nil when the subject is empty
fails:Character#match returns nil when the subject does not match completely
fails:Character#match returns the index of the character following the matched substring
3 changes: 3 additions & 0 deletions spec/rbx/tags/matching/machine/choice_tags.txt
@@ -0,0 +1,3 @@
fails:Choice#match returns nil if none of the patterns match
fails:Choice#match matches the first pattern if both match
fails:Choice#match matches the second pattern if the first does not match
3 changes: 3 additions & 0 deletions spec/rbx/tags/matching/machine/concatenation_tags.txt
@@ -0,0 +1,3 @@
fails:Concatenation#match returns nil if the first pattern does not match
fails:Concatenation#match returns nil if the second pattern does not match
fails:Concatenation#match returns the index of the character following the matched substring
3 changes: 3 additions & 0 deletions spec/rbx/tags/matching/machine/if_tags.txt
@@ -0,0 +1,3 @@
fails:If#match returns nil if the first pattern does not match
fails:If#match returns nil if the second pattern does not match
fails:If#match returns the index of the character following the matched substring
3 changes: 3 additions & 0 deletions spec/rbx/tags/matching/machine/unless_tags.txt
@@ -0,0 +1,3 @@
fails:Unless#match returns nil if the first pattern does not match
fails:Unless#match returns nil if the second pattern match
fails:Unless#match returns the index of the character following the matched substring
1 change: 1 addition & 0 deletions spec/rbx/tags/matching/rubinius/any_tags.txt
@@ -0,0 +1 @@
fails:Any#match returns the index of the character following the matched substring
2 changes: 2 additions & 0 deletions spec/rbx/tags/matching/rubinius/character_tags.txt
@@ -0,0 +1,2 @@
fails:Character#match returns the index of the character following the matched substring
fails:Character#match returns 0 when pattern is empty
2 changes: 2 additions & 0 deletions spec/rbx/tags/matching/rubinius/choice_tags.txt
@@ -0,0 +1,2 @@
fails:Choice#match matches the first pattern if both match
fails:Choice#match matches the second pattern if the first does not match
1 change: 1 addition & 0 deletions spec/rbx/tags/matching/rubinius/concatenation_tags.txt
@@ -0,0 +1 @@
fails:Concatenation#match returns the index of the character following the matched substring
1 change: 1 addition & 0 deletions spec/rbx/tags/matching/rubinius/if_tags.txt
@@ -0,0 +1 @@
fails:If#match returns the index of the character following the matched substring
1 change: 1 addition & 0 deletions spec/rbx/tags/matching/rubinius/unless_tags.txt
@@ -0,0 +1 @@
fails:Unless#match returns the index of the character following the matched substring
2 changes: 2 additions & 0 deletions spec/ruby/tags/matching/evaluator/character_tags.txt
@@ -0,0 +1,2 @@
fails:Character#match returns the index of the character following the matched substring
fails:Character#match returns 0 when pattern is empty
2 changes: 2 additions & 0 deletions spec/ruby/tags/matching/evaluator/choice_tags.txt
@@ -0,0 +1,2 @@
fails:Choice#match matches the first pattern if both match
fails:Choice#match matches the second pattern if the first does not match
1 change: 1 addition & 0 deletions spec/ruby/tags/matching/evaluator/concatenation_tags.txt
@@ -0,0 +1 @@
fails:Concatenation#match returns the index of the character following the matched substring
1 change: 1 addition & 0 deletions spec/ruby/tags/matching/evaluator/if_tags.txt
@@ -0,0 +1 @@
fails:If#match returns the index of the character following the matched substring
1 change: 1 addition & 0 deletions spec/ruby/tags/matching/evaluator/unless_tags.txt
@@ -0,0 +1 @@
fails:Unless#match returns the index of the character following the matched substring
3 changes: 3 additions & 0 deletions spec/ruby/tags/matching/machine/any_tags.txt
@@ -0,0 +1,3 @@
fails:Any#match returns nil when the subject is empty
fails:Any#match returns nil if there are not N characters to match in the subject
fails:Any#match returns the index of the character following the matched substring
3 changes: 3 additions & 0 deletions spec/ruby/tags/matching/machine/character_tags.txt
@@ -0,0 +1,3 @@
fails:Character#match returns nil when the subject is empty
fails:Character#match returns nil when the subject does not match completely
fails:Character#match returns the index of the character following the matched substring
3 changes: 3 additions & 0 deletions spec/ruby/tags/matching/machine/choice_tags.txt
@@ -0,0 +1,3 @@
fails:Choice#match returns nil if none of the patterns match
fails:Choice#match matches the first pattern if both match
fails:Choice#match matches the second pattern if the first does not match
3 changes: 3 additions & 0 deletions spec/ruby/tags/matching/machine/concatenation_tags.txt
@@ -0,0 +1,3 @@
fails:Concatenation#match returns nil if the first pattern does not match
fails:Concatenation#match returns nil if the second pattern does not match
fails:Concatenation#match returns the index of the character following the matched substring
3 changes: 3 additions & 0 deletions spec/ruby/tags/matching/machine/if_tags.txt
@@ -0,0 +1,3 @@
fails:If#match returns nil if the first pattern does not match
fails:If#match returns nil if the second pattern does not match
fails:If#match returns the index of the character following the matched substring
3 changes: 3 additions & 0 deletions spec/ruby/tags/matching/machine/unless_tags.txt
@@ -0,0 +1,3 @@
fails:Unless#match returns nil if the first pattern does not match
fails:Unless#match returns nil if the second pattern match
fails:Unless#match returns the index of the character following the matched substring

0 comments on commit 2f7c647

Please sign in to comment.