5 if [[ $# -gt 0 ]]; then
8 ids=($(cut -d: -f1 < test/libyaml-parser.list))
12 for id in "${ids[@]}"; do
14 label="$id: $(< $dir/===)"
15 [[ -e "$dir/in.yaml" ]] || continue
16 ./src/libyaml-parser "$dir/in.yaml" > /tmp/test.out || {
23 output="$(${DIFF:-diff} -u $dir/test.event /tmp/test.out)" || ok=false
25 echo "ok $((++count)) $label"
27 echo "not ok $((++count)) $label"
28 echo "$output" | sed 's/^/# /'