bart | 6530c2a | 2011-10-13 18:16:29 +0000 | [diff] [blame] | 1 | #!/bin/sh |
| 2 | |
| 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" |
| 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 |
bart | 57306c0 | 2011-10-15 07:27:56 +0000 | [diff] [blame] | 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 |
bart | 8720d53 | 2011-10-14 18:01:18 +0000 | [diff] [blame] | 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" |
bart | 6530c2a | 2011-10-13 18:16:29 +0000 | [diff] [blame] | 23 | fi |
| 24 | done |