Rakefile in bitcoin-ruby-0.0.5 vs Rakefile in bitcoin-ruby-0.0.6
- old
+ new
@@ -27,9 +27,14 @@
require 'matrix'
specs = PROJECT_SPECS
#specs.delete_if{|i| File.basename(i) == 'storage_spec.rb' } # skip for now
+ # E.g. SPEC=specs/bitcoin/script/ to run script-related specs only.
+ if spec_mask = ENV["SPEC"]
+ specs.delete_if{|s| !s[spec_mask] }
+ end
+
some_failed = false
specs_size = specs.size
len = specs.map{|s| s.size }.sort.last
total_tests = total_assertions = total_failures = total_errors = 0
totals = Vector[0, 0, 0, 0]