diff options
author | Andreas Sandberg <Andreas.Sandberg@ARM.com> | 2013-01-07 13:05:37 -0500 |
---|---|---|
committer | Andreas Sandberg <Andreas.Sandberg@ARM.com> | 2013-01-07 13:05:37 -0500 |
commit | 9c5ef235cc595d0f51b0810786c2b512bef7c69f (patch) | |
tree | fa0b5e5d9e28267c001732210a548debe143e7ce /src/cpu/testers/traffic_gen | |
parent | 35bdee72cbbced98bb93f9e5310c4dbd014dd911 (diff) | |
download | gem5-9c5ef235cc595d0f51b0810786c2b512bef7c69f.tar.xz |
tests: Add support for skipping tests, skip EIO tests if not enabled
The EIO tests depend on the EIO support from the "encumbered"
repository, which means that they are not normally built with
gem5. This causes all EIO related tests to fail, which is both
annoying and confusing. This patch addresses this by adding support
for skipping tests if certain conditions (e.g., the presence of a
SimObject) can not be met. It introduces the following Python
functions that can be called from within a test case:
* skip_test -- Skip a test and optionally print why the test was
skipped.
* has_sim_object -- Test if a SimObject exists.
* require_sim_object -- Test if a SimObject exists and skip, or
optionally fail, the test if not.
Additionally, this patch updates the EIO tests to check for the
presence of EioProcess.
Diffstat (limited to 'src/cpu/testers/traffic_gen')
0 files changed, 0 insertions, 0 deletions