blob: af48074c1a7b1728e689434b16f650704a15f19f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
#!/usr/bin/env bash
set -e
if [[ $# -gt 0 ]]; then
ids=("$@")
else
ids=($(cut -d: -f1 < test/libyaml-parser-error.list))
fi
count=0
for id in "${ids[@]}"; do
dir="data/$id"
label="$id: $(< $dir/===)"
[[ -e "$dir/in.yaml" ]] || continue
ok=true
../../tests/run-parser-test-suite "$dir/in.yaml" > /tmp/test.out 2>&1 || ok=false
if $ok; then
echo "not ok $((++count)) $label"
sed 's/^/# /' /tmp/test.out
else
echo "ok $((++count)) $label"
fi
done
echo "1..$count"
|