]> andersk Git - libyaml.git/blobdiff - tests/run-test-suite/test/libyaml-parser.t
Rewrite make test-suite
[libyaml.git] / tests / run-test-suite / test / libyaml-parser.t
index c891df95e05086b6fbb05d716efafb323bd335e0..6be2395d747748e2a730f196acb52e3bfb8d2234 100755 (executable)
@@ -5,7 +5,7 @@ set -e
 if [[ $# -gt 0 ]]; then
   ids=("$@")
 else
-  ids=(`find data | grep '/===$' | cut -d/ -f2 | sort`)
+  ids=($(cut -d: -f1 < test/libyaml-parser.list))
 fi
 
 count=0
@@ -13,11 +13,7 @@ for id in "${ids[@]}"; do
   dir="data/$id"
   label="$id: $(< $dir/===)"
   [[ -e "$dir/in.yaml" ]] || continue
-  if grep "$id" test/libyaml-parser.skip >/dev/null; then
-    echo "ok $((++count)) # SKIP $label"
-    continue
-  fi
-  ./src/libyaml-parser "$dir/in.yaml" > /tmp/test.out || {
+  ../../tests/run-parser-test-suite "$dir/in.yaml" > /tmp/test.out || {
     (
       cat "$dir/in.yaml"
       cat "$dir/test.event"
This page took 0.044881 seconds and 4 git commands to generate.