SConscript revision 10751
12929Sktlim@umich.edu# -*- mode:python -*- 22929Sktlim@umich.edu 32932Sktlim@umich.edu# Copyright (c) 2004-2006 The Regents of The University of Michigan 42929Sktlim@umich.edu# All rights reserved. 52929Sktlim@umich.edu# 62929Sktlim@umich.edu# Redistribution and use in source and binary forms, with or without 72929Sktlim@umich.edu# modification, are permitted provided that the following conditions are 82929Sktlim@umich.edu# met: redistributions of source code must retain the above copyright 92929Sktlim@umich.edu# notice, this list of conditions and the following disclaimer; 102929Sktlim@umich.edu# redistributions in binary form must reproduce the above copyright 112929Sktlim@umich.edu# notice, this list of conditions and the following disclaimer in the 122929Sktlim@umich.edu# documentation and/or other materials provided with the distribution; 132929Sktlim@umich.edu# neither the name of the copyright holders nor the names of its 142929Sktlim@umich.edu# contributors may be used to endorse or promote products derived from 152929Sktlim@umich.edu# this software without specific prior written permission. 162929Sktlim@umich.edu# 172929Sktlim@umich.edu# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 182929Sktlim@umich.edu# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 192929Sktlim@umich.edu# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 202929Sktlim@umich.edu# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 212929Sktlim@umich.edu# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 222929Sktlim@umich.edu# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 232929Sktlim@umich.edu# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 242929Sktlim@umich.edu# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 252929Sktlim@umich.edu# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 262929Sktlim@umich.edu# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 272929Sktlim@umich.edu# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 282932Sktlim@umich.edu# 292932Sktlim@umich.edu# Authors: Steve Reinhardt 302932Sktlim@umich.edu# Kevin Lim 312929Sktlim@umich.edu 326007Ssteve.reinhardt@amd.comimport os, signal 337735SAli.Saidi@ARM.comimport sys, time 342929Sktlim@umich.eduimport glob 352929Sktlim@umich.edufrom SCons.Script.SConscript import SConsEnvironment 362929Sktlim@umich.edu 372929Sktlim@umich.eduImport('env') 382929Sktlim@umich.edu 392929Sktlim@umich.eduenv['DIFFOUT'] = File('diff-out') 402929Sktlim@umich.edu 418947Sandreas.hansson@arm.com# get the termcap from the environment 428947Sandreas.hansson@arm.comtermcap = env['TERMCAP'] 438947Sandreas.hansson@arm.com 442929Sktlim@umich.edu# Dict that accumulates lists of tests by category (quick, medium, long) 452929Sktlim@umich.eduenv.Tests = {} 462929Sktlim@umich.edu 472929Sktlim@umich.edudef contents(node): 482929Sktlim@umich.edu return file(str(node)).read() 492929Sktlim@umich.edu 506007Ssteve.reinhardt@amd.com# functions to parse return value from scons Execute()... not the same 516007Ssteve.reinhardt@amd.com# as wait() etc., so python built-in os funcs don't work. 526007Ssteve.reinhardt@amd.comdef signaled(status): 536007Ssteve.reinhardt@amd.com return (status & 0x80) != 0; 546007Ssteve.reinhardt@amd.com 556007Ssteve.reinhardt@amd.comdef signum(status): 566007Ssteve.reinhardt@amd.com return (status & 0x7f); 576007Ssteve.reinhardt@amd.com 586007Ssteve.reinhardt@amd.com# List of signals that indicate that we should retry the test rather 596007Ssteve.reinhardt@amd.com# than consider it failed. 606007Ssteve.reinhardt@amd.comretry_signals = (signal.SIGTERM, signal.SIGKILL, signal.SIGINT, 616007Ssteve.reinhardt@amd.com signal.SIGQUIT, signal.SIGHUP) 626007Ssteve.reinhardt@amd.com 636007Ssteve.reinhardt@amd.com# regular expressions of lines to ignore when diffing outputs 646007Ssteve.reinhardt@amd.comoutput_ignore_regexes = ( 656007Ssteve.reinhardt@amd.com '^command line:', # for stdout file 669435SAndreas.Sandberg@ARM.com '^gem5 compiled ', # for stderr file 679435SAndreas.Sandberg@ARM.com '^gem5 started ', # for stderr file 689435SAndreas.Sandberg@ARM.com '^gem5 executing on ', # for stderr file 696007Ssteve.reinhardt@amd.com '^Simulation complete at', # for stderr file 706007Ssteve.reinhardt@amd.com '^Listening for', # for stderr file 716007Ssteve.reinhardt@amd.com 'listening for remote gdb', # for stderr file 726007Ssteve.reinhardt@amd.com ) 736007Ssteve.reinhardt@amd.com 746007Ssteve.reinhardt@amd.comoutput_ignore_args = ' '.join(["-I '"+s+"'" for s in output_ignore_regexes]) 756007Ssteve.reinhardt@amd.com 766007Ssteve.reinhardt@amd.comoutput_ignore_args += ' --exclude=stats.txt --exclude=outdiff' 776007Ssteve.reinhardt@amd.com 786007Ssteve.reinhardt@amd.comdef run_test(target, source, env): 792929Sktlim@umich.edu """Check output from running test. 802929Sktlim@umich.edu 812929Sktlim@umich.edu Targets are as follows: 826007Ssteve.reinhardt@amd.com target[0] : status 836007Ssteve.reinhardt@amd.com 846007Ssteve.reinhardt@amd.com Sources are: 859781Sandreas.hansson@arm.com source[0] : gem5 binary 866007Ssteve.reinhardt@amd.com source[1] : tests/run.py script 876007Ssteve.reinhardt@amd.com source[2] : reference stats file 882929Sktlim@umich.edu 892929Sktlim@umich.edu """ 902929Sktlim@umich.edu # make sure target files are all gone 912929Sktlim@umich.edu for t in target: 922929Sktlim@umich.edu if os.path.exists(t.abspath): 936011Ssteve.reinhardt@amd.com env.Execute(Delete(t.abspath)) 946007Ssteve.reinhardt@amd.com 956007Ssteve.reinhardt@amd.com tgt_dir = os.path.dirname(str(target[0])) 966007Ssteve.reinhardt@amd.com 976007Ssteve.reinhardt@amd.com # Base command for running test. We mess around with indirectly 986007Ssteve.reinhardt@amd.com # referring to files via SOURCES and TARGETS so that scons can mess 996007Ssteve.reinhardt@amd.com # with paths all it wants to and we still get the right files. 1006007Ssteve.reinhardt@amd.com cmd = '${SOURCES[0]} -d %s -re ${SOURCES[1]} %s' % (tgt_dir, tgt_dir) 1016007Ssteve.reinhardt@amd.com 1026007Ssteve.reinhardt@amd.com # Prefix test run with batch job submission command if appropriate. 1036007Ssteve.reinhardt@amd.com # Batch command also supports timeout arg (in seconds, not minutes). 1046007Ssteve.reinhardt@amd.com timeout = 15 * 60 # used to be a param, probably should be again 1056007Ssteve.reinhardt@amd.com if env['BATCH']: 1066007Ssteve.reinhardt@amd.com cmd = '%s -t %d %s' % (env['BATCH_CMD'], timeout, cmd) 10710742Sandreas.hansson@arm.com # The slowest regression (bzip2) requires ~4 hours; 10810742Sandreas.hansson@arm.com # 5 hours was chosen to be conservative. 10910384SCurtis.Dunham@arm.com elif env['TIMEOUT']: 11010742Sandreas.hansson@arm.com cmd = 'timeout --foreground 5h %s' % cmd 1116007Ssteve.reinhardt@amd.com 1129781Sandreas.hansson@arm.com # Create a default value for the status string, changed as needed 1139781Sandreas.hansson@arm.com # based on the status. 1149781Sandreas.hansson@arm.com status_str = "passed." 1159781Sandreas.hansson@arm.com 1167735SAli.Saidi@ARM.com pre_exec_time = time.time() 1176011Ssteve.reinhardt@amd.com status = env.Execute(env.subst(cmd, target=target, source=source)) 1186007Ssteve.reinhardt@amd.com if status == 0: 1199781Sandreas.hansson@arm.com # gem5 terminated normally. 1206007Ssteve.reinhardt@amd.com # Run diff on output & ref directories to find differences. 1216007Ssteve.reinhardt@amd.com # Exclude the stats file since we will use diff-out on that. 1227735SAli.Saidi@ARM.com 1237735SAli.Saidi@ARM.com # NFS file systems can be annoying and not have updated yet 1247735SAli.Saidi@ARM.com # wait until we see the file modified 1257735SAli.Saidi@ARM.com statsdiff = os.path.join(tgt_dir, 'statsdiff') 1267735SAli.Saidi@ARM.com m_time = 0 1277735SAli.Saidi@ARM.com nap = 0 1287735SAli.Saidi@ARM.com while m_time < pre_exec_time and nap < 10: 1297735SAli.Saidi@ARM.com try: 1307735SAli.Saidi@ARM.com m_time = os.stat(statsdiff).st_mtime 1317735SAli.Saidi@ARM.com except OSError: 1327735SAli.Saidi@ARM.com pass 1337735SAli.Saidi@ARM.com time.sleep(1) 1347735SAli.Saidi@ARM.com nap += 1 1357735SAli.Saidi@ARM.com 1366007Ssteve.reinhardt@amd.com outdiff = os.path.join(tgt_dir, 'outdiff') 1378599Ssteve.reinhardt@amd.com # tack 'true' on the end so scons doesn't report diff's 1388599Ssteve.reinhardt@amd.com # non-zero exit code as a build error 1398599Ssteve.reinhardt@amd.com diffcmd = 'diff -ubrs %s ${SOURCES[2].dir} %s > %s; true' \ 1406007Ssteve.reinhardt@amd.com % (output_ignore_args, tgt_dir, outdiff) 1416011Ssteve.reinhardt@amd.com env.Execute(env.subst(diffcmd, target=target, source=source)) 1426007Ssteve.reinhardt@amd.com print "===== Output differences =====" 1436007Ssteve.reinhardt@amd.com print contents(outdiff) 1446007Ssteve.reinhardt@amd.com # Run diff-out on stats.txt file 1456007Ssteve.reinhardt@amd.com diffcmd = '$DIFFOUT ${SOURCES[2]} %s > %s' \ 1466007Ssteve.reinhardt@amd.com % (os.path.join(tgt_dir, 'stats.txt'), statsdiff) 1476007Ssteve.reinhardt@amd.com diffcmd = env.subst(diffcmd, target=target, source=source) 1489781Sandreas.hansson@arm.com diff_status = env.Execute(diffcmd, strfunction=None) 1499781Sandreas.hansson@arm.com # If there is a difference, change the status string to say so 1509781Sandreas.hansson@arm.com if diff_status != 0: 1519781Sandreas.hansson@arm.com status_str = "CHANGED!" 1526007Ssteve.reinhardt@amd.com print "===== Statistics differences =====" 1536007Ssteve.reinhardt@amd.com print contents(statsdiff) 1546007Ssteve.reinhardt@amd.com 1559781Sandreas.hansson@arm.com else: # gem5 exit status != 0 1569781Sandreas.hansson@arm.com # Consider it a failed test unless the exit status is 2 1579781Sandreas.hansson@arm.com status_str = "FAILED!" 1589781Sandreas.hansson@arm.com # gem5 did not terminate properly, so no need to check the output 15910384SCurtis.Dunham@arm.com if env['TIMEOUT'] and status == 124: 16010384SCurtis.Dunham@arm.com status_str = "TIMED-OUT!" 16110384SCurtis.Dunham@arm.com elif signaled(status): 1629781Sandreas.hansson@arm.com print 'gem5 terminated with signal', signum(status) 1636008Ssteve.reinhardt@amd.com if signum(status) in retry_signals: 1646008Ssteve.reinhardt@amd.com # Consider the test incomplete; don't create a 'status' output. 1656008Ssteve.reinhardt@amd.com # Hand the return status to scons and let scons decide what 1666008Ssteve.reinhardt@amd.com # to do about it (typically terminate unless run with -k). 1676008Ssteve.reinhardt@amd.com return status 1689401SAndreas.Sandberg@ARM.com elif status == 2: 1699781Sandreas.hansson@arm.com # The test was skipped, change the status string to say so 1709781Sandreas.hansson@arm.com status_str = "skipped." 1716008Ssteve.reinhardt@amd.com else: 1729781Sandreas.hansson@arm.com print 'gem5 exited with non-zero status', status 1736007Ssteve.reinhardt@amd.com # complete but failed execution (call to exit() with non-zero 1746007Ssteve.reinhardt@amd.com # status, SIGABORT due to assertion failure, etc.)... fall through 1756007Ssteve.reinhardt@amd.com # and generate FAILED status as if output comparison had failed 1766007Ssteve.reinhardt@amd.com 1779781Sandreas.hansson@arm.com # Generate status file contents based on exit status of gem5 and diff-out 1786007Ssteve.reinhardt@amd.com f = file(str(target[0]), 'w') 1796007Ssteve.reinhardt@amd.com print >>f, tgt_dir, status_str 1802929Sktlim@umich.edu f.close() 1812929Sktlim@umich.edu # done 1822929Sktlim@umich.edu return 0 1832929Sktlim@umich.edu 1846007Ssteve.reinhardt@amd.comdef run_test_string(target, source, env): 1856007Ssteve.reinhardt@amd.com return env.subst("Running test in ${TARGETS[0].dir}.", 1862929Sktlim@umich.edu target=target, source=source) 1872929Sktlim@umich.edu 1886007Ssteve.reinhardt@amd.comtestAction = env.Action(run_test, run_test_string) 1892929Sktlim@umich.edu 1902929Sktlim@umich.edudef print_test(target, source, env): 1918947Sandreas.hansson@arm.com # print the status with colours to make it easier to see what 1928947Sandreas.hansson@arm.com # passed and what failed 1938947Sandreas.hansson@arm.com line = contents(source[0]) 1948947Sandreas.hansson@arm.com 1958947Sandreas.hansson@arm.com # split the line to words and get the last one 1968947Sandreas.hansson@arm.com words = line.split() 1978947Sandreas.hansson@arm.com status = words[-1] 1988947Sandreas.hansson@arm.com 1998947Sandreas.hansson@arm.com # if the test failed make it red, if it passed make it green, and 2008947Sandreas.hansson@arm.com # skip the punctuation 20110384SCurtis.Dunham@arm.com if status == "FAILED!" or status == "TIMED-OUT!": 2028947Sandreas.hansson@arm.com status = termcap.Red + status[:-1] + termcap.Normal + status[-1] 2039781Sandreas.hansson@arm.com elif status == "CHANGED!": 2049781Sandreas.hansson@arm.com status = termcap.Yellow + status[:-1] + termcap.Normal + status[-1] 2058947Sandreas.hansson@arm.com elif status == "passed.": 2068947Sandreas.hansson@arm.com status = termcap.Green + status[:-1] + termcap.Normal + status[-1] 2079401SAndreas.Sandberg@ARM.com elif status == "skipped.": 2089781Sandreas.hansson@arm.com status = termcap.Cyan + status[:-1] + termcap.Normal + status[-1] 2098947Sandreas.hansson@arm.com 2108947Sandreas.hansson@arm.com # put it back in the list and join with space 2118947Sandreas.hansson@arm.com words[-1] = status 2128947Sandreas.hansson@arm.com line = " ".join(words) 2138947Sandreas.hansson@arm.com 2148947Sandreas.hansson@arm.com print '***** ' + line 2152929Sktlim@umich.edu return 0 2162929Sktlim@umich.edu 2172929Sktlim@umich.eduprintAction = env.Action(print_test, strfunction = None) 2182929Sktlim@umich.edu 2194937Sstever@gmail.com# Static vars for update_test: 2204937Sstever@gmail.com# - long-winded message about ignored sources 2214937Sstever@gmail.comignore_msg = ''' 2224937Sstever@gmail.comNote: The following file(s) will not be copied. New non-standard 2238120Sgblack@eecs.umich.edu output files must be copied manually once before --update-ref will 2244937Sstever@gmail.com recognize them as outputs. Otherwise they are assumed to be 2254937Sstever@gmail.com inputs and are ignored. 2264937Sstever@gmail.com''' 2274937Sstever@gmail.com# - reference files always needed 2285773Snate@binkert.orgneeded_files = set(['simout', 'simerr', 'stats.txt', 'config.ini']) 2294937Sstever@gmail.com# - source files we always want to ignore 2304937Sstever@gmail.comknown_ignores = set(['status', 'outdiff', 'statsdiff']) 2314937Sstever@gmail.com 2322929Sktlim@umich.edudef update_test(target, source, env): 2332929Sktlim@umich.edu """Update reference test outputs. 2342929Sktlim@umich.edu 2355773Snate@binkert.org Target is phony. First two sources are the ref & new stats.txt file 2362929Sktlim@umich.edu files, respectively. We actually copy everything in the 2372929Sktlim@umich.edu respective directories except the status & diff output files. 2382929Sktlim@umich.edu 2392929Sktlim@umich.edu """ 2402929Sktlim@umich.edu dest_dir = str(source[0].get_dir()) 2412929Sktlim@umich.edu src_dir = str(source[1].get_dir()) 2424937Sstever@gmail.com dest_files = set(os.listdir(dest_dir)) 2434937Sstever@gmail.com src_files = set(os.listdir(src_dir)) 2444937Sstever@gmail.com # Copy all of the required files plus any existing dest files. 2454937Sstever@gmail.com wanted_files = needed_files | dest_files 2464937Sstever@gmail.com missing_files = wanted_files - src_files 2474937Sstever@gmail.com if len(missing_files) > 0: 2484937Sstever@gmail.com print " WARNING: the following file(s) are missing " \ 2494937Sstever@gmail.com "and will not be updated:" 2504937Sstever@gmail.com print " ", " ,".join(missing_files) 2514937Sstever@gmail.com copy_files = wanted_files - missing_files 2524937Sstever@gmail.com warn_ignored_files = (src_files - copy_files) - known_ignores 2534937Sstever@gmail.com if len(warn_ignored_files) > 0: 2544937Sstever@gmail.com print ignore_msg, 2554937Sstever@gmail.com print " ", ", ".join(warn_ignored_files) 2564937Sstever@gmail.com for f in copy_files: 2572929Sktlim@umich.edu if f in dest_files: 2582929Sktlim@umich.edu print " Replacing file", f 2592929Sktlim@umich.edu dest_files.remove(f) 2602929Sktlim@umich.edu else: 2612929Sktlim@umich.edu print " Creating new file", f 2622929Sktlim@umich.edu copyAction = Copy(os.path.join(dest_dir, f), os.path.join(src_dir, f)) 2632929Sktlim@umich.edu copyAction.strfunction = None 2646011Ssteve.reinhardt@amd.com env.Execute(copyAction) 2652929Sktlim@umich.edu return 0 2662929Sktlim@umich.edu 2672929Sktlim@umich.edudef update_test_string(target, source, env): 2682929Sktlim@umich.edu return env.subst("Updating ${SOURCES[0].dir} from ${SOURCES[1].dir}", 2692929Sktlim@umich.edu target=target, source=source) 2702929Sktlim@umich.edu 2712929Sktlim@umich.eduupdateAction = env.Action(update_test, update_test_string) 2722929Sktlim@umich.edu 2732997Sstever@eecs.umich.edudef test_builder(env, ref_dir): 2742997Sstever@eecs.umich.edu """Define a test.""" 2752929Sktlim@umich.edu 27610196SCurtis.Dunham@arm.com path = list(ref_dir.split('/')) 2772929Sktlim@umich.edu 27810196SCurtis.Dunham@arm.com # target path (where test output goes) consists of category, mode, 27910196SCurtis.Dunham@arm.com # name, isa, opsys, and config (skips the 'ref' component) 28010196SCurtis.Dunham@arm.com assert(path.pop(-4) == 'ref') 28110196SCurtis.Dunham@arm.com tgt_dir = os.path.join(*path[-6:]) 2822929Sktlim@umich.edu 28310196SCurtis.Dunham@arm.com # local closure for prepending target path to filename 2842997Sstever@eecs.umich.edu def tgt(f): 2852997Sstever@eecs.umich.edu return os.path.join(tgt_dir, f) 2862997Sstever@eecs.umich.edu 2875773Snate@binkert.org ref_stats = os.path.join(ref_dir, 'stats.txt') 2885773Snate@binkert.org new_stats = tgt('stats.txt') 2892997Sstever@eecs.umich.edu status_file = tgt('status') 2902997Sstever@eecs.umich.edu 2919922Ssteve.reinhardt@amd.com env.Command([status_file, new_stats], 2926007Ssteve.reinhardt@amd.com [env.M5Binary, 'run.py', ref_stats], 2932997Sstever@eecs.umich.edu testAction) 2942929Sktlim@umich.edu 2952997Sstever@eecs.umich.edu # phony target to echo status 2968120Sgblack@eecs.umich.edu if GetOption('update_ref'): 2972997Sstever@eecs.umich.edu p = env.Command(tgt('_update'), 2982997Sstever@eecs.umich.edu [ref_stats, new_stats, status_file], 2992997Sstever@eecs.umich.edu updateAction) 3002997Sstever@eecs.umich.edu else: 3012997Sstever@eecs.umich.edu p = env.Command(tgt('_print'), [status_file], printAction) 3022929Sktlim@umich.edu 3032997Sstever@eecs.umich.edu env.AlwaysBuild(p) 3042929Sktlim@umich.edu 3052929Sktlim@umich.edu 3063005Sstever@eecs.umich.edu# Figure out applicable configs based on build type 3073005Sstever@eecs.umich.educonfigs = [] 3088802Sgblack@eecs.umich.eduif env['TARGET_ISA'] == 'alpha': 3098802Sgblack@eecs.umich.edu configs += ['tsunami-simple-atomic', 3108802Sgblack@eecs.umich.edu 'tsunami-simple-timing', 3118802Sgblack@eecs.umich.edu 'tsunami-simple-atomic-dual', 3128802Sgblack@eecs.umich.edu 'tsunami-simple-timing-dual', 3138802Sgblack@eecs.umich.edu 'twosys-tsunami-simple-atomic', 3148802Sgblack@eecs.umich.edu 'tsunami-o3', 'tsunami-o3-dual', 31510260SAndrew.Bardsley@arm.com 'tsunami-minor', 'tsunami-minor-dual', 3169447SAndreas.Sandberg@ARM.com 'tsunami-switcheroo-full'] 3178802Sgblack@eecs.umich.eduif env['TARGET_ISA'] == 'sparc': 3188802Sgblack@eecs.umich.edu configs += ['t1000-simple-atomic', 3198802Sgblack@eecs.umich.edu 't1000-simple-timing'] 3208802Sgblack@eecs.umich.eduif env['TARGET_ISA'] == 'arm': 3218889Sgeoffrey.blake@arm.com configs += ['simple-atomic-dummychecker', 3228889Sgeoffrey.blake@arm.com 'o3-timing-checker', 3238889Sgeoffrey.blake@arm.com 'realview-simple-atomic', 3248802Sgblack@eecs.umich.edu 'realview-simple-atomic-dual', 32510751SAndreas.Sandberg@ARM.com 'realview-simple-atomic-checkpoint', 3268802Sgblack@eecs.umich.edu 'realview-simple-timing', 3278802Sgblack@eecs.umich.edu 'realview-simple-timing-dual', 3288802Sgblack@eecs.umich.edu 'realview-o3', 3298889Sgeoffrey.blake@arm.com 'realview-o3-checker', 3309447SAndreas.Sandberg@ARM.com 'realview-o3-dual', 33110260SAndrew.Bardsley@arm.com 'realview-minor', 33210260SAndrew.Bardsley@arm.com 'realview-minor-dual', 3339447SAndreas.Sandberg@ARM.com 'realview-switcheroo-atomic', 3349447SAndreas.Sandberg@ARM.com 'realview-switcheroo-timing', 3359447SAndreas.Sandberg@ARM.com 'realview-switcheroo-o3', 33610512SAli.Saidi@ARM.com 'realview-switcheroo-full', 33710512SAli.Saidi@ARM.com 'realview64-simple-atomic', 33810751SAndreas.Sandberg@ARM.com 'realview64-simple-atomic-checkpoint', 33910512SAli.Saidi@ARM.com 'realview64-simple-atomic-dual', 34010512SAli.Saidi@ARM.com 'realview64-simple-timing', 34110512SAli.Saidi@ARM.com 'realview64-simple-timing-dual', 34210512SAli.Saidi@ARM.com 'realview64-o3', 34310512SAli.Saidi@ARM.com 'realview64-o3-checker', 34410512SAli.Saidi@ARM.com 'realview64-o3-dual', 34510512SAli.Saidi@ARM.com 'realview64-minor', 34610512SAli.Saidi@ARM.com 'realview64-minor-dual', 34710512SAli.Saidi@ARM.com 'realview64-switcheroo-atomic', 34810512SAli.Saidi@ARM.com 'realview64-switcheroo-timing', 34910512SAli.Saidi@ARM.com 'realview64-switcheroo-o3', 35010512SAli.Saidi@ARM.com 'realview64-switcheroo-full'] 3518802Sgblack@eecs.umich.eduif env['TARGET_ISA'] == 'x86': 3528802Sgblack@eecs.umich.edu configs += ['pc-simple-atomic', 3538802Sgblack@eecs.umich.edu 'pc-simple-timing', 3549674Snilay@cs.wisc.edu 'pc-o3-timing', 3559674Snilay@cs.wisc.edu 'pc-switcheroo-full'] 3563691Shsul@eecs.umich.edu 35710260SAndrew.Bardsley@arm.comconfigs += ['simple-atomic', 'simple-atomic-mp', 35810260SAndrew.Bardsley@arm.com 'simple-timing', 'simple-timing-mp', 35910260SAndrew.Bardsley@arm.com 'minor-timing', 'minor-timing-mp', 36010260SAndrew.Bardsley@arm.com 'o3-timing', 'o3-timing-mp', 36110404Sandreas.hansson@arm.com 'rubytest', 'memtest', 'memtest-filter', 36210260SAndrew.Bardsley@arm.com 'tgen-simple-mem', 'tgen-dram-ctrl'] 3633005Sstever@eecs.umich.edu 3648492Snilay@cs.wisc.eduif env['PROTOCOL'] != 'None': 3656928SBrad.Beckmann@amd.com if env['PROTOCOL'] == 'MI_example': 3666928SBrad.Beckmann@amd.com configs += [c + "-ruby" for c in configs] 3676928SBrad.Beckmann@amd.com else: 3686928SBrad.Beckmann@amd.com configs = [c + "-ruby-" + env['PROTOCOL'] for c in configs] 3696166Ssteve.reinhardt@amd.com 37010196SCurtis.Dunham@arm.comsrc = Dir('.').srcdir 3713005Sstever@eecs.umich.edufor config in configs: 37210196SCurtis.Dunham@arm.com dirs = src.glob('*/*/*/ref/%s/*/%s' % (env['TARGET_ISA'], config)) 3732997Sstever@eecs.umich.edu for d in dirs: 37410196SCurtis.Dunham@arm.com d = str(d) 3756293Ssteve.reinhardt@amd.com if not os.path.exists(os.path.join(d, 'skip')): 3766293Ssteve.reinhardt@amd.com test_builder(env, d) 377