arm tests back on line
This commit is contained in:
parent
94e4f3a9bf
commit
22727ba150
@ -41,7 +41,7 @@ module Mains
|
|||||||
if `uname -a`.include?("torsten")
|
if `uname -a`.include?("torsten")
|
||||||
@linker = "arm-linux-gnu-ld" #on fedora
|
@linker = "arm-linux-gnu-ld" #on fedora
|
||||||
end
|
end
|
||||||
return false #Disabling for a moment unless ENV["TEST_ARM"]
|
return unless ENV["TEST_ARM"] or ENV["TEST_ALL"]
|
||||||
begin
|
begin
|
||||||
`#{@qemu} -version`
|
`#{@qemu} -version`
|
||||||
`#{@linker} -v`
|
`#{@linker} -v`
|
||||||
|
@ -4,7 +4,7 @@ require_relative 'helper'
|
|||||||
# mains dir.
|
# mains dir.
|
||||||
# If you just pop a file in the source directory, all tests will run.
|
# 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.
|
# 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.
|
# one test that you work on.
|
||||||
|
|
||||||
# After getting the test to run, copy paste the whole code into a file in source and revert
|
# 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
13
test/mains/test_while.rb
Normal 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
|
Loading…
Reference in New Issue
Block a user