SConscript revision 6899
112070Snikos.nikoleris@arm.com# -*- mode:python -*- 29380SAndreas.Sandberg@ARM.com 39380SAndreas.Sandberg@ARM.com# Copyright (c) 2006 The Regents of The University of Michigan 49380SAndreas.Sandberg@ARM.com# Copyright (c) 2009 Advanced Micro Devices, Inc. 59380SAndreas.Sandberg@ARM.com# All rights reserved. 69380SAndreas.Sandberg@ARM.com# 79380SAndreas.Sandberg@ARM.com# Redistribution and use in source and binary forms, with or without 89380SAndreas.Sandberg@ARM.com# modification, are permitted provided that the following conditions are 99380SAndreas.Sandberg@ARM.com# met: redistributions of source code must retain the above copyright 109380SAndreas.Sandberg@ARM.com# notice, this list of conditions and the following disclaimer; 119380SAndreas.Sandberg@ARM.com# redistributions in binary form must reproduce the above copyright 129380SAndreas.Sandberg@ARM.com# notice, this list of conditions and the following disclaimer in the 139380SAndreas.Sandberg@ARM.com# documentation and/or other materials provided with the distribution; 149380SAndreas.Sandberg@ARM.com# neither the name of the copyright holders nor the names of its 159380SAndreas.Sandberg@ARM.com# contributors may be used to endorse or promote products derived from 169380SAndreas.Sandberg@ARM.com# this software without specific prior written permission. 179380SAndreas.Sandberg@ARM.com# 189380SAndreas.Sandberg@ARM.com# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 199380SAndreas.Sandberg@ARM.com# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 209380SAndreas.Sandberg@ARM.com# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 219380SAndreas.Sandberg@ARM.com# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 229380SAndreas.Sandberg@ARM.com# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 239380SAndreas.Sandberg@ARM.com# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 249380SAndreas.Sandberg@ARM.com# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 259380SAndreas.Sandberg@ARM.com# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 269380SAndreas.Sandberg@ARM.com# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 279380SAndreas.Sandberg@ARM.com# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 289380SAndreas.Sandberg@ARM.com# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 299380SAndreas.Sandberg@ARM.com# 309380SAndreas.Sandberg@ARM.com 319380SAndreas.Sandberg@ARM.comImport('*') 329380SAndreas.Sandberg@ARM.com 339380SAndreas.Sandberg@ARM.com# 349380SAndreas.Sandberg@ARM.com# Currently the ruby testser relies on Ruby specific objects (SubBlock, etc.) 359380SAndreas.Sandberg@ARM.com# When this dependency is removed, the ruby tester should be compiled 369380SAndreas.Sandberg@ARM.com# independently from Ruby 379380SAndreas.Sandberg@ARM.com# 389380SAndreas.Sandberg@ARM.comif not env['RUBY']: 399380SAndreas.Sandberg@ARM.com Return() 409380SAndreas.Sandberg@ARM.com 419380SAndreas.Sandberg@ARM.comSimObject('RubyTester.py') 4211682Sandreas.hansson@arm.com 4311682Sandreas.hansson@arm.comSource('RubyTester.cc') 4411682Sandreas.hansson@arm.comSource('Check.cc') 459380SAndreas.Sandberg@ARM.comSource('CheckTable.cc') 4612097Sandreas.sandberg@arm.com 4711682Sandreas.hansson@arm.comTraceFlag('RubyTest') 4810406Sandreas.hansson@arm.com