Sha256: b431fea01264ad94f12f7ef31664b4e9100d439cd0cbe5e5c336b579d9ca531c

Contents?: true

Size: 758 Bytes

Versions: 1

Compression:

Stored size: 758 Bytes

Contents

# Copyright (c) 2016-2017 Minqi Pan
# 
# This file is part of Ruby Compiler, distributed under the MIT License
# For full terms see the included LICENSE file

require 'shellwords'
require 'tmpdir'
require 'fileutils'
require 'json'
require 'open3'

module Ruby
  class Compiler
    class Test
      def initialize(tmpdir, options = {})
        Utils.prepare_tmpdir(tmpdir)
        @vendor_ruby = File.join(tmpdir, 'ruby')
        @options = options
      end
      
      def run!
        Utils.chdir(@vendor_ruby) do
          Utils.run("make test TESTOPTS=--color=never")
          Utils.run("make test-all TESTOPTS='-q -j3 --color=never --job-status=normal'")
          Utils.run("make test-rubyspec MSPECOPT=-fm")
        end
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
ruby-compiler-0.1.1 lib/ruby/compiler/test.rb