Skip to content
Permalink
Browse files
[Truffle] JT: Add test pe
  • Loading branch information
eregon committed Jan 27, 2015
1 parent 0251509 commit 9bf06cf5656d15150636f9f78c811257ff4c49d4
Showing 1 changed file with 13 additions and 0 deletions.
@@ -65,6 +65,7 @@ def help
puts 'jt test fast run all specs except sub-processes, GC, sleep, ...'
puts 'jt test spec/ruby/language run specs in this directory'
puts 'jt test spec/ruby/language/while_spec.rb run specs in this file'
puts 'jt test pe run partial evaluation tests'
puts 'jt tag spec/ruby/language tag failing specs in this directory'
puts 'jt tag spec/ruby/language/while_spec.rb tag failing specs in this file'
puts 'jt untag spec/ruby/language untag passing specs in this directory'
@@ -111,6 +112,8 @@ def run(*args)
end

def test(*args)
return test_pe if args == ['pe']

options = %w[--excl-tag fails]
if args.first == 'fast'
args.shift
@@ -120,6 +123,16 @@ def test(*args)
mspec 'run', *options, *args
end

def test_pe
run(*%w[
--graal
-J-G:+TruffleCompilationExceptionsAreThrown
-Xtruffle.proc.binding=false
-Xtruffle.debug.enable_assert_constant=true
test/truffle/pe/pe.rb])
end
private :test_pe

def tag(path, *args)
mspec 'tag', '--add', 'fails', '--fail', path, *args
end

0 comments on commit 9bf06cf

Please sign in to comment.