summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Hansson <andreas.hansson@arm.com>2016-11-30 11:15:21 -0500
committerAndreas Hansson <andreas.hansson@arm.com>2016-11-30 11:15:21 -0500
commit2a56260d5d3216fe53517731107a87354e951514 (patch)
tree805cff53414c39e9e51ca648fadc2df395923d4c
parentcd4b26b6ae984a75e16f4d71152d99b6c063d366 (diff)
downloadgem5-2a56260d5d3216fe53517731107a87354e951514.tar.xz
tests: Check for TrafficGen as part of memcheck regression
Since protobuf is still considered optional we do not always have the TrafficGen. Check before running the memcheck regression.
-rw-r--r--tests/configs/memcheck.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/configs/memcheck.py b/tests/configs/memcheck.py
index 21c8d7d4c..97f8d1369 100644
--- a/tests/configs/memcheck.py
+++ b/tests/configs/memcheck.py
@@ -39,6 +39,13 @@
# Authors: Jason Lowe-Power
# Andreas Hansson
+import m5
+from m5.objects import *
+
+# the traffic generator is only available if we have protobuf support,
+# so potentially skip this test
+require_sim_object("TrafficGen")
+
# A wrapper around configs/example/memcheck.py
# For some reason, this is implicitly needed by run.py