rubyx/test/elf/helper.rb
Torsten Rüger 1ee01622c3 Builtin is no more, final conversions done
All preloading where it needs to be
(some)tests for the preload
split compiler test
remembered binary tests (usually just run on travis)
2019-09-13 20:34:41 +03:00

20 lines
445 B
Ruby

require_relative "../helper"
module Elf
class FullTest < MiniTest::Test
def in_space(input)
"class Space; #{input} ; end"
end
def as_main(input)
in_space("def main(arg);#{input};end")
end
def check(input, file)
linker = RubyX::RubyXCompiler.new(RubyX.default_test_options).ruby_to_binary( input , :arm )
writer = Elf::ObjectWriter.new(linker)
writer.save "test/#{file}.o"
end
end
end