Deleted Added
sdiff udiff text old ( 8889:2e38fd9937a9 ) new ( 8947:217fbc57df05 )
full compact
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

--- 24 unchanged lines hidden (view full) ---

33import sys, time
34import glob
35from SCons.Script.SConscript import SConsEnvironment
36
37Import('env')
38
39env['DIFFOUT'] = File('diff-out')
40
41# Dict that accumulates lists of tests by category (quick, medium, long)
42env.Tests = {}
43
44def contents(node):
45 return file(str(node)).read()
46
47# functions to parse return value from scons Execute()... not the same
48# as wait() etc., so python built-in os funcs don't work.

--- 117 unchanged lines hidden (view full) ---

166
167def run_test_string(target, source, env):
168 return env.subst("Running test in ${TARGETS[0].dir}.",
169 target=target, source=source)
170
171testAction = env.Action(run_test, run_test_string)
172
173def print_test(target, source, env):
174 print '***** ' + contents(source[0])
175 return 0
176
177printAction = env.Action(print_test, strfunction = None)
178
179# Static vars for update_test:
180# - long-winded message about ignored sources
181ignore_msg = '''
182Note: The following file(s) will not be copied. New non-standard

--- 129 unchanged lines hidden ---