Deleted Added
sdiff udiff text old ( 9922:4eec8250c38d ) new ( 10196:be0e1724eb39 )
full compact
1# -*- mode:python -*-
2
3# Copyright (c) 2004-2006 The Regents of The University of Michigan
4# All rights reserved.
5#
6# Redistribution and use in source and binary forms, with or without
7# modification, are permitted provided that the following conditions are
8# met: redistributions of source code must retain the above copyright

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

262 return env.subst("Updating ${SOURCES[0].dir} from ${SOURCES[1].dir}",
263 target=target, source=source)
264
265updateAction = env.Action(update_test, update_test_string)
266
267def test_builder(env, ref_dir):
268 """Define a test."""
269
270 (category, mode, name, _ref, isa, opsys, config) = ref_dir.split('/')
271 assert(_ref == 'ref')
272
273 # target path (where test output goes) is the same except without
274 # the 'ref' component
275 tgt_dir = os.path.join(category, mode, name, isa, opsys, config)
276
277 # prepend file name with tgt_dir
278 def tgt(f):
279 return os.path.join(tgt_dir, f)
280
281 ref_stats = os.path.join(ref_dir, 'stats.txt')
282 new_stats = tgt('stats.txt')
283 status_file = tgt('status')
284
285 env.Command([status_file, new_stats],

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

337 'tgen-simple-dram']
338
339if env['PROTOCOL'] != 'None':
340 if env['PROTOCOL'] == 'MI_example':
341 configs += [c + "-ruby" for c in configs]
342 else:
343 configs = [c + "-ruby-" + env['PROTOCOL'] for c in configs]
344
345cwd = os.getcwd()
346os.chdir(str(Dir('.').srcdir))
347for config in configs:
348 dirs = glob.glob('*/*/*/ref/%s/*/%s' % (env['TARGET_ISA'], config))
349 for d in dirs:
350 if not os.path.exists(os.path.join(d, 'skip')):
351 test_builder(env, d)
352os.chdir(cwd)