SConscript (4130:a611c874376e) SConscript (4781:59a75bd0ddf4)
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

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

168 # Output redirection is also different for batch runs.
169 # Batch command also supports timeout arg (in seconds, not minutes).
170 timeout = 15 # used to be a param, probably should be again
171 if env['BATCH']:
172 cmd = [env['BATCH_CMD'], '-t', str(timeout * 60),
173 '-o', cmd_stdout, '-e', cmd_stderr, base_cmd]
174 else:
175 cmd = [base_cmd, '>', cmd_stdout, '2>', cmd_stderr]
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

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

168 # Output redirection is also different for batch runs.
169 # Batch command also supports timeout arg (in seconds, not minutes).
170 timeout = 15 # used to be a param, probably should be again
171 if env['BATCH']:
172 cmd = [env['BATCH_CMD'], '-t', str(timeout * 60),
173 '-o', cmd_stdout, '-e', cmd_stderr, base_cmd]
174 else:
175 cmd = [base_cmd, '>', cmd_stdout, '2>', cmd_stderr]
176
176
177 env.Command([tgt('stdout'), tgt('stderr'), new_stats],
178 [env.M5Binary, 'run.py'], ' '.join(cmd))
179
180 # order of targets is important... see check_test
181 env.Command([tgt('outdiff'), tgt('statsdiff'), status_file],
182 [ref_stats, new_stats],
183 testAction)
184

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

197configs = []
198if env['FULL_SYSTEM']:
199 if env['TARGET_ISA'] == 'alpha':
200 if not env['ALPHA_TLASER']:
201 configs += ['tsunami-simple-atomic',
202 'tsunami-simple-timing',
203 'tsunami-simple-atomic-dual',
204 'tsunami-simple-timing-dual',
177 env.Command([tgt('stdout'), tgt('stderr'), new_stats],
178 [env.M5Binary, 'run.py'], ' '.join(cmd))
179
180 # order of targets is important... see check_test
181 env.Command([tgt('outdiff'), tgt('statsdiff'), status_file],
182 [ref_stats, new_stats],
183 testAction)
184

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

197configs = []
198if env['FULL_SYSTEM']:
199 if env['TARGET_ISA'] == 'alpha':
200 if not env['ALPHA_TLASER']:
201 configs += ['tsunami-simple-atomic',
202 'tsunami-simple-timing',
203 'tsunami-simple-atomic-dual',
204 'tsunami-simple-timing-dual',
205 'twosys-tsunami-simple-atomic']
205 'twosys-tsunami-simple-atomic']
206 if env['TARGET_ISA'] == 'sparc':
207 configs += ['t1000-simple-atomic',
208 't1000-simple-timing']
209
210else:
211 configs += ['simple-atomic', 'simple-timing', 'o3-timing', 'memtest']
212
213cwd = os.getcwd()
214os.chdir(str(Dir('.').srcdir))
215for config in configs:
216 dirs = glob.glob('*/*/ref/%s/*/%s' % (env['TARGET_ISA'], config))
217 for d in dirs:
218 test_builder(env, d)
219os.chdir(cwd)
206 if env['TARGET_ISA'] == 'sparc':
207 configs += ['t1000-simple-atomic',
208 't1000-simple-timing']
209
210else:
211 configs += ['simple-atomic', 'simple-timing', 'o3-timing', 'memtest']
212
213cwd = os.getcwd()
214os.chdir(str(Dir('.').srcdir))
215for config in configs:
216 dirs = glob.glob('*/*/ref/%s/*/%s' % (env['TARGET_ISA'], config))
217 for d in dirs:
218 test_builder(env, d)
219os.chdir(cwd)