SConscript (7926:38ade63ef775) | SConscript (8120:e4257cde2d79) |
---|---|
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 --- 164 unchanged lines hidden (view full) --- 173 return 0 174 175printAction = env.Action(print_test, strfunction = None) 176 177# Static vars for update_test: 178# - long-winded message about ignored sources 179ignore_msg = ''' 180Note: The following file(s) will not be copied. New non-standard | 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 --- 164 unchanged lines hidden (view full) --- 173 return 0 174 175printAction = env.Action(print_test, strfunction = None) 176 177# Static vars for update_test: 178# - long-winded message about ignored sources 179ignore_msg = ''' 180Note: The following file(s) will not be copied. New non-standard |
181 output files must be copied manually once before update_ref will | 181 output files must be copied manually once before --update-ref will |
182 recognize them as outputs. Otherwise they are assumed to be 183 inputs and are ignored. 184''' 185# - reference files always needed 186needed_files = set(['simout', 'simerr', 'stats.txt', 'config.ini']) 187# - source files we always want to ignore 188known_ignores = set(['status', 'outdiff', 'statsdiff']) 189 --- 56 unchanged lines hidden (view full) --- 246 new_stats = tgt('stats.txt') 247 status_file = tgt('status') 248 249 env.Command([status_file], 250 [env.M5Binary, 'run.py', ref_stats], 251 testAction) 252 253 # phony target to echo status | 182 recognize them as outputs. Otherwise they are assumed to be 183 inputs and are ignored. 184''' 185# - reference files always needed 186needed_files = set(['simout', 'simerr', 'stats.txt', 'config.ini']) 187# - source files we always want to ignore 188known_ignores = set(['status', 'outdiff', 'statsdiff']) 189 --- 56 unchanged lines hidden (view full) --- 246 new_stats = tgt('stats.txt') 247 status_file = tgt('status') 248 249 env.Command([status_file], 250 [env.M5Binary, 'run.py', ref_stats], 251 testAction) 252 253 # phony target to echo status |
254 if env['update_ref']: | 254 if GetOption('update_ref'): |
255 p = env.Command(tgt('_update'), 256 [ref_stats, new_stats, status_file], 257 updateAction) 258 else: 259 p = env.Command(tgt('_print'), [status_file], printAction) 260 261 env.AlwaysBuild(p) 262 --- 50 unchanged lines hidden --- | 255 p = env.Command(tgt('_update'), 256 [ref_stats, new_stats, status_file], 257 updateAction) 258 else: 259 p = env.Command(tgt('_print'), [status_file], printAction) 260 261 env.AlwaysBuild(p) 262 --- 50 unchanged lines hidden --- |