summaryrefslogtreecommitdiff
path: root/input
diff options
context:
space:
mode:
authorJulien Rioux <jrioux@physics.utoronto.ca>2012-03-28 00:08:54 -0400
committerJulien Rioux <jrioux@physics.utoronto.ca>2012-04-02 04:02:31 -0400
commit89046337d628882fdb6c5caa804690a9fb6170f2 (patch)
tree2b2d9af558d3b1faafabbc14066420bc4b04c205 /input
parentc26c0e17719c5c0bc00c79f7c5ca5b644c196b60 (diff)
Revert "Revert "Regtests for lilypond-book include files located in subdir.""
This reverts commit d60be8f280a9b64643ff866a3b172d61a219df3a and restores commit ee70161485a2d2f347db3e29724a943c741ef524. Regtests for lilypond-book include files located in subdir, this now also works for in-tree build.
Diffstat (limited to 'input')
-rw-r--r--input/regression/lilypond-book/include/example.ly4
-rw-r--r--input/regression/lilypond-book/include/myvar.ily1
-rw-r--r--input/regression/lilypond-book/tex-include-file.lytex12
-rw-r--r--input/regression/lilypond-book/tex-include-options.lytex12
-rw-r--r--input/regression/lilypond-book/texinfo-include-file.tely23
5 files changed, 52 insertions, 0 deletions
diff --git a/input/regression/lilypond-book/include/example.ly b/input/regression/lilypond-book/include/example.ly
new file mode 100644
index 0000000000..ccb2f8d9b0
--- /dev/null
+++ b/input/regression/lilypond-book/include/example.ly
@@ -0,0 +1,4 @@
+\version "2.14.0"
+\score {
+ \relative c'' { d c b c }
+}
diff --git a/input/regression/lilypond-book/include/myvar.ily b/input/regression/lilypond-book/include/myvar.ily
new file mode 100644
index 0000000000..48c9439466
--- /dev/null
+++ b/input/regression/lilypond-book/include/myvar.ily
@@ -0,0 +1 @@
+myVar = { a b c a }
diff --git a/input/regression/lilypond-book/tex-include-file.lytex b/input/regression/lilypond-book/tex-include-file.lytex
index 1045df4729..bcad93601b 100644
--- a/input/regression/lilypond-book/tex-include-file.lytex
+++ b/input/regression/lilypond-book/tex-include-file.lytex
@@ -1,5 +1,17 @@
\documentclass{article}
\begin{document}
Including a LilyPond file without any options:
+
\lilypondfile{include2.ly}
+
+From a subdirectory:
+
+\lilypondfile{include/example.ly}
+
+Within a lilypond block:
+
+\begin{lilypond}
+ \include "include/myvar.ily"
+ \relative c'' { \myVar }
+\end{lilypond}
\end{document}
diff --git a/input/regression/lilypond-book/tex-include-options.lytex b/input/regression/lilypond-book/tex-include-options.lytex
index 99934bf049..251fa087d8 100644
--- a/input/regression/lilypond-book/tex-include-options.lytex
+++ b/input/regression/lilypond-book/tex-include-options.lytex
@@ -1,5 +1,17 @@
\documentclass{article}
\begin{document}
Including a LilyPond file with options (quote and noindent):
+
\lilypondfile[quote,noindent]{include2.ly}
+
+From a subdirectory:
+
+\lilypondfile[quote,noindent]{include/example.ly}
+
+Within a lilypond block:
+
+\begin{lilypond}[quote,noindent]
+ \include "include/myvar.ily"
+ \relative c'' { \myVar }
+\end{lilypond}
\end{document}
diff --git a/input/regression/lilypond-book/texinfo-include-file.tely b/input/regression/lilypond-book/texinfo-include-file.tely
new file mode 100644
index 0000000000..610eb23a3e
--- /dev/null
+++ b/input/regression/lilypond-book/texinfo-include-file.tely
@@ -0,0 +1,23 @@
+\input texinfo @c -*- coding: utf-8; mode: texinfo; -*-
+@setfilename texinfo-include-file.info
+@settitle Include lilypond files in texinfo
+
+@node Top
+@top Include lilypond files in texinfo
+
+Lilypond files included in texinfo without any options:
+
+@lilypondfile{include2.ly}
+
+From a subdirectory:
+
+@lilypondfile{include/example.ly}
+
+Within a lilypond block:
+
+@lilypond
+ \include "include/myvar.ily"
+ \relative c'' { \myVar }
+@end lilypond
+
+@bye