Running tests on binary through qemu (system, no ssh)

This commit is contained in:
2019-08-18 12:39:23 +03:00
parent 3fa696b527
commit c9d77a29b2
3 changed files with 28 additions and 58 deletions

View File

@ -91,15 +91,14 @@ class RubyXC < Thor
def execute(file)
outfile = compile(file)
system "arm-linux-gnueabihf-ld -N #{outfile}"
system "arm-linux-gnueabi-ld -N #{outfile}"
puts "Linked ok, now running #{file}"
system "qemu-arm ./a.out"
system "qemu-arm ./a.out ; echo $?"
end
private
def extract_options
opt = { factory: options[:parfait] || 1024 }
puts opt
return {parfait: opt}
end