Unbreak images
[git/dscho.git] / source-1232997290.txt
blobbb33ffbb012d3edce9d79f29bb0a94dbe2ea96f4
1 Valgrind takes a loooong time
3 Yesterday, I started a run on a fast machine, and it took roughly 5.5
4 hours by the machine's clock.
6 And of course, I redirected stdout only... *sigh*
8 Which triggered a Google search how to force redirection of all the output
9 in the test scripts to a file and the terminal at the same time.
11 It seems as if that is not easily done.  I tried
12 <center><bash>
13 exec >(tee out) 2>&1                           </bash></center>
15 but that did not work: it mumbled something about invalid file handles or some
16 such.
18 The only solution I found was:
19 <center><bash>
20 mkpipe pipe                                    
21 tee out < pipe &
22 exec > pipe 2>&1 </bash></center>
24 That is a problem for parallel execution, though, so I am still looking for a
25 better way to do it.
27 Once I have the output, it is relatively easy to analyze it, as I already
28 made a script which disects the output into valgrind output and the test
29 case it came from, then groups by common valgrind output and shows the
30 result to the user.