changeset 482900205561 in /z/repo/gem5
details: http://repo.gem5.org/gem5?cmd=changeset;node=482900205561
description:
        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.

diffstat:

 tests/configs/memcheck.py |  7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)

diffs (17 lines):

diff -r e832056deaed -r 482900205561 tests/configs/memcheck.py
--- a/tests/configs/memcheck.py Tue Nov 29 13:04:45 2016 -0500
+++ b/tests/configs/memcheck.py Wed Nov 30 11:15:21 2016 -0500
@@ -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
_______________________________________________
gem5-dev mailing list
gem5-dev@gem5.org
http://m5sim.org/mailman/listinfo/gem5-dev

Reply via email to