From e34131502af7ac16bac60a0a8081ffc45d6b1b1e Mon Sep 17 00:00:00 2001
From: John MacFarlane <jgm@berkeley.edu>
Date: Thu, 25 May 2017 11:52:09 +0200
Subject: [PATCH] Update command tests to include stderr output.

---
 test/command/1718.md      | 11 +++++++++++
 test/command/3494.md      |  2 +-
 test/command/3577.md      |  2 +-
 test/command/512.md       |  1 +
 test/command/parse-raw.md |  3 +++
 test/command/svg.md       |  3 +++
 test/command/tabularx.md  |  6 +++---
 7 files changed, 23 insertions(+), 5 deletions(-)
 create mode 100644 test/command/1718.md

diff --git a/test/command/1718.md b/test/command/1718.md
new file mode 100644
index 000000000..401610a7a
--- /dev/null
+++ b/test/command/1718.md
@@ -0,0 +1,11 @@
+```
+% pandoc -t native
+Note[^1].
+
+[^1]: the first note.
+
+[^2]: the second, unused, note.
+^D
+[warning] Note with key '2' defined at line 5 column 1 but not used.
+[Para [Str "Note",Note [Para [Str "the",Space,Str "first",Space,Str "note."]],Str "."]]
+```
diff --git a/test/command/3494.md b/test/command/3494.md
index faa58c321..7c480fde6 100644
--- a/test/command/3494.md
+++ b/test/command/3494.md
@@ -1,5 +1,5 @@
 ```
-% pandoc -f latex
+% pandoc -f latex --quiet
 \begin{table}[h!]
 \begin{tabular}{r|l|l}
 
diff --git a/test/command/3577.md b/test/command/3577.md
index bfeb86eaa..dc88937e9 100644
--- a/test/command/3577.md
+++ b/test/command/3577.md
@@ -1,5 +1,5 @@
 ```
-% pandoc -f latex -t html5
+% pandoc -f latex -t html5 --quiet
 \begin{figure}[ht]
     \begin{subfigure}{0.45\textwidth}
         \centering
diff --git a/test/command/512.md b/test/command/512.md
index a13c434f6..52e5dbe07 100644
--- a/test/command/512.md
+++ b/test/command/512.md
@@ -36,6 +36,7 @@ Loop detection:
 
 __ link1_
 ^D
+[warning] Circular reference 'link1' at line 1 column 15
 <p><a href="">click here</a></p>
 ```
 
diff --git a/test/command/parse-raw.md b/test/command/parse-raw.md
index f4e493c69..6c91c2fa9 100644
--- a/test/command/parse-raw.md
+++ b/test/command/parse-raw.md
@@ -9,6 +9,7 @@
 % pandoc -f latex -t markdown
 \emph{Hi \foo{there}}
 ^D
+[warning] Skipped '\foo{there}' at line 1 column 21
 *Hi*
 ```
 
@@ -23,5 +24,7 @@
 % pandoc -f html -t markdown
 <em>Hi <blink>there</blink></em>
 ^D
+[warning] Skipped '<blink>' at input line 1 column 8
+[warning] Skipped '</blink>' at input line 1 column 20
 *Hi there*
 ```
diff --git a/test/command/svg.md b/test/command/svg.md
index bcf00ddae..36ca2fdb7 100644
--- a/test/command/svg.md
+++ b/test/command/svg.md
@@ -2,6 +2,7 @@
 % pandoc -f latex -t icml
 \includegraphics{command/corrupt.svg}
 ^D
+[warning] Could not determine image size for 'command/corrupt.svg': could not determine image type
 <ParagraphStyleRange AppliedParagraphStyle="ParagraphStyle/Paragraph">
   <CharacterStyleRange AppliedCharacterStyle="$ID/NormalCharacterStyle">
     <Rectangle Self="uec" StrokeWeight="0" ItemTransform="1.00000 0 0 1.00000 150.00000 -100.00000">
@@ -34,6 +35,7 @@
 % pandoc -f latex -t icml
 \includegraphics{command/SVG_logo.svg}
 ^D
+[warning] Could not determine image size for 'command/SVG_logo.svg': could not determine SVG size
 <ParagraphStyleRange AppliedParagraphStyle="ParagraphStyle/Paragraph">
   <CharacterStyleRange AppliedCharacterStyle="$ID/NormalCharacterStyle">
     <Rectangle Self="uec" StrokeWeight="0" ItemTransform="1.00000 0 0 1.00000 150.00000 -100.00000">
@@ -66,6 +68,7 @@
 % pandoc -f latex -t icml
 \includegraphics{command/SVG_logo-without-xml-declaration.svg}
 ^D
+[warning] Could not determine image size for 'command/SVG_logo-without-xml-declaration.svg': could not determine SVG size
 <ParagraphStyleRange AppliedParagraphStyle="ParagraphStyle/Paragraph">
   <CharacterStyleRange AppliedCharacterStyle="$ID/NormalCharacterStyle">
     <Rectangle Self="uec" StrokeWeight="0" ItemTransform="1.00000 0 0 1.00000 150.00000 -100.00000">
diff --git a/test/command/tabularx.md b/test/command/tabularx.md
index 1d295c978..9e6069542 100644
--- a/test/command/tabularx.md
+++ b/test/command/tabularx.md
@@ -1,5 +1,5 @@
 ```
-% pandoc -f latex -t native
+% pandoc -f latex -t native --quiet
 \begin{tabularx}{\linewidth}{|c|c|c|}
 \hline
   Column Heading 1
@@ -36,7 +36,7 @@
 ```
 
 ```
-% pandoc -f latex -t native
+% pandoc -f latex -t native --quiet
 \begin{tabularx}{\linewidth}{|X|c|p{0.25\linewidth}|}
 \hline
   Column Heading 1
@@ -73,7 +73,7 @@
 ```
 
 ```
-% pandoc -f latex -t native
+% pandoc -f latex -t native --quiet
 \begin{tabularx}{\linewidth}{|b{0.25\linewidth}|c|m{0.25\linewidth}|}
 \hline
   Column Heading 1