arm tests back on line

This commit is contained in:
Torsten 2020-03-26 20:30:47 +02:00
parent 94e4f3a9bf
commit 22727ba150
3 changed files with 15 additions and 2 deletions

View File

@ -41,7 +41,7 @@ module Mains
if `uname -a`.include?("torsten")
@linker = "arm-linux-gnu-ld" #on fedora
end
return false #Disabling for a moment unless ENV["TEST_ARM"]
return unless ENV["TEST_ARM"] or ENV["TEST_ALL"]
begin
`#{@qemu} -version`
`#{@linker} -v`

View File

@ -4,7 +4,7 @@ require_relative 'helper'
# mains dir.
# If you just pop a file in the source directory, all tests will run.
# This is fine if all is fine. But if all is fine, you are not developing, just playing.
# So when you really need to itereate editing this gives guard auto-run and just of that
# So when you really need to iterate editing this gives guard auto-run and just of that
# one test that you work on.
# After getting the test to run, copy paste the whole code into a file in source and revert

13
test/mains/test_while.rb Normal file
View File

@ -0,0 +1,13 @@
require_relative "helper"
module Mains
class WhileTester < MiniTest::Test
include MainsHelper
def test_while
@preload = "Integer.gt;Integer.plus"
@input = as_main 'a = -1; while( 0 > a); a = 1 + a;end;return a'
assert_result 0 , ""
end
end
end