hoist parfait boot out of the machine boot
This commit is contained in:
@ -3,6 +3,7 @@ require_relative "helper"
|
||||
module Risc
|
||||
class TestCodeListenerFull < MiniTest::Test
|
||||
def setup
|
||||
Parfait.boot!
|
||||
@machine = Risc.machine.boot
|
||||
@binary = Parfait::BinaryCode.new(1)
|
||||
@method = Parfait.object_space.types.values.first.methods
|
||||
|
@ -3,6 +3,7 @@ require_relative "helper"
|
||||
module Risc
|
||||
class TestPositionTranslated < MiniTest::Test
|
||||
def setup
|
||||
Parfait.boot!
|
||||
machine = Risc.machine.boot
|
||||
machine.translate(:interpreter)
|
||||
@binary = Parfait::BinaryCode.new(1)
|
||||
|
@ -3,6 +3,7 @@ require_relative "helper"
|
||||
module Risc
|
||||
class TestMachinePositions < MiniTest::Test
|
||||
def setup_for(platform)
|
||||
Parfait.boot!
|
||||
@machine = Risc.machine.boot
|
||||
@machine.translate(platform)
|
||||
@machine.position_all
|
||||
|
@ -4,6 +4,7 @@ module Risc
|
||||
class TestCodeBuilder < MiniTest::Test
|
||||
|
||||
def setup
|
||||
Parfait.boot!
|
||||
Risc.machine.boot
|
||||
init = Parfait.object_space.get_init
|
||||
@builder = Risc::RiscCompiler.new( init ).code_builder(init)
|
||||
@ -100,6 +101,7 @@ module Risc
|
||||
class TestCompilerBuilder < MiniTest::Test
|
||||
|
||||
def setup
|
||||
Parfait.boot!
|
||||
Risc.machine.boot
|
||||
@init = Parfait.object_space.get_init
|
||||
@builder = Risc::RiscCompiler.new( @init ).compiler_builder(@init)
|
||||
|
@ -4,6 +4,7 @@ module Risc
|
||||
class TestCollector < MiniTest::Test
|
||||
|
||||
def setup
|
||||
Parfait.boot!
|
||||
@machine = Risc.machine.boot
|
||||
end
|
||||
|
||||
|
@ -18,6 +18,7 @@ module Risc
|
||||
end
|
||||
class TestInterpreterStarts < MiniTest::Test
|
||||
def setup
|
||||
Parfait.boot!
|
||||
@machine = Risc.machine.boot
|
||||
@machine.translate(:interpreter)
|
||||
@machine.position_all
|
||||
@ -37,6 +38,7 @@ module Risc
|
||||
end
|
||||
class TestInterpreterTicks < MiniTest::Test
|
||||
def setup
|
||||
Parfait.boot!
|
||||
@machine = Risc.machine.boot
|
||||
@machine.translate(:interpreter)
|
||||
@machine.position_all
|
||||
|
@ -21,6 +21,7 @@ module Risc
|
||||
class TestIdentityTranslator < MiniTest::Test
|
||||
|
||||
def setup
|
||||
Parfait.boot!
|
||||
@machine = Risc.machine.boot
|
||||
@translator = IdentityTranslator.new
|
||||
end
|
||||
|
@ -4,6 +4,7 @@ module Risc
|
||||
class TestMachineObjects < MiniTest::Test
|
||||
|
||||
def setup
|
||||
Parfait.boot!
|
||||
@machine = Risc.machine.boot
|
||||
end
|
||||
def test_objects
|
||||
@ -36,6 +37,7 @@ module Risc
|
||||
end
|
||||
class TestMachinePos < MiniTest::Test
|
||||
def setup
|
||||
Parfait.boot!
|
||||
@machine = Risc.machine.boot
|
||||
@machine.translate(:arm)
|
||||
@machine.position_all
|
||||
@ -48,6 +50,7 @@ module Risc
|
||||
end
|
||||
class TestMachineInit < MiniTest::Test
|
||||
def setup
|
||||
Parfait.boot!
|
||||
@machine = Risc.machine.boot
|
||||
@machine.translate(:arm)
|
||||
@machine.position_all
|
||||
|
@ -5,7 +5,7 @@ module Risc
|
||||
include ScopeHelper
|
||||
|
||||
def setup
|
||||
Risc.machine.boot
|
||||
Parfait.boot!
|
||||
end
|
||||
|
||||
def create_method
|
||||
|
@ -17,6 +17,7 @@ module Risc
|
||||
class TestTextWriterPositions < MiniTest::Test
|
||||
|
||||
def setup
|
||||
Parfait.boot!
|
||||
@machine = Risc.machine.boot
|
||||
@machine.translate(:arm)
|
||||
@machine.position_all
|
||||
|
@ -4,6 +4,7 @@ module Risc
|
||||
class TestTranslator < MiniTest::Test
|
||||
|
||||
def setup
|
||||
Parfait.boot!
|
||||
@machine = Risc.machine.boot
|
||||
@translator = Arm::Translator.new
|
||||
end
|
||||
|
Reference in New Issue
Block a user