From 69701f4d14ec8e98bf88fe54fc45fc74f4145346 Mon Sep 17 00:00:00 2001 From: Werner Almesberger Date: Sat, 2 Jun 2012 05:50:07 -0300 Subject: [PATCH] b2/test/Common: support multiple files of the same kind (!-c1, !-c2, etc.) --- b2/test/Common | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/b2/test/Common b/b2/test/Common index 5e7c4e3..6656ec0 100755 --- a/b2/test/Common +++ b/b2/test/Common @@ -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" "$@" }