tests.py (11482:2ca1efb451e4) tests.py (11503:e9b095599766)
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):
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 diff_ignore_files = [
223 # Stat files use a special stat differ, so don't include them
224 # here.
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
225 "stats.txt",
227 "stats.txt",
226 ]
228 )
227
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
228 def __init__(self, gem5, output_dir, config_tuple,
229 timeout=None,
230 skip=False, skip_diff_out=False, skip_diff_stat=False):
231
232 super(ClassicTest, self).__init__("/".join(config_tuple))
233
234 ct = config_tuple
235

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

246 self.skip_diff_out = skip or skip_diff_out
247 self.skip_diff_stat = skip or skip_diff_stat
248
249 def ref_files(self):
250 ref_dir = os.path.abspath(self.ref_dir)
251 for root, dirs, files in os.walk(ref_dir, topdown=False):
252 for f in files:
253 fpath = os.path.join(root[len(ref_dir) + 1:], f)
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)
254 if fpath not in ClassicTest.diff_ignore_files:
262 if fpath not in ClassicTest.ref_ignore_files:
255 yield fpath
256
257 def run_units(self):
258 args = [
259 self.script,
260 "/".join(self.config_tuple),
261 ]
262

--- 81 unchanged lines hidden ---
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 ---