blob: 5bc4b105944a46f634169cb2b45d1a3d21450d0c [file] [log] [blame]
bart6530c2a2011-10-13 18:16:29 +00001#!/bin/sh
2
3cd "$(dirname $0)" || exit $?
4for f in *.vgtest
5do
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"
14 fi
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
bart57306c02011-10-15 07:27:56 +000019 ../../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
bart8720d532011-10-14 18:01:18 +000020 xmllint --noout --schema ../docs/drd-xml-output.xsd $b-${USER}.xml 2>&1 | tee $b.xmllint
21 else
22 echo "Skipping because $prereq failed"
bart6530c2a2011-10-13 18:16:29 +000023 fi
24done