a little more minimal elf tests

This commit is contained in:
Torsten Ruger
2016-12-31 15:08:32 +02:00
parent fb414cecd6
commit a2ece04b6d
5 changed files with 31 additions and 17 deletions

View File

@ -6,7 +6,7 @@ class HelloTest < MiniTest::Test
def check
machine = Register.machine.boot
Typed.compile( @input )
machine.collect
machine.collect_space
machine.translate_arm
writer = Elf::ObjectWriter.new
writer.save "test/hello.o"
@ -15,6 +15,6 @@ class HelloTest < MiniTest::Test
def test_string_put
@input = s(:statements, s(:return, s(:call, s(:name, :putstring), s(:arguments),
s(:receiver, s(:string, "Hello again\\n")))))
# check
check
end
end