1
0
mirror of git://projects.qi-hardware.com/eda-tools.git synced 2024-11-22 21:23:10 +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)" args="-N h <(sed -n '/^!-/q;p' _in)"
for n in c i x p s b X; do for n in c i x p s b X; do
if grep ^!-$n _in >/dev/null; then for m in "" 1 2 3; do
args="$args -N $n" if grep ^!-$n$m\$ _in >/dev/null; then
args="$args -$n <(sed -n '1,/^!-$n/d;/^!-/q;p' _in)" args="$args -N $n$m"
fi args="$args -$n \
<(sed -n '1,/^!-$n$m/d;/^!-/q;p' _in)"
fi
done
done done
eval $VALGRIND ../boom "$args" "$@" eval $VALGRIND ../boom "$args" "$@"
} }