6 for test in test/*.events; do
7 want=${test//.events/.out}
8 label="Emitting '$test' equals '$want'"
10 ./libyaml-emitter $test > $got || rc=$?
11 if [[ $rc -ne 0 ]]; then
12 echo "not ok $((++count)) - Error code $rc"
16 diff=$(diff -u $want $got) || rc=$?
17 if [[ $rc -eq 0 ]]; then
18 echo "ok $((++count)) - $label"
20 echo "not ok $((++count)) - $label"
21 diff=${diff//$'\n'/$'\n'# }