Given two equivalent source files, one .cpp or .c, the other .rc, the test runner will compile the reduced c locally, and then copy both tests over to ieng9 to run and diff them.
-
Start by copying down the
test_runner.rbfile to your project folder. -
Modify the constants at the top of the file to point to your RC directory and your test directory. My file structure looks like this:
test_runner.rb src/ |- RC |- rc.s (after compiling) tests/ |- foobar.cpp |- foobar.rc
So my constants are ./src/ and ./tests/ for PATH_TO_RC and PATH_TO_TESTS respectively.
- Set the
REMOTE_HOSTconstant to[email protected] - Run by passing the testname to the file, eg
ruby test_runner.rb foobar - Type in your ieng9 password four times when prompted (twice for scp, twice for ssh)
Note: If you wish to avoid typing in your password, you can add your local public key to your remote authorized_keys file.
- ???
- Profit (in the form of diff results)
Example tests are included in this gist. They should be equivalent files. test_runner.rb will first look for a .cpp file, and then if one is not present, a .c file.