SConscript (2932:eba74420a01c) | SConscript (2953:10e7700b27f6) |
---|---|
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 | 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 = [] |
|
158 if len(cpu_list) == 0: | 159 if len(cpu_list) == 0: |
159 cpu_list = env['CPU_MODELS'] | 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 |
160 if env['TEST_CPU_MODELS']: | 166 if env['TEST_CPU_MODELS']: |
161 temp_cpu_list = [] | 167 valid_cpu_list = [] |
162 for i in env['TEST_CPU_MODELS']: 163 if i in cpu_list: | 168 for i in env['TEST_CPU_MODELS']: 169 if i in cpu_list: |
164 temp_cpu_list.append(i) 165 cpu_list = temp_cpu_list | 170 valid_cpu_list.append(i) 171 cpu_list = valid_cpu_list |
166# Code commented out that shows the general structure if we want to test 167# different OS's as well. 168# if len(os_list) == 0: 169# for test_cpu in cpu_list: 170# build_cpu_test(env, category, '', test_cpu, refdir, timeout) 171# else: 172# for test_os in os_list: 173# for test_cpu in cpu_list: --- 89 unchanged lines hidden --- | 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 --- |