6 for test in test/*.yaml; do
7 want=${test//.yaml/.events}
8 label="Parsing '$test' equals '$want'"
10 ./libyaml-parser $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'# }