tests: Check for TrafficGen as part of memcheck regression
authorAndreas Hansson <andreas.hansson@arm.com>
Wed, 30 Nov 2016 16:15:21 +0000 (11:15 -0500)
committerAndreas Hansson <andreas.hansson@arm.com>
Wed, 30 Nov 2016 16:15:21 +0000 (11:15 -0500)
Since protobuf is still considered optional we do not always have the
TrafficGen. Check before running the memcheck regression.

tests/configs/memcheck.py

index 21c8d7d4cf39d6ef6fcb7282acc2626837a4fa39..97f8d1369768158b5281a41ff5aa976b85be7ee7 100644 (file)
 # 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