1
0
mirror of git://projects.qi-hardware.com/eda-tools.git synced 2024-11-22 16:01:54 +02:00

b2/test/Common: support multiple files of the same kind (!-c1, !-c2, etc.)

This commit is contained in:
Werner Almesberger 2012-06-02 05:50:07 -03:00
parent f09e4b21fa
commit 69701f4d14

View File

@ -15,10 +15,13 @@ run_boom()
{
args="-N h <(sed -n '/^!-/q;p' _in)"
for n in c i x p s b X; do
if grep ^!-$n _in >/dev/null; then
args="$args -N $n"
args="$args -$n <(sed -n '1,/^!-$n/d;/^!-/q;p' _in)"
fi
for m in "" 1 2 3; do
if grep ^!-$n$m\$ _in >/dev/null; then
args="$args -N $n$m"
args="$args -$n \
<(sed -n '1,/^!-$n$m/d;/^!-/q;p' _in)"
fi
done
done
eval $VALGRIND ../boom "$args" "$@"
}