5 if [[ $# -gt 0 ]]; then
8 ids=(`find data | grep '/===$' | cut -d/ -f2 | sort`)
12 for id in "${ids[@]}"; do
14 label="$id: $(< $dir/===)"
15 [[ -e "$dir/in.yaml" ]] || continue
16 if grep "$id" test/libyaml-parser.skip >/dev/null; then
17 echo "ok $((++count)) # SKIP $label"
20 ./src/libyaml-parser "$dir/in.yaml" > /tmp/test.out || {
27 output="$(${DIFF:-diff} -u $dir/test.event /tmp/test.out)" || ok=false
29 echo "ok $((++count)) $label"
31 echo "not ok $((++count)) $label"
32 echo "$output" | sed 's/^/# /'