1 #! /bin/sh 2 3 dir=`dirname $0` 4 5 $dir/../../tests/filter_stderr_basic | 6 7 # Anonymise addresses 8 $dir/../../tests/filter_addresses | 9 10 # get rid of the numbers in bits of text "Thread #n", "thread #n", 11 # "Thread n" and "thread n", 12 # as these make some tests more scheduling sensitive -- those where 13 # there are multiple threads which play interchangeable roles. 14 sed \ 15 -e "s/hread #[0-9][0-9]*/hread #x/g" \ 16 -e "s/hread [0-9][0-9]*/hread x/g" | 17 18 # Likewise for frame numbers, which depend on compilation. 19 sed -e "s/frame #[0-9][0-9]*/frame #x/g" | \ 20 21 # Merge sem_wait and sem_wait@*, as either could be used. Likewise for 22 # sem_post. 23 sed \ 24 -e "s/sem_wait@\*/sem_wait/" \ 25 -e "s/sem_post@\*/sem_post/" | 26 27 # Remove "Helgrind, ..." line and the following copyright line; 28 # also the standard postamble (does such a word exist?) 29 sed \ 30 -e "/^Helgrind, a thread error detector/ , /./ d" \ 31 -e "/^For counts of detected and suppressed errors, rerun with: -v$/d" \ 32 -e "/^Use --history-level=approx or =none to gain increased speed, at$/d" \ 33 -e "/^the cost of reduced accuracy of conflicting-access information$/d" | 34 35 $dir/../../helgrind/tests/filter_helgrind "$@" 36 37 exit 0 38