From: Andreas Hansson Date: Wed, 30 Nov 2016 16:15:21 +0000 (-0500) Subject: tests: Check for TrafficGen as part of memcheck regression X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=2a56260d5d3216fe53517731107a87354e951514;p=gem5.git 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. --- 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