SConscript (3005:ceb86e85d62d) SConscript (3020:a33d8709d348)
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

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

56 # make sure target files are all gone
57 for t in target:
58 if os.path.exists(t.abspath):
59 Execute(Delete(t.abspath))
60 # Run diff on output & ref directories to find differences.
61 # Exclude m5stats.txt since we will use diff-out on that.
62 Execute(env.subst('diff -ubr ${SOURCES[0].dir} ${SOURCES[1].dir} ' +
63 '-I "^command line:" ' + # for stdout file
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

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

56 # make sure target files are all gone
57 for t in target:
58 if os.path.exists(t.abspath):
59 Execute(Delete(t.abspath))
60 # Run diff on output & ref directories to find differences.
61 # Exclude m5stats.txt since we will use diff-out on that.
62 Execute(env.subst('diff -ubr ${SOURCES[0].dir} ${SOURCES[1].dir} ' +
63 '-I "^command line:" ' + # for stdout file
64 '-I "^M5 compiled on" ' + # for stderr file
65 '-I "^M5 simulation started" ' + # for stderr file
64 '-I "^M5 compiled " ' + # for stderr file
65 '-I "^M5 started " ' + # for stderr file
66 '-I "^M5 executing on " ' + # for stderr file
66 '-I "^Simulation complete at" ' + # for stderr file
67 '-I "^Listening for" ' + # for stderr file
68 '--exclude=m5stats.txt --exclude=SCCS ' +
69 '--exclude=${TARGETS[0].file} ' +
70 '> ${TARGETS[0]}', target=target, source=source), None)
71 print "===== Output differences ====="
72 print contents(target[0])
73 # Run diff-out on m5stats.txt file

--- 142 unchanged lines hidden ---
67 '-I "^Simulation complete at" ' + # for stderr file
68 '-I "^Listening for" ' + # for stderr file
69 '--exclude=m5stats.txt --exclude=SCCS ' +
70 '--exclude=${TARGETS[0].file} ' +
71 '> ${TARGETS[0]}', target=target, source=source), None)
72 print "===== Output differences ====="
73 print contents(target[0])
74 # Run diff-out on m5stats.txt file

--- 142 unchanged lines hidden ---