SConscript (6293:a37f8971b271) SConscript (6928:5bd33f7c26ea)
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

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

259 'tsunami-o3', 'tsunami-o3-dual']
260 if env['TARGET_ISA'] == 'sparc':
261 configs += ['t1000-simple-atomic',
262 't1000-simple-timing']
263
264else:
265 configs += ['simple-atomic', 'simple-timing', 'o3-timing', 'memtest',
266 'simple-atomic-mp', 'simple-timing-mp', 'o3-timing-mp',
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

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

259 'tsunami-o3', 'tsunami-o3-dual']
260 if env['TARGET_ISA'] == 'sparc':
261 configs += ['t1000-simple-atomic',
262 't1000-simple-timing']
263
264else:
265 configs += ['simple-atomic', 'simple-timing', 'o3-timing', 'memtest',
266 'simple-atomic-mp', 'simple-timing-mp', 'o3-timing-mp',
267 'inorder-timing']
267 'inorder-timing', 'rubytest']
268
269if env['RUBY']:
268
269if env['RUBY']:
270 # Hack for Ruby
271 configs += [c + '-ruby' for c in configs]
270 # With Ruby, A protocol must be specified in the environment
271 assert(env['PROTOCOL'])
272
272
273 #
274 # Is there a way to determine what is Protocol EnumVariable
275 # default and eliminate the need to hard code the default protocol below?
276 #
277 # If the binary includes the default ruby protocol, run both ruby and
278 # non-ruby versions of the tests. Otherwise just run the ruby versions.
279 #
280 if env['PROTOCOL'] == 'MI_example':
281 configs += [c + "-ruby" for c in configs]
282 else:
283 configs = [c + "-ruby-" + env['PROTOCOL'] for c in configs]
284
273cwd = os.getcwd()
274os.chdir(str(Dir('.').srcdir))
275for config in configs:
276 dirs = glob.glob('*/*/ref/%s/*/%s' % (env['TARGET_ISA'], config))
277 for d in dirs:
278 if not os.path.exists(os.path.join(d, 'skip')):
279 test_builder(env, d)
280os.chdir(cwd)
285cwd = os.getcwd()
286os.chdir(str(Dir('.').srcdir))
287for config in configs:
288 dirs = glob.glob('*/*/ref/%s/*/%s' % (env['TARGET_ISA'], config))
289 for d in dirs:
290 if not os.path.exists(os.path.join(d, 'skip')):
291 test_builder(env, d)
292os.chdir(cwd)