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 --- 141 unchanged lines hidden (view full) --- 150 refdir -- subdirectory containing reference output (default 'ref') 151 timeout -- test timeout in minutes (only enforced on pool) 152 153 """ 154 155 default_refdir = False 156 if refdir == 'ref': 157 default_refdir = True |
158 valid_cpu_list = [] |
159 if len(cpu_list) == 0: |
160 valid_cpu_list = env['CPU_MODELS'] 161 else: 162 for i in cpu_list: 163 if i in env['CPU_MODELS']: 164 valid_cpu_list.append(i) 165 cpu_list = valid_cpu_list |
166 if env['TEST_CPU_MODELS']: |
167 valid_cpu_list = [] |
168 for i in env['TEST_CPU_MODELS']: 169 if i in cpu_list: |
170 valid_cpu_list.append(i) 171 cpu_list = valid_cpu_list |
172# Code commented out that shows the general structure if we want to test 173# different OS's as well. 174# if len(os_list) == 0: 175# for test_cpu in cpu_list: 176# build_cpu_test(env, category, '', test_cpu, refdir, timeout) 177# else: 178# for test_os in os_list: 179# for test_cpu in cpu_list: --- 89 unchanged lines hidden --- |