rubyx/test/elf/helper.rb
Torsten Rüger 91995dc1b3 make elf symbols optional
and default to false. Smaller executables  by at least half
also add option for compiler cli
2019-09-03 02:02:21 +03:00

26 lines
522 B
Ruby

require_relative "../helper"
require 'net/ssh'
require 'net/scp'
module Elf
class FullTest < MiniTest::Test
DEBUG = false
def setup
end
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