Deleted Added
sdiff udiff text old ( 11482:2ca1efb451e4 ) new ( 11503:e9b095599766 )
full compact
1#!/usr/bin/env python
2#
3# Copyright (c) 2016 ARM Limited
4# All rights reserved
5#
6# The license below extends only to copyright in the software and shall
7# not be construed as granting a license to any other intellectual
8# property including but not limited to intellectual property relating

--- 205 unchanged lines hidden (view full) ---

214 ]
215
216 return TestResult(self.test_name, run_results + verify_results)
217
218 def __str__(self):
219 return self.test_name
220
221class ClassicTest(Test):
222 # The diff ignore list contains all files that shouldn't be diffed
223 # using DiffOutFile. These files typically use special-purpose
224 # diff tools (e.g., DiffStatFile).
225 diff_ignore_files = (
226 # Stat files use a special stat differ
227 "stats.txt",
228 )
229
230 # These files should never be included in the list of
231 # reference files. This list should include temporary files
232 # and other files that we don't care about.
233 ref_ignore_files = (
234 )
235
236 def __init__(self, gem5, output_dir, config_tuple,
237 timeout=None,
238 skip=False, skip_diff_out=False, skip_diff_stat=False):
239
240 super(ClassicTest, self).__init__("/".join(config_tuple))
241
242 ct = config_tuple
243

--- 10 unchanged lines hidden (view full) ---

254 self.skip_diff_out = skip or skip_diff_out
255 self.skip_diff_stat = skip or skip_diff_stat
256
257 def ref_files(self):
258 ref_dir = os.path.abspath(self.ref_dir)
259 for root, dirs, files in os.walk(ref_dir, topdown=False):
260 for f in files:
261 fpath = os.path.join(root[len(ref_dir) + 1:], f)
262 if fpath not in ClassicTest.ref_ignore_files:
263 yield fpath
264
265 def run_units(self):
266 args = [
267 self.script,
268 "/".join(self.config_tuple),
269 ]
270

--- 81 unchanged lines hidden ---