]> andersk Git - libyaml.git/blame - tests/run-test-suite/src/test/libyaml-parser.t
Replace Mercurial with Git in README
[libyaml.git] / tests / run-test-suite / src / test / libyaml-parser.t
CommitLineData
a672b071
IN
1#!/bin/bash
2
3got=$(mktemp)
4
5count=0
6for test in test/*.yaml; do
7 want=${test//.yaml/.events}
8 label="Parsing '$test' equals '$want'"
9 rc=0
10 ./libyaml-parser $test > $got || rc=$?
11 if [[ $rc -ne 0 ]]; then
12 echo "not ok $((++count)) - Error code $rc"
13 continue
14 fi
15 rc=0
16 diff=$(diff -u $want $got) || rc=$?
17 if [[ $rc -eq 0 ]]; then
18 echo "ok $((++count)) - $label"
19 else
20 echo "not ok $((++count)) - $label"
21 diff=${diff//$'\n'/$'\n'# }
22 echo "# $diff"
23 fi
24done
25
26echo "1..$count"
This page took 0.044075 seconds and 5 git commands to generate.