summaryrefslogtreecommitdiff
path: root/test/libyaml-emitter.t
diff options
context:
space:
mode:
Diffstat (limited to 'test/libyaml-emitter.t')
-rwxr-xr-xtest/libyaml-emitter.t34
1 files changed, 0 insertions, 34 deletions
diff --git a/test/libyaml-emitter.t b/test/libyaml-emitter.t
deleted file mode 100755
index 573349d..0000000
--- a/test/libyaml-emitter.t
+++ /dev/null
@@ -1,34 +0,0 @@
-#!/usr/bin/env bash
-
-set -e
-
-if [[ $# -gt 0 ]]; then
- ids=("$@")
-else
- ids=($(cut -d: -f1 < list/libyaml-emitter.list))
-fi
-
-count=0
-for id in "${ids[@]}"; do
- dir="data/$id"
- label="$id: $(< $dir/===)"
- [[ -e "$dir/in.yaml" ]] || continue
- want="$dir/out.yaml"
- [[ -e $want ]] || want="$dir/in.yaml"
- ../../tests/run-emitter-test-suite "$dir/test.event" > /tmp/test.out || {
- (
- cat "$dir/test.event"
- cat "$want"
- ) | sed 's/^/# /'
- }
- ok=true
- output="$(${DIFF:-diff} -u $want /tmp/test.out)" || ok=false
- if $ok; then
- echo "ok $((++count)) $label"
- else
- echo "not ok $((++count)) $label"
- echo "$output" | sed 's/^/# /'
- fi
-done
-
-echo "1..$count"