4 for a in tests/????-* ; do
9 sed '1d; /^---/,$d' <$a >tmp/in
10 sed '1,/^---/d; /^---/,$d' <$a >tmp/expected-out
11 sed '1,/^---/d; 1,/^---/d' <$a >tmp/expected-err
12 if eval ./xsv $ARGS <tmp/in >tmp/out 2>tmp/err ; then
13 if ! cmp -s tmp/out tmp/expected-out ; then
15 diff -u tmp/expected-out tmp/out
17 elif ! cmp -s tmp/err tmp/expected-err ; then
19 diff -u tmp/expected-err tmp/err