]> andersk Git - libyaml.git/commitdiff
Move tests/run-test-suite to branch run-test-suite
authorIngy döt Net <ingy@ingy.net>
Thu, 28 Dec 2017 21:16:38 +0000 (13:16 -0800)
committerIngy döt Net <ingy@ingy.net>
Sat, 30 Dec 2017 03:58:07 +0000 (19:58 -0800)
with the intent that `make test-suite` will use it as a branch.

This commit makes the libyaml and yaml-test-suite repos completely
independent. The only thing in master is a Makefile rule for
`make run-test-suite`.

The run-test-suite branch takes care of everything else.

This will keep the master branch history clean from any yaml-test-suite
activity, while keeping everything up to date.

Pinning will just work for whatever commit of master you run the tests
from. The pinning work will all be done in the `run-test-suite` branch.

15 files changed:
.gitignore
.makefile
Makefile.am
tests/run-test-suite/Makefile [deleted file]
tests/run-test-suite/ReadMe.md [deleted file]
tests/run-test-suite/src/test/example-2.27-invoice.events [deleted file]
tests/run-test-suite/src/test/example-2.27-invoice.out [deleted file]
tests/run-test-suite/src/test/example-2.27-invoice.yaml [deleted file]
tests/run-test-suite/src/test/libyaml-emitter.t [deleted file]
tests/run-test-suite/src/test/libyaml-parser.t [deleted file]
tests/run-test-suite/test/libyaml-emitter.list [deleted file]
tests/run-test-suite/test/libyaml-emitter.t [deleted file]
tests/run-test-suite/test/libyaml-parser.list [deleted file]
tests/run-test-suite/test/libyaml-parser.t [deleted file]
tests/run-tests.sh

index 74165f519865daab693eade7d82069deddbc27d9..fb3b92b2c67962612fa0949e0cf2178ed470412b 100644 (file)
@@ -53,10 +53,7 @@ Makefile.in
 /tests/run-parser
 /tests/run-parser-test-suite
 /tests/run-scanner
-/tests/run-test-suite/data
-tests/run-test-suite/src/libyaml/
-tests/run-test-suite/src/libyaml-emitter
-tests/run-test-suite/src/libyaml-parser
+/tests/run-test-suite/
 /tests/test-reader
 /tests/test-reader.log
 /tests/test-reader.trs
index ba7c056c17f496c0c0b0485b38d042547e320651..9d526a4d3983e9db063c9eedf3796f4f0f78176a 100644 (file)
--- a/.makefile
+++ b/.makefile
@@ -58,5 +58,6 @@ indent:
        $(INDENT) $(SOURCE_FILES)
 
 distclean purge:
-       rm -fr tests/run-test-suite/data
        git clean -dxf -e GNUmakefile
+       rm -fr tests/run-test-suite
+       git worktree prune
index c63b274da0a5d28051b520d9733e4abd5033d200..45ad78d58e79938797d45aac20869d10977cd857 100644 (file)
@@ -13,7 +13,8 @@ maintainer-clean-local:
        -find ${builddir} -name Makefile.in -exec rm -f '{}' ';'
 
 distclean-local:
-       -make -C tests/run-test-suite clean
+       -rm -fr tests/run-test-suite
+       -git worktree prune
 
 .PHONY: bootstrap
 bootstrap: maintainer-clean
@@ -24,7 +25,11 @@ bootstrap: maintainer-clean
 test: all
        make -C tests check-TESTS
 
-test-suite:
-       make -C tests/run-test-suite test
+test-suite: tests/run-test-suite
+       make -C $< test
 
 test-all: test test-suite
