[arch-commits] Commit in biber/trunk (PKGBUILD test.bib test.tex)

Rémy Oudompheng remy at archlinux.org
Sat Nov 17 21:59:08 UTC 2018


    Date: Saturday, November 17, 2018 @ 21:59:07
  Author: remy
Revision: 408622

Add sample .tex and .bib files for package testing

Added:
  biber/trunk/test.bib
  biber/trunk/test.tex
Modified:
  biber/trunk/PKGBUILD

----------+
 PKGBUILD |   22 +++++++++++++++++++---
 test.bib |   16 ++++++++++++++++
 test.tex |   15 +++++++++++++++
 3 files changed, 50 insertions(+), 3 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2018-11-17 21:55:40 UTC (rev 408621)
+++ PKGBUILD	2018-11-17 21:59:07 UTC (rev 408622)
@@ -38,11 +38,17 @@
          'perl-xml-writer')
 # ExtUtils::LibBuilder and Config::AutoConf are not actual makedepends
 makedepends=('perl-module-build' 'perl-test-differences')
-checkdepends=('perl-capture-tiny' 'perl-file-which')
+checkdepends=('perl-capture-tiny' 'perl-file-which'
+              'texlive-bibtexextra'
+              'texlive-latexextra')
 options=('!emptydirs')
 # The sourceforge tarball is missing bblxml.pm
-source=("https://github.com/plk/biber/archive/v${pkgver}.tar.gz")
-sha512sums=('72f1a05224dc2735b32e92ac376d392fb631bf788a15de449471fdc5a94182ad4434ce71f95281e4cfc3a06cd275d2ff98e526d540c2979cd3e0dfa15b5c75ff')
+source=("https://github.com/plk/biber/archive/v${pkgver}.tar.gz"
+        "test.tex"
+        "test.bib")
+sha512sums=('72f1a05224dc2735b32e92ac376d392fb631bf788a15de449471fdc5a94182ad4434ce71f95281e4cfc3a06cd275d2ff98e526d540c2979cd3e0dfa15b5c75ff'
+            '31d6476c34b8b889fa8e441e5be06981de221de652b5a43eb4a1894c401ec73349a4ae6ca560b466a725327001c44e1d7805dd1976cd43f97617f5a3cd2b4468'
+            '68a00e41f200b8e24a674538b6581b88f84daef38a765790c1781365329203f60f4461a56dfa092bf336cc00c8801df1ee85f60d86fd384a8c039f913bdeeb2d')
 
 prepare() {
   cd "${srcdir}/biber-${pkgver}"
@@ -50,6 +56,9 @@
   if [[ $CARCH = "i686" ]]; then
     sed -i '/17000002/ s+.*+eq_or_diff("dummy", "dummy", "skip 32 bit");+' t/dateformats.t
   fi
+
+  mkdir -p "test"
+  cp "${srcdir}"/test.{tex,bib} test/
 }
 
 build() {
@@ -61,6 +70,13 @@
 
 check() {
   cd "${srcdir}/biber-${pkgver}"
+  # Test a sample file
+  pushd test
+  latex test
+  PERL5LIB=../blib/lib ../bin/biber test
+  latex test
+  popd
+  # Run test suite
   unset PERL5LIB PERL_MM_OPT PERL_MB_OPT PERL_LOCAL_LIB_ROOT
   LC_CTYPE=en_US.UTF-8 BIBER_DEV_TESTS=1 ./Build test
 }

Added: test.bib
===================================================================
--- test.bib	                        (rev 0)
+++ test.bib	2018-11-17 21:59:07 UTC (rev 408622)
@@ -0,0 +1,16 @@
+ at misc{rfc793,
+  shorthand="RFC793",
+  presort="RFC0793",
+  author="J. Postel",
+  title="{Transmission Control Protocol}",
+  series="Request for Comments",
+  number="793",
+  howpublished="RFC 793 (Standard)",
+  publisher="IETF",
+  organization="Internet Engineering Task Force",
+  year=1981,
+  month=sep,
+    note="Updated by RFCs 1122, 3168, 6093, 6528",
+  url="http://www.ietf.org/rfc/rfc793.txt",
+}
+

Added: test.tex
===================================================================
--- test.tex	                        (rev 0)
+++ test.tex	2018-11-17 21:59:07 UTC (rev 408622)
@@ -0,0 +1,15 @@
+\documentclass{article}
+\usepackage{biblatex}
+\title{Biber test}
+\author{Toke Høiland-Jørgensen}
+\date{\today}
+\bibliography{fs33034}
+
+\begin{document}
+\maketitle
+
+See \cite{rfc793}.
+
+\printbibliography
+
+\end{document}



More information about the arch-commits mailing list