gem5/tests
Andreas Sandberg dd0f54fed6 tests: Add a test command to get test status as an exit code
Add a "test" command to tests.py that queries a test pickle file and
returns different exit codes depending on the outcome of the tests in
the file. The following exit codes can currently be returned:

  * 0: All tests were successful or skipped.

  * 1: General fault in the script such as incorrect parameters or
    failing to parse a pickle file.

  * 2: At least one test failed to run. This is what the summary
    formatter usually shows as a 'FAILED'.

  * 3: All tests ran correctly, but at least one failed to verify
    its output. When displaying test output using the summary
    formatter, such a test would show up as 'CHANGED'.

The command can be invoked like this:

./tests/tests.py test `find build/ARM/tests/opt/ -name status.pickle`

Change-Id: I7e6bc661516f38ff08dfda7c4359a1e10bf97864
Signed-off-by: Andreas Sandberg <andreas.sandberg@arm.com>
Reviewed-by: Curtis Dunham <curtis.dunham@arm.com>
2016-06-20 14:50:43 +01:00
..
configs tests: Remove working dir assumption in tgen tests 2016-06-02 15:20:24 +01:00
long stats: Add power stats to test references 2016-06-06 17:16:44 +01:00
quick mem: Resolve TrafficGen trace relative to the config 2016-06-20 14:49:37 +01:00
test-progs style: fix missing spaces in control statements 2016-02-06 17:21:19 -08:00
testing tests: Split test results into running and verification 2016-06-20 14:50:34 +01:00
diff-out tests: fix diff-out script for op/inst stat changes. 2012-02-12 18:35:59 -06:00
halt.sh Rearrange the FS configs to be more shared. Also check in the full-system tests. Reference stats coming soon. 2006-07-21 15:56:35 -04:00
run.py tests: Enable test running outside of gem5's source tree 2016-05-09 11:32:07 +01:00
SConscript tests: Split test results into running and verification 2016-06-20 14:50:34 +01:00
tests.py tests: Add a test command to get test status as an exit code 2016-06-20 14:50:43 +01:00