SConscript (9781:2bddf82f610b) SConscript (9922:4eec8250c38d)
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

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

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
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

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

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],
285 env.Command([status_file, new_stats],
286 [env.M5Binary, 'run.py', ref_stats],
287 testAction)
288
289 # phony target to echo status
290 if GetOption('update_ref'):
291 p = env.Command(tgt('_update'),
292 [ref_stats, new_stats, status_file],
293 updateAction)

--- 59 unchanged lines hidden ---
286 [env.M5Binary, 'run.py', ref_stats],
287 testAction)
288
289 # phony target to echo status
290 if GetOption('update_ref'):
291 p = env.Command(tgt('_update'),
292 [ref_stats, new_stats, status_file],
293 updateAction)

--- 59 unchanged lines hidden ---