rubyx/test/mains
Torsten Ruger 5b2c7745fe move the methods test to mains
previous commit made the mains tests more general
this joins methods tests here
so we can run them on arm too
fix #11
2018-08-18 20:06:15 +03:00
..
source move the methods test to mains 2018-08-18 20:06:15 +03:00
helper.rb adds arm testing of same files 2018-06-24 17:10:39 +03:00
README.md adds arm testing of same files 2018-06-24 17:10:39 +03:00
test_arm.rb move the methods test to mains 2018-08-18 20:06:15 +03:00
test_interpreted.rb mains tests can include any code 2018-08-18 19:42:14 +03:00
test_new.rb new test to run out of ints 2018-08-08 12:03:17 +03:00

Mains testing

Test methods by their output and exit codes (return, since it is the main).

There are only two tests here, one for interpreter, one for arm. Both run the same tests. The actual ruby code that is run is in the source dir. Test methods are generated, one for each source file.

File names follow [name,stdout,exitcode] joined by _ pattern. Stdout may be left blank, but exit code must be supplied.

Obviously the arm tests need an arm platform. This may be defined by ARM_HOST, eg for simulated ARM_HOST=localhost

Also port and user may be specified with ARM_PORT and ARM_USER , they default to 2222 and pi if left blank. SSH keys must be set up so no passwords are required (and the users private key may not be password protected)