From 77d5e28272438a3332f0c41e9733608432548beb Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Jari-Matti=20M=C3=A4kel=C3=A4?= <jmjm@iki.fi>
Date: Sat, 6 Oct 2018 20:39:51 +0300
Subject: [PATCH] Add test case for includereferences=true

---
 .gitlab-ci.yml      |  4 ++++
 tests/test-app5.tex | 41 +++++++++++++++++++++++++++++++++++++++++
 2 files changed, 45 insertions(+)
 create mode 100644 tests/test-app5.tex

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 22bb9d6..c321d72 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -38,6 +38,7 @@ xelatex_builder:
       - tests/xelatex/test-app2.pdf
       - tests/xelatex/test-app3.pdf
       - tests/xelatex/test-app4.pdf
+      - tests/xelatex/test-app5.pdf
       - tests/xelatex/test-bilingual.pdf
       - tests/xelatex/test-english.pdf
       - tests/xelatex/test-finnish.pdf
@@ -55,6 +56,7 @@ pdflatex_builder:
       - tests/pdflatex/test-app2.pdf
       - tests/pdflatex/test-app3.pdf
       - tests/pdflatex/test-app4.pdf
+      - tests/pdflatex/test-app5.pdf
       - tests/pdflatex/test-bilingual.pdf
       - tests/pdflatex/test-english.pdf
       - tests/pdflatex/test-finnish.pdf
@@ -70,6 +72,7 @@ xelatex_content_validator:
     - "grep '2 s., 3 liites.' test-app2.txt"
     - "grep '2 s., 1 liites.' test-app3.txt"
     - "grep 'TkK -tutkielma, 2 s.$' test-app4.txt"
+    - "grep 'TkK -tutkielma, 3 s.$' test-app5.txt"
     - "grep 'TURUN YLIOPISTO' test-finnish.txt"
     - "grep 'TURUN YLIOPISTO' test-bilingual.txt"
     - "grep 'UNIVERSITY OF TURKU' test-bilingual.txt"
@@ -87,6 +90,7 @@ pdflatex_content_validator:
     - "grep '2 s., 3 liites.' test-app2.txt"
     - "grep '2 s., 1 liites.' test-app3.txt"
     - "grep 'TkK -tutkielma, 2 s.$' test-app4.txt"
+    - "grep 'TkK -tutkielma, 3 s.$' test-app5.txt"
     - "grep 'TURUN YLIOPISTO' test-finnish.txt"
     - "grep 'TURUN YLIOPISTO' test-bilingual.txt"
     - "grep 'UNIVERSITY OF TURKU' test-bilingual.txt"
diff --git a/tests/test-app5.tex b/tests/test-app5.tex
new file mode 100644
index 0000000..a09d414
--- /dev/null
+++ b/tests/test-app5.tex
@@ -0,0 +1,41 @@
+% test document for gitlab ci tests
+
+\documentclass[a4paper,12pt,language=finnish,includereferences=true]{utuftthesis}
+
+% how many levels of section numbering
+\setcounter{secnumdepth}{2}
+
+% how many levels of section numbering in the TOC
+\setcounter{tocdepth}{2}
+
+\usepackage{blindtext}
+% suppress complaints about missing finnish blabla
+\pretocmd{\blindtext}{\selectlanguage{english}}{}{}
+\pretocmd{\Blindtext}{\selectlanguage{english}}{}{}
+
+\addbibresource{Bibliografia.bib}
+
+\pubyear{2018}
+\pubmonth{6}
+\publab{Labran nimi}
+\pubtype{tkk}
+\title{Tutkielma}
+\author{Oma nimi}
+\keywords{tähän, lista, avainsanoista}
+
+\begin{document}
+\maketitle
+\begin{abstract}\blindtext\end{abstract}
+
+\tableofcontents
+
+\chapter{Johdanto}
+\blindtext
+Viitataan tähän \cite{crawley2007write}.
+
+\chapter{Lopuksi}
+\blindtext
+
+\printbibliography
+
+\end{document}
-- 
GitLab