SConscript (5525:abb8846b2e62) SConscript (5526:2764c7769ee3)
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

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

174 new_stats = tgt('m5stats.txt')
175 status_file = tgt('status')
176
177 # Base command for running test. We mess around with indirectly
178 # referring to files via SOURCES and TARGETS so that scons can
179 # mess with paths all it wants to and we still get the right
180 # files.
181 cmd = '${SOURCES[0]} -d $TARGET.dir'
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

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

174 new_stats = tgt('m5stats.txt')
175 status_file = tgt('status')
176
177 # Base command for running test. We mess around with indirectly
178 # referring to files via SOURCES and TARGETS so that scons can
179 # mess with paths all it wants to and we still get the right
180 # files.
181 cmd = '${SOURCES[0]} -d $TARGET.dir'
182 cmd += ' -re --stdout-file ${TARGETS[0]} --stderr-file ${TARGETS[1]}'
182 cmd += ' -re --stdout-file stdout --stderr-file stderr'
183 cmd += ' ${SOURCES[1]} %s' % tgt_dir
184
185 # Prefix test run with batch job submission command if appropriate.
186 # Batch command also supports timeout arg (in seconds, not minutes).
187 timeout = 15 * 60 # used to be a param, probably should be again
188 if env['BATCH']:
189 cmd = '%s -t %d %s' % (env['BATCH_CMD'], timeout, cmd)
190

--- 43 unchanged lines hidden ---
183 cmd += ' ${SOURCES[1]} %s' % tgt_dir
184
185 # Prefix test run with batch job submission command if appropriate.
186 # Batch command also supports timeout arg (in seconds, not minutes).
187 timeout = 15 * 60 # used to be a param, probably should be again
188 if env['BATCH']:
189 cmd = '%s -t %d %s' % (env['BATCH_CMD'], timeout, cmd)
190

--- 43 unchanged lines hidden ---