]> andersk Git - libyaml.git/blobdiff - tests/run-test-suite/test/libyaml-emitter.t
Move tests/run-test-suite to branch run-test-suite
[libyaml.git] / tests / run-test-suite / test / libyaml-emitter.t
diff --git a/tests/run-test-suite/test/libyaml-emitter.t b/tests/run-test-suite/test/libyaml-emitter.t
deleted file mode 100755 (executable)
index fb8a634..0000000
+++ /dev/null
@@ -1,43 +0,0 @@
-#!/usr/bin/env bash
-
-set -e
-
-if [[ $# -gt 0 ]]; then
-  ids=("$@")
-else
-  ids=(`find data | grep '/===$' | cut -d/ -f2 | sort`)
-fi
-
-# Some environments like on OS X, the shell resets the following vars, so we
-# work around it like so:
-export LD_LIBRARY_PATH="${MY_LD_LIBRARY_PATH:?}"
-export DYLD_LIBRARY_PATH="${MY_LD_LIBRARY_PATH:?}"
-
-count=0
-for id in "${ids[@]}"; do
-  dir="data/$id"
-  label="$id: $(< $dir/===)"
-  [[ -e "$dir/in.yaml" ]] || continue
-  if grep "$id" test/libyaml-emitter.skip >/dev/null; then
-    echo "ok $((++count)) # SKIP $label"
-    continue
-  fi
-  want="$dir/out.yaml"
-  [[ -e $want ]] || want="$dir/in.yaml"
-  ./src/libyaml-emitter "$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"
This page took 0.027275 seconds and 4 git commands to generate.