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