+
+tests/run-test-suite:
+       git fetch origin run-test-suite:run-test-suite
+       git worktree add $@ run-test-suite
diff --git a/tests/run-test-suite/Makefile b/tests/run-test-suite/Makefile
deleted file mode 100644 (file)
index 4b9570e..0000000
+++ /dev/null
@@ -1,20 +0,0 @@
-.PHONY: test
-GITHUB_ORG_URI := https://github.com/yaml
-TEST_SUITE_URL := $(GITHUB_ORG_URI)/yaml-test-suite
-
-default: help
-
-help:
-       @echo 'test  - Run the tests'
-       @echo 'clean - Remove generated files'
-       @echo 'help  - Show help'
-
-test: data
-       prove -lv test
-
-clean:
-       rm -fr data
-
-data:
-       git clone $(TEST_SUITE_URL) $@ --branch=$@
-
diff --git a/tests/run-test-suite/ReadMe.md b/tests/run-test-suite/ReadMe.md
deleted file mode 100644 (file)
index f991b37..0000000
+++ /dev/null
@@ -1,35 +0,0 @@
-LibYAML Test Runner
-===================
-
-Run run-parser-test-suite and run-emitter-test-suite against yaml-test-suite
-
-# Synopsis
-
-```
-make test
-# Run tests from yaml-test-suite
-make test-suite
-```
-
-# Overview
-
-See:
-
-* https://github.com/yaml/yaml-test-suite
-
-# Usage
-
-Print parse events for a YAML file (or stdin):
-```
-../run-parser-test-suite file.yaml
-../run-parser-test-suite < file.yaml
-cat file.yaml | ../run-parser-test-suite
-```
-
-Print the YAML for a libyaml-parser events file (or stdin):
-```
-../run-emitter-test-suite file.events
-../run-emitter-test-suite < file.events
-cat file.events | ../libyaml-run-test-suite
-```
-
diff --git a/tests/run-test-suite/src/test/example-2.27-invoice.events b/tests/run-test-suite/src/test/example-2.27-invoice.events
deleted file mode 100644 (file)
index fdd1b5f..0000000
+++ /dev/null
@@ -1,59 +0,0 @@
-+STR
-+DOC ---
-+MAP <tag:clarkevans.com,2002:invoice>
-=VAL :invoice
-=VAL :34843
-=VAL :date
-=VAL :2001-01-23
-=VAL :bill-to
-+MAP &id001
-=VAL :given
-=VAL :Chris
-=VAL :family
-=VAL :Dumars
-=VAL :address
-+MAP
-=VAL :lines
-=VAL |458 Walkman Dr.\nSuite #292\n
-=VAL :city
-=VAL :Royal Oak
-=VAL :state
-=VAL :MI
-=VAL :postal
-=VAL :48046
--MAP
--MAP
-=VAL :ship-to
-=ALI *id001
-=VAL :product
-+SEQ
-+MAP
-=VAL :sku
-=VAL :BL394D
-=VAL :quantity
-=VAL :4
-=VAL :description
-=VAL :Basketball
-=VAL :price
-=VAL :450.00
--MAP
-+MAP
-=VAL :sku
-=VAL :BL4438H
-=VAL :quantity
-=VAL :1
-=VAL :description
-=VAL :Super Hoop
-=VAL :price
-=VAL :2392.00
--MAP
--SEQ
-=VAL :tax
-=VAL :251.42
-=VAL :total
-=VAL :4443.52
-=VAL :comments
-=VAL :Late afternoon is best. Backup contact is Nancy Billsmer @ 338-4338.
--MAP
--DOC
--STR
diff --git a/tests/run-test-suite/src/test/example-2.27-invoice.out b/tests/run-test-suite/src/test/example-2.27-invoice.out
deleted file mode 100644 (file)
index 1a876c9..0000000
+++ /dev/null
@@ -1,26 +0,0 @@
---- !<tag:clarkevans.com,2002:invoice>
-invoice: 34843
-date: 2001-01-23
-bill-to: &id001
-  given: Chris
-  family: Dumars
-  address:
-    lines: |
-      458 Walkman Dr.
-      Suite #292
-    city: Royal Oak
-    state: MI
-    postal: 48046
-ship-to: *id001
-product:
-- sku: BL394D
-  quantity: 4
-  description: Basketball
-  price: 450.00
-- sku: BL4438H
-  quantity: 1
-  description: Super Hoop
-  price: 2392.00
-tax: 251.42
-total: 4443.52
-comments: Late afternoon is best. Backup contact is Nancy Billsmer @ 338-4338.
diff --git a/tests/run-test-suite/src/test/example-2.27-invoice.yaml b/tests/run-test-suite/src/test/example-2.27-invoice.yaml
deleted file mode 100644 (file)
index 4625739..0000000
+++ /dev/null
@@ -1,29 +0,0 @@
---- !<tag:clarkevans.com,2002:invoice>
-invoice: 34843
-date   : 2001-01-23
-bill-to: &id001
-    given  : Chris
-    family : Dumars
-    address:
-        lines: |
-            458 Walkman Dr.
-            Suite #292
-        city    : Royal Oak
-        state   : MI
-        postal  : 48046
-ship-to: *id001
-product:
-    - sku         : BL394D
-      quantity    : 4
-      description : Basketball
-      price       : 450.00
-    - sku         : BL4438H
-      quantity    : 1
-      description : Super Hoop
-      price       : 2392.00
-tax  : 251.42
-total: 4443.52
-comments:
-    Late afternoon is best.
-    Backup contact is Nancy
-    Billsmer @ 338-4338.
diff --git a/tests/run-test-suite/src/test/libyaml-emitter.t b/tests/run-test-suite/src/test/libyaml-emitter.t
deleted file mode 100644 (file)
index 7afd5f0..0000000
+++ /dev/null
@@ -1,26 +0,0 @@
-#!/bin/bash
-
-got=$(mktemp)
-
-count=0
-for test in test/*.events; do
-  want=${test//.events/.out}
-  label="Emitting '$test' equals '$want'"
-  rc=0
-  ./libyaml-emitter $test > $got || rc=$?
-  if [[ $rc -ne 0 ]]; then
-    echo "not ok $((++count)) - Error code $rc"
-    continue
-  fi
-  rc=0
-  diff=$(diff -u $want $got) || rc=$?
-  if [[ $rc -eq 0 ]]; then
-    echo "ok $((++count)) - $label"
-  else
-    echo "not ok $((++count)) - $label"
-    diff=${diff//$'\n'/$'\n'# }
-    echo "# $diff"
-  fi
-done
-
-echo "1..$count"
diff --git a/tests/run-test-suite/src/test/libyaml-parser.t b/tests/run-test-suite/src/test/libyaml-parser.t
deleted file mode 100644 (file)
index 40c56da..0000000
+++ /dev/null
@@ -1,26 +0,0 @@
-#!/bin/bash
-
-got=$(mktemp)
-
-count=0
-for test in test/*.yaml; do
-  want=${test//.yaml/.events}
-  label="Parsing '$test' equals '$want'"
-  rc=0
-  ./libyaml-parser $test > $got || rc=$?
-  if [[ $rc -ne 0 ]]; then
-    echo "not ok $((++count)) - Error code $rc"
-    continue
-  fi
-  rc=0
-  diff=$(diff -u $want $got) || rc=$?
-  if [[ $rc -eq 0 ]]; then
-    echo "ok $((++count)) - $label"
-  else
-    echo "not ok $((++count)) - $label"
-    diff=${diff//$'\n'/$'\n'# }
-    echo "# $diff"
-  fi
-done
-
-echo "1..$count"
diff --git a/tests/run-test-suite/test/libyaml-emitter.list b/tests/run-test-suite/test/libyaml-emitter.list
deleted file mode 100644 (file)
index 50f922a..0000000
+++ /dev/null
@@ -1,161 +0,0 @@
-229Q: Spec Example 2.4. Sequence of Mappings
-27NA: Spec Example 5.9. Directive Indicator
-2AUY: Tags in Block Sequence
-35KP: Tags for Root Objects
-36F6: Multiline plain scalar with empty line
-3ALJ: Block Sequence in Block Sequence
-3GZX: Spec Example 7.1. Alias Nodes
-3UYS: Escaped slash in double quotes
-4CQQ: Spec Example 2.18. Multi-line Flow Scalars
-4GC6: Spec Example 7.7. Single Quoted Characters
-4Q9F: Folded Block Scalar [1.3]
-4UYU: Colon in Double Quoted String
-4V8U: Plain scalar with backslashes
-4ZYM: Spec Example 6.4. Line Prefixes
-54T7: Flow Mapping
-57H4: Spec Example 8.22. Block Collection Nodes
-5BVJ: Spec Example 5.7. Block Scalar Indicators
-5C5M: Spec Example 7.15. Flow Mappings
-5GBF: Spec Example 6.5. Empty Lines
-5KJE: Spec Example 7.13. Flow Sequence
-5NYZ: Spec Example 6.9. Separated Comment
-65WH: Single Entry Block Sequence
-6BCT: Spec Example 6.3. Separation Spaces
-6BFJ: Mapping, key and flow sequence item anchors
-6H3V: Backslashes in singlequotes
-6HB6: Spec Example 6.1. Indentation Spaces
-6JQW: Spec Example 2.13. In literals, newlines are preserved
-6JWB: Tags for Block Objects
-6LVF: Spec Example 6.13. Reserved Directives
-6VJK: Spec Example 2.15. Folded newlines are preserved for "more indented" and blank lines
-735Y: Spec Example 8.20. Block Node Types
-74H7: Tags in Implicit Mapping
-753E: Block Scalar Strip [1.3]
-77H8: Spec Example 2.23. Various Explicit Tags
-7A4E: Spec Example 7.6. Double Quoted Lines
-7BMT: Node and Mapping Key Anchors [1.3]
-7BUB: Spec Example 2.10. Node for “Sammy Sosa” appears twice in this document
-7FWL: Spec Example 6.24. Verbatim Tags
-7T8X: Spec Example 8.10. Folded Lines - 8.13. Final Empty Lines
-7TMG: Comment in flow sequence before comma
-82AN: Three dashes and content without space
-87E4: Spec Example 7.8. Single Quoted Implicit Keys
-8CWC: Plain mapping key ending with colon
-8G76: Spec Example 6.10. Comment Lines
-8QBE: Block Sequence in Block Mapping
-8UDB: Spec Example 7.14. Flow Sequence Entries
-93JH: Block Mappings in Block Sequence
-93WF: Spec Example 6.6. Line Folding [1.3]
-96L6: Spec Example 2.14. In the folded scalars, newlines become spaces
-98YD: Spec Example 5.5. Comment Indicator
-9FMG: Multi-level Mapping Indent
-9J7A: Simple Mapping Indent
-9KAX: Various combinations of tags and anchors
-9SHH: Spec Example 5.8. Quoted Scalar Indicators
-9U5K: Spec Example 2.12. Compact Nested Mapping
-9WXW: Spec Example 6.18. Primary Tag Handle
-9YRD: Multiline Scalar at Top Level
-A2M4: Spec Example 6.2. Indentation Indicators
-A6F9: Spec Example 8.4. Chomping Final Line Break
-A984: Multiline Scalar in Mapping
-AB8U: Sequence entry that looks like two with wrong indentation
-AVM7: Empty Stream
-AZ63: Sequence With Same Indentation as Parent Mapping
-AZW3: Lookahead test cases
-BEC7: Spec Example 6.14. “YAML” directive
-BU8L: Node Anchor and Tag on Seperate Lines
-C4HZ: Spec Example 2.24. Global Tags
-CC74: Spec Example 6.20. Tag Handles
-CN3R: Various location of anchors in flow sequence
-CT4Q: Spec Example 7.20. Single Pair Explicit Entry
-CUP7: Spec Example 5.6. Node Property Indicators
-CXX2: Mapping with anchor on document start line
-D83L: Block scalar indicator order
-D88J: Flow Sequence in Block Mapping
-D9TU: Single Pair Block Mapping
-DBG4: Spec Example 7.10. Plain Characters
-DC7X: Various trailing tabs
-DHP8: Flow Sequence
-DK3J: Zero indented block scalar with line that looks like a comment
-DWX9: Spec Example 8.8. Literal Content
-EHF6: Tags for Flow Objects
-F2C7: Anchors and Tags
-F3CP: Nested flow collections on one line
-F8F9: Spec Example 8.5. Chomping Trailing Lines
-FP8R: Zero indented block scalar
-FQ7F: Spec Example 2.1. Sequence of Scalars
-FUP4: Flow Sequence in Flow Sequence
-G4RS: Spec Example 2.17. Quoted Scalars
-G992: Spec Example 8.9. Folded Scalar
-GH63: Mixed Block Mapping (explicit to implicit)
-H2RW: Blank lines
-H3Z8: Literal unicode
-HMK4: Spec Example 2.16. Indentation determines scope
-HMQ5: Spec Example 6.23. Node Properties
-HS5T: Spec Example 7.12. Plain Lines
-J5UC: Multiple Pair Block Mapping
-J7PZ: Spec Example 2.26. Ordered Mappings
-J7VC: Empty Lines Between Mapping Elements
-J9HZ: Spec Example 2.9. Single Document with Two Comments
-JHB9: Spec Example 2.7. Two Documents in a Stream
-JQ4R: Spec Example 8.14. Block Sequence
-JS2J: Spec Example 6.29. Node Anchors
-K4SU: Multiple Entry Block Sequence
-K527: Spec Example 6.6. Line Folding
-K858: Spec Example 8.6. Empty Scalar Chomping
-KMK3: Block Submapping
-L94M: Tags in Explicit Mapping
-L9U5: Spec Example 7.11. Plain Implicit Keys
-LP6E: Whitespace After Scalars in Flow
-LQZ7: Spec Example 7.4. Double Quoted Implicit Keys
-LX3P: Implicit Flow Mapping Key on one line
-M29M: Literal Block Scalar
-M5C3: Spec Example 8.21. Block Scalar Nodes
-M5DY: Spec Example 2.11. Mapping between Sequences
-M7NX: Nested flow collections
-MJS9: Spec Example 6.7. Block Folding
-MXS3: Flow Mapping in Block Sequence
-MYW6: Block Scalar Strip
-MZX3: Non-Specific Tags on Scalars
-NP9H: Spec Example 7.5. Double Quoted Line Breaks
-P2AD: Spec Example 8.1. Block Scalar Header
-P76L: Spec Example 6.19. Secondary Tag Handle
-P94K: Spec Example 6.11. Multi-Line Comments
-PBJ2: Spec Example 2.3. Mapping Scalars to Sequences
-PRH3: Spec Example 7.9. Single Quoted Lines
-Q5MG: Tab at beginning of line followed by a flow mapping
-Q88A: Spec Example 7.23. Flow Content
-Q9WF: Spec Example 6.12. Separation Spaces
-QF4Y: Spec Example 7.19. Single Pair Flow Mappings
-R4YG: Spec Example 8.2. Block Indentation Indicator
-RLU9: Sequence Indent
-RR7F: Mixed Block Mapping (implicit to explicit)
-RTP8: Spec Example 9.2. Document Markers
-RZP5: Various Trailing Comments [1.3]
-RZT7: Spec Example 2.28. Log File
-S4T7: Document with footer
-S98Z: Block scalar with spaces only
-S9E8: Spec Example 5.3. Block Structure Indicators
-SBG9: Flow Sequence in Flow Mapping
-SKE5: Anchor before zero indented sequence
-SSW6: Spec Example 7.7. Single Quoted Characters [1.3]
-SYW4: Spec Example 2.2. Mapping Scalars to Scalars
-TE2A: Spec Example 8.16. Block Mappings
-TL85: Spec Example 6.8. Flow Folding
-TS54: Folded Block Scalar
-U3C3: Spec Example 6.16. “TAG” directive
-U3XV: Node and Mapping Key Anchors
-U9NS: Spec Example 2.8. Play by Play Feed from a Game
-UDM2: Plain URL in flow mapping
-UDR7: Spec Example 5.4. Flow Collection Indicators
-UGM3: Spec Example 2.27. Invoice
-V55R: Aliases in Block Sequence
-V9D5: Spec Example 8.19. Compact Block Mappings
-X38W: Aliases in Flow Objects
-XV9V: Spec Example 6.5. Empty Lines [1.3]
-XW4D: Various Trailing Comments
-YD5X: Spec Example 2.5. Sequence of Sequences
-Z67P: Spec Example 8.21. Block Scalar Nodes [1.3]
-Z9M4: Spec Example 6.22. Global Tag Prefix
-ZF4X: Spec Example 2.6. Mapping of Mappings
-ZH7C: Anchors in Mapping
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 b092c6f..0000000
+++ /dev/null
@@ -1,34 +0,0 @@
-#!/usr/bin/env bash
-
-set -e
-
-if [[ $# -gt 0 ]]; then
-  ids=("$@")
-else
-  ids=($(cut -d: -f1 < test/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"
diff --git a/tests/run-test-suite/test/libyaml-parser.list b/tests/run-test-suite/test/libyaml-parser.list
deleted file mode 100644 (file)
index 309cb21..0000000
+++ /dev/null
@@ -1,190 +0,0 @@
-229Q: Spec Example 2.4. Sequence of Mappings
-26DV: Whitespace around colon in mappings
-2AUY: Tags in Block Sequence
-2EBW: Allowed characters in keys
-2XXW: Spec Example 2.25. Unordered Sets
-35KP: Tags for Root Objects
-36F6: Multiline plain scalar with empty line
-3ALJ: Block Sequence in Block Sequence
-3GZX: Spec Example 7.1. Alias Nodes
-3MYT: Plain Scalar looking like key, comment, anchor and tag
-3UYS: Escaped slash in double quotes
-4CQQ: Spec Example 2.18. Multi-line Flow Scalars
-4GC6: Spec Example 7.7. Single Quoted Characters
-4Q9F: Folded Block Scalar [1.3]
-4QFQ: Spec Example 8.2. Block Indentation Indicator [1.3]
-4UYU: Colon in Double Quoted String
-4V8U: Plain scalar with backslashes
-4ZYM: Spec Example 6.4. Line Prefixes
-52DL: Explicit Non-Specific Tag [1.3]
-54T7: Flow Mapping
-565N: Construct Binary
-57H4: Spec Example 8.22. Block Collection Nodes
-5BVJ: Spec Example 5.7. Block Scalar Indicators
-5C5M: Spec Example 7.15. Flow Mappings
-5GBF: Spec Example 6.5. Empty Lines
-5KJE: Spec Example 7.13. Flow Sequence
-5NYZ: Spec Example 6.9. Separated Comment
-5TYM: Spec Example 6.21. Local Tag Prefix
-5WE3: Spec Example 8.17. Explicit Block Mapping Entries
-65WH: Single Entry Block Sequence
-6BFJ: Mapping, key and flow sequence item anchors
-6CK3: Spec Example 6.26. Tag Shorthands
-6FWR: Block Scalar Keep
-6H3V: Backslashes in singlequotes
-6HB6: Spec Example 6.1. Indentation Spaces
-6JQW: Spec Example 2.13. In literals, newlines are preserved
-6JWB: Tags for Block Objects
-6SLA: Allowed characters in quoted mapping key
-6VJK: Spec Example 2.15. Folded newlines are preserved for "more indented" and blank lines
-6WLZ: Spec Example 6.18. Primary Tag Handle [1.3]
-6WPF: Spec Example 6.8. Flow Folding [1.3]
-735Y: Spec Example 8.20. Block Node Types
-74H7: Tags in Implicit Mapping
-753E: Block Scalar Strip [1.3]
-77H8: Spec Example 2.23. Various Explicit Tags
-7A4E: Spec Example 7.6. Double Quoted Lines
-7BMT: Node and Mapping Key Anchors [1.3]
-7BUB: Spec Example 2.10. Node for “Sammy Sosa” appears twice in this document
-7FWL: Spec Example 6.24. Verbatim Tags
-7T8X: Spec Example 8.10. Folded Lines - 8.13. Final Empty Lines
-7TMG: Comment in flow sequence before comma
-7W2P: Block Mapping with Missing Values
-82AN: Three dashes and content without space
-87E4: Spec Example 7.8. Single Quoted Implicit Keys
-8CWC: Plain mapping key ending with colon
-8G76: Spec Example 6.10. Comment Lines
-8MK2: Explicit Non-Specific Tag
-8QBE: Block Sequence in Block Mapping
-8UDB: Spec Example 7.14. Flow Sequence Entries
-93JH: Block Mappings in Block Sequence
-93WF: Spec Example 6.6. Line Folding [1.3]
-96L6: Spec Example 2.14. In the folded scalars, newlines become spaces
-98YD: Spec Example 5.5. Comment Indicator
-9FMG: Multi-level Mapping Indent
-9J7A: Simple Mapping Indent
-9KAX: Various combinations of tags and anchors
-9SHH: Spec Example 5.8. Quoted Scalar Indicators
-9TFX: Spec Example 7.6. Double Quoted Lines [1.3]
-9U5K: Spec Example 2.12. Compact Nested Mapping
-9WXW: Spec Example 6.18. Primary Tag Handle
-9YRD: Multiline Scalar at Top Level
-A6F9: Spec Example 8.4. Chomping Final Line Break
-A984: Multiline Scalar in Mapping
-AB8U: Sequence entry that looks like two with wrong indentation
-AVM7: Empty Stream
-AZ63: Sequence With Same Indentation as Parent Mapping
-AZW3: Lookahead test cases
-B3HG: Spec Example 8.9. Folded Scalar [1.3]
-BU8L: Node Anchor and Tag on Seperate Lines
-C2DT: Spec Example 7.18. Flow Mapping Adjacent Values
-C4HZ: Spec Example 2.24. Global Tags
-CC74: Spec Example 6.20. Tag Handles
-CN3R: Various location of anchors in flow sequence
-CT4Q: Spec Example 7.20. Single Pair Explicit Entry
-CUP7: Spec Example 5.6. Node Property Indicators
-D83L: Block scalar indicator order
-D88J: Flow Sequence in Block Mapping
-D9TU: Single Pair Block Mapping
-DC7X: Various trailing tabs
-DFF7: Spec Example 7.16. Flow Mapping Entries
-DHP8: Flow Sequence
-DWX9: Spec Example 8.8. Literal Content
-E76Z: Aliases in Implicit Block Mapping
-EHF6: Tags for Flow Objects
-EX5H: Multiline Scalar at Top Level [1.3]
-EXG3: Three dashes and content without space [1.3]
-F2C7: Anchors and Tags
-F3CP: Nested flow collections on one line
-F8F9: Spec Example 8.5. Chomping Trailing Lines
-FBC9: Allowed characters in plain scalars
-FH7J: Tags on Empty Scalars
-FQ7F: Spec Example 2.1. Sequence of Scalars
-FUP4: Flow Sequence in Flow Sequence
-G4RS: Spec Example 2.17. Quoted Scalars
-G992: Spec Example 8.9. Folded Scalar
-GH63: Mixed Block Mapping (explicit to implicit)
-H2RW: Blank lines
-H3Z8: Literal unicode
-HMK4: Spec Example 2.16. Indentation determines scope
-HMQ5: Spec Example 6.23. Node Properties
-HS5T: Spec Example 7.12. Plain Lines
-J3BT: Spec Example 5.12. Tabs and Spaces
-J5UC: Multiple Pair Block Mapping
-J7PZ: Spec Example 2.26. Ordered Mappings
-J7VC: Empty Lines Between Mapping Elements
-J9HZ: Spec Example 2.9. Single Document with Two Comments
-JDH8: Plain Scalar looking like key, comment, anchor and tag [1.3]
-JHB9: Spec Example 2.7. Two Documents in a Stream
-JQ4R: Spec Example 8.14. Block Sequence
-JS2J: Spec Example 6.29. Node Anchors
-JTV5: Block Mapping with Multiline Scalars
-K4SU: Multiple Entry Block Sequence
-K527: Spec Example 6.6. Line Folding
-K54U: Tab after document header
-K858: Spec Example 8.6. Empty Scalar Chomping
-KMK3: Block Submapping
-KSS4: Scalars on --- line
-L94M: Tags in Explicit Mapping
-L9U5: Spec Example 7.11. Plain Implicit Keys
-LE5A: Spec Example 7.24. Flow Nodes
-LP6E: Whitespace After Scalars in Flow
-LQZ7: Spec Example 7.4. Double Quoted Implicit Keys
-LX3P: Implicit Flow Mapping Key on one line
-M29M: Literal Block Scalar
-M5C3: Spec Example 8.21. Block Scalar Nodes
-M5DY: Spec Example 2.11. Mapping between Sequences
-M7NX: Nested flow collections
-M9B4: Spec Example 8.7. Literal Scalar
-MJS9: Spec Example 6.7. Block Folding
-MXS3: Flow Mapping in Block Sequence
-MYW6: Block Scalar Strip
-MZX3: Non-Specific Tags on Scalars
-NP9H: Spec Example 7.5. Double Quoted Line Breaks
-P2AD: Spec Example 8.1. Block Scalar Header
-P76L: Spec Example 6.19. Secondary Tag Handle
-P94K: Spec Example 6.11. Multi-Line Comments
-PBJ2: Spec Example 2.3. Mapping Scalars to Sequences
-PRH3: Spec Example 7.9. Single Quoted Lines
-PUW8: Document start on last line
-PW8X: Anchors on Empty Scalars
-Q88A: Spec Example 7.23. Flow Content
-Q8AD: Spec Example 7.5. Double Quoted Line Breaks [1.3]
-Q9WF: Spec Example 6.12. Separation Spaces
-QF4Y: Spec Example 7.19. Single Pair Flow Mappings
-RLU9: Sequence Indent
-RR7F: Mixed Block Mapping (implicit to explicit)
-RZP5: Various Trailing Comments [1.3]
-RZT7: Spec Example 2.28. Log File
-S4JQ: Spec Example 6.28. Non-Specific Tags
-S4T7: Document with footer
-S98Z: Block scalar with spaces only
-S9E8: Spec Example 5.3. Block Structure Indicators
-SBG9: Flow Sequence in Flow Mapping
-SKE5: Anchor before zero indented sequence
-SSW6: Spec Example 7.7. Single Quoted Characters [1.3]
-SYW4: Spec Example 2.2. Mapping Scalars to Scalars
-T26H: Spec Example 8.8. Literal Content [1.3]
-T4YY: Spec Example 7.9. Single Quoted Lines [1.3]
-T5N4: Spec Example 8.7. Literal Scalar [1.3]
-TE2A: Spec Example 8.16. Block Mappings
-TL85: Spec Example 6.8. Flow Folding
-TS54: Folded Block Scalar
-U3C3: Spec Example 6.16. “TAG” directive
-U3XV: Node and Mapping Key Anchors
-U9NS: Spec Example 2.8. Play by Play Feed from a Game
-UDR7: Spec Example 5.4. Flow Collection Indicators
-UGM3: Spec Example 2.27. Invoice
-V55R: Aliases in Block Sequence
-V9D5: Spec Example 8.19. Compact Block Mappings
-W42U: Spec Example 8.15. Block Sequence Entry Types
-X38W: Aliases in Flow Objects
-XLQ9: Multiline scalar that looks like a YAML directive
-XV9V: Spec Example 6.5. Empty Lines [1.3]
-XW4D: Various Trailing Comments
-YD5X: Spec Example 2.5. Sequence of Sequences
-Z67P: Spec Example 8.21. Block Scalar Nodes [1.3]
-Z9M4: Spec Example 6.22. Global Tag Prefix
-ZF4X: Spec Example 2.6. Mapping of Mappings
-ZH7C: Anchors in Mapping
-ZWK4: Key with anchor after missing explicit mapping value
diff --git a/tests/run-test-suite/test/libyaml-parser.t b/tests/run-test-suite/test/libyaml-parser.t
deleted file mode 100755 (executable)
index 6be2395..0000000
+++ /dev/null
@@ -1,32 +0,0 @@
-#!/usr/bin/env bash
-
-set -e
-
-if [[ $# -gt 0 ]]; then
-  ids=("$@")
-else
-  ids=($(cut -d: -f1 < test/libyaml-parser.list))
-fi
-
-count=0
-for id in "${ids[@]}"; do
-  dir="data/$id"
-  label="$id: $(< $dir/===)"
-  [[ -e "$dir/in.yaml" ]] || continue
-  ../../tests/run-parser-test-suite "$dir/in.yaml" > /tmp/test.out || {
-    (
-      cat "$dir/in.yaml"
-      cat "$dir/test.event"
-    ) | sed 's/^/# /'
-  }
-  ok=true
-  output="$(${DIFF:-diff} -u $dir/test.event /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"
index f7276f2f6756301db684e6b35ef34c810c262142..9c92741eca3822f545332907d943a518363240bd 100755 (executable)
@@ -22,7 +22,8 @@ main() {
 
 clean() {
   git clean -d -x -f
-  rm -fr tests/run-test-suite/data
+  rm -fr tests/run-test-suite
+  git worktree prune
 }
 
 main "$@"
This page took 0.104098 seconds and 5 git commands to generate.