Check some known PATHs for mpicc in configure.
[valgrind.git] / drd / tests / verify-xml-output
blob5bc4b105944a46f634169cb2b45d1a3d21450d0c
1 #!/bin/sh
3 cd "$(dirname $0)" || exit $?
4 for f in *.vgtest
5 do
6 b="${f%.vgtest}"
7 if [ ${b%_xml} != $b ]; then
8 continue
9 fi
10 echo === $b
11 prereq="$(sed -n 's/^prereq: //p' $f)"
12 if [ "$prereq" = "" ]; then
13 prereq="true"
15 prog="$(sed -n 's/^prog: //p' $f)"
16 args="$(sed -n 's/^args: //p' $f)"
17 vgopts="$(sed -n 's/^vgopts: //p' $f)"
18 if eval $prereq; then
19 ../../vg-in-place --tool=drd --xml=yes --xml-file="$b-%q{USER}.xml" --xml-user-comment="<runBy>$(basename $0)</runBy>" --child-silent-after-fork=yes --gen-suppressions=all $vgopts ./$prog $args
20 xmllint --noout --schema ../docs/drd-xml-output.xsd $b-${USER}.xml 2>&1 | tee $b.xmllint
21 else
22 echo "Skipping because $prereq failed"
24 done