SConscript (8397:7cd61d925338) SConscript (8482:353abb676fa2)
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

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

284 'pc-simple-timing']
285
286else:
287 configs += ['simple-atomic', 'simple-timing', 'o3-timing', 'memtest',
288 'simple-atomic-mp', 'simple-timing-mp', 'o3-timing-mp',
289 'inorder-timing', 'rubytest']
290
291if env['RUBY']:
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

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

284 'pc-simple-timing']
285
286else:
287 configs += ['simple-atomic', 'simple-timing', 'o3-timing', 'memtest',
288 'simple-atomic-mp', 'simple-timing-mp', 'o3-timing-mp',
289 'inorder-timing', 'rubytest']
290
291if env['RUBY']:
292 # With Ruby, A protocol must be specified in the environment
293 assert(env['PROTOCOL'])
294
295 #
296 # Is there a way to determine what is Protocol EnumVariable
297 # default and eliminate the need to hard code the default protocol below?
298 #
299 # If the binary includes the default ruby protocol, run both ruby and
300 # non-ruby versions of the tests. Otherwise just run the ruby versions.
301 #
302 if env['PROTOCOL'] == 'MI_example':
303 configs += [c + "-ruby" for c in configs]
304 else:
305 configs = [c + "-ruby-" + env['PROTOCOL'] for c in configs]
306
307cwd = os.getcwd()
308os.chdir(str(Dir('.').srcdir))
309for config in configs:
310 dirs = glob.glob('*/*/ref/%s/*/%s' % (env['TARGET_ISA'], config))
311 for d in dirs:
312 if not os.path.exists(os.path.join(d, 'skip')):
313 test_builder(env, d)
314os.chdir(cwd)
292 if env['PROTOCOL'] == 'MI_example':
293 configs += [c + "-ruby" for c in configs]
294 else:
295 configs = [c + "-ruby-" + env['PROTOCOL'] for c in configs]
296
297cwd = os.getcwd()
298os.chdir(str(Dir('.').srcdir))
299for config in configs:
300 dirs = glob.glob('*/*/ref/%s/*/%s' % (env['TARGET_ISA'], config))
301 for d in dirs:
302 if not os.path.exists(os.path.join(d, 'skip')):
303 test_builder(env, d)
304os.chdir(cwd)