[latex3-commits] [l3svn] 02/02: Add siunitx as an example contrib package test

noreply at latex-project.org noreply at latex-project.org
Thu Sep 24 09:48:51 CEST 2015


This is an automated email from the git hooks/post-receive script.

joseph pushed a commit to branch master
in repository l3svn.

commit a126f956871d2517b1208ddc8f040a44f8bf494c
Author: Joseph Wright <joseph.wright at morningstar2.co.uk>
Date:   Thu Sep 24 08:47:48 2015 +0100

    Add siunitx as an example contrib package test
    
    This set up should let us test we do not break other people's code.
    This is a bit of an experiment: it might break the Travis system if
    the deps are not right!
---
 build.lua                        |    2 +-
 contrib/build.lua                |   27 ++++
 contrib/contrib.sh               |    3 +
 contrib/testfiles/siunitx001.lvt |   28 ++++
 contrib/testfiles/siunitx001.tlg |  325 ++++++++++++++++++++++++++++++++++++++
 texlive.sh                       |    1 +
 6 files changed, 385 insertions(+), 1 deletion(-)

diff --git a/build.lua b/build.lua
index 1511e16..09eff1c 100644
--- a/build.lua
+++ b/build.lua
@@ -8,7 +8,7 @@ module  = ""
 
 -- A couple of custom variables: the order here is set up for 'importance'
 bundles      = {"l3build", "l3kernel", "l3packages", "l3experimental", "l3trial"}
-checkbundles = {"l3build", "l3kernel", "l3packages", "l3experimental", "xpackages/xor", "l3trial"}
+checkbundles = {"l3build", "l3kernel", "l3packages", "l3experimental", "xpackages/xor", "l3trial", "contrib"}
 ctanbundles  = {"l3build", "l3kernel", "l3packages", "l3experimental"}
 
 -- Location of main directory: use Unix-style path separators
diff --git a/contrib/build.lua b/contrib/build.lua
new file mode 100644
index 0000000..c5b0e16
--- /dev/null
+++ b/contrib/build.lua
@@ -0,0 +1,27 @@
+#!/usr/bin/env texlua
+
+-- Build script for third-party packages
+
+-- Identify the bundle and module
+-- Just filler as this is purely a location for tests
+module = "third-party"
+bundle = ""
+
+-- Location of main directory: use Unix-style path separators
+maindir = ".."
+
+-- Non-standard settings
+checkdeps   =
+  {
+    maindir .. "/l3build",
+    maindir .. "/l3kernel",
+    maindir .. "/l3packages/xparse"
+  }
+checksearch = true
+
+-- Load the common build code: this is the one place that a path needs to be
+-- hard-coded
+-- As the build system is 'self-contained' there is no module set up here: just
+--load the file in a similar way to a TeX \input
+dofile (maindir .. "/build-config.lua")
+dofile (maindir .. "/l3build/l3build.lua")
diff --git a/contrib/contrib.sh b/contrib/contrib.sh
new file mode 100644
index 0000000..e16ed19
--- /dev/null
+++ b/contrib/contrib.sh
@@ -0,0 +1,3 @@
+#!/usr/bin/env sh
+
+tlmgr install siunitx
\ No newline at end of file
diff --git a/contrib/testfiles/siunitx001.lvt b/contrib/testfiles/siunitx001.lvt
new file mode 100644
index 0000000..f07411f
--- /dev/null
+++ b/contrib/testfiles/siunitx001.lvt
@@ -0,0 +1,28 @@
+%
+% Copyright (C) 2015 Joseph Wright
+%
+
+\documentclass{article}
+\input{regression-test}
+\START
+\AUTHOR{Joseph Wright}
+
+\OMIT
+\usepackage{siunitx}
+\TIMO
+
+\begin{document}
+
+\showoutput
+
+\SI{10}{\joule\per\mole\per\kelvin}
+$\SI{10}{\joule\per\mole\per\kelvin}$
+$\SI{10}{J.mol.k^{-1}}$
+\SI[mode = text]{10}{\joule\per\mole\per\kelvin}
+
+\begin{tabular}{SS[table-format = 2.2]}
+12.34 & 12.34 \\
+ 5.67 &  5.67 \\
+\end{tabular}
+
+\end{document}
\ No newline at end of file
diff --git a/contrib/testfiles/siunitx001.tlg b/contrib/testfiles/siunitx001.tlg
new file mode 100644
index 0000000..a5a99fb
--- /dev/null
+++ b/contrib/testfiles/siunitx001.tlg
@@ -0,0 +1,325 @@
+This is a generated file for the LaTeX (2e + expl3) validation system.
+Don't change this file in any respect.
+%% \CharacterTable
+%%  {Upper-case    \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
+%%   Lower-case    \a\b\c\d\e\f\g\h\i\j\k\l\m\n\o\p\q\r\s\t\u\v\w\x\y\z
+%%   Digits        \0\1\2\3\4\5\6\7\8\9
+%%   Exclamation   \!     Double quote  \"     Hash (number) \#
+%%   Dollar        \$     Percent       \%     Ampersand     \&
+%%   Acute accent  \'     Left paren    \(     Right paren   \)
+%%   Asterisk      \*     Plus          \+     Comma         \,
+%%   Minus         \-     Point         \.     Solidus       \/
+%%   Colon         \:     Semicolon     \;     Less than     \<
+%%   Equals        \=     Greater than  \>     Question mark \?
+%%   Commercial at \@     Left bracket  \[     Backslash     \\
+%%   Right bracket \]     Circumflex    \^     Underscore    \_
+%%   Grave accent  \`     Left brace    \{     Vertical bar  \|
+%%   Right brace   \}     Tilde         \~}
+%%
+Author: Joseph Wright
+No file .aux.
+LaTeX Font Info:    Checking defaults for OML/cmm/m/it on input line 14.
+LaTeX Font Info:    ... okay on input line 14.
+LaTeX Font Info:    Checking defaults for T1/cmr/m/n on input line 14.
+LaTeX Font Info:    ... okay on input line 14.
+LaTeX Font Info:    Checking defaults for OT1/cmr/m/n on input line 14.
+LaTeX Font Info:    ... okay on input line 14.
+LaTeX Font Info:    Checking defaults for OMS/cmsy/m/n on input line 14.
+LaTeX Font Info:    ... okay on input line 14.
+LaTeX Font Info:    Checking defaults for OMX/cmex/m/n on input line 14.
+LaTeX Font Info:    ... okay on input line 14.
+LaTeX Font Info:    Checking defaults for U/cmr/m/n on input line 14.
+LaTeX Font Info:    ... okay on input line 14.
+(../translator-basic-dictionary-English.dict
+Dictionary: translator-basic-dictionary, Language: English 
+)
+(../siunitx-abbreviations.cfg
+)
+\c__siunitx_mathsf_int=\count165
+LaTeX Font Info:    External font `cmex10' loaded for size
+(Font)              <7> on input line 14.
+LaTeX Font Info:    External font `cmex10' loaded for size
+(Font)              <5> on input line 14.
+\c__siunitx_mathtt_int=\count166
+LaTeX Font Info:    Try loading font information for TS1+cmr on input line 21.
+Completed box being shipped out [1]
+\vbox(633.0+0.0)x407.0
+.\glue 16.0
+.\vbox(617.0+0.0)x345.0, shifted 62.0
+..\vbox(12.0+0.0)x345.0, glue set 12.0fil
+...\glue 0.0 plus 1.0fil
+...\hbox(0.0+0.0)x345.0
+..\glue 25.0
+..\glue(\lineskip) 0.0
+..\vbox(550.0+0.0)x345.0, glue set 514.94499fil
+...\write-{}
+...\glue(\topskip) 1.85997
+...\hbox(8.14003+0.0)x345.0, glue set 71.4608fil
+....\hbox(0.0+0.0)x15.0
+....\hbox(6.44444+0.0)x10.00003
+.....\mathon
+.....\hbox(6.44444+0.0)x10.00003
+......\OT1/cmr/m/n/10 1
+......\OT1/cmr/m/n/10 0
+.....\mathoff
+....\penalty 10000
+....\kern 1.66672
+....\hbox(8.14003+0.0)x53.8334
+.....\mathon
+.....\hbox(8.14003+0.0)x53.8334
+......\OT1/cmr/m/n/10 J
+......\glue 1.66663
+......\OT1/cmr/m/n/10 m
+......\OT1/cmr/m/n/10 o
+......\OT1/cmr/m/n/10 l
+......\hbox(4.51111+0.83334)x10.73615, shifted -3.62892
+.......\mathon
+.......\hbox(4.51111+0.83334)x10.23615
+........\OMS/cmsy/m/n/7 ^^@
+........\OT1/cmr/m/n/7 1
+.......\mathoff
+......\glue 1.66663
+......\OT1/cmr/m/n/10 K
+......\hbox(4.51111+0.83334)x10.73615, shifted -3.62892
+.......\mathon
+.......\hbox(4.51111+0.83334)x10.23615
+........\OMS/cmsy/m/n/7 ^^@
+........\OT1/cmr/m/n/7 1
+.......\mathoff
+.....\mathoff
+....\glue 3.33333 plus 1.66666 minus 1.11111
+....\mathon
+....\hbox(6.44444+0.0)x10.00003
+.....\hbox(6.44444+0.0)x10.00003
+......\mathon
+......\hbox(6.44444+0.0)x10.00003
+.......\OT1/cmr/m/n/10 1
+.......\OT1/cmr/m/n/10 0
+......\mathoff
+....\penalty 10000
+....\glue 1.66663
+....\hbox(8.14003+0.0)x53.8334
+.....\hbox(8.14003+0.0)x53.8334
+......\mathon
+......\hbox(8.14003+0.0)x53.8334
+.......\OT1/cmr/m/n/10 J
+.......\glue 1.66663
+.......\OT1/cmr/m/n/10 m
+.......\OT1/cmr/m/n/10 o
+.......\OT1/cmr/m/n/10 l
+.......\hbox(4.51111+0.83334)x10.73615, shifted -3.62892
+........\mathon
+........\hbox(4.51111+0.83334)x10.23615
+.........\OMS/cmsy/m/n/7 ^^@
+.........\OT1/cmr/m/n/7 1
+........\mathoff
+.......\glue 1.66663
+.......\OT1/cmr/m/n/10 K
+.......\hbox(4.51111+0.83334)x10.73615, shifted -3.62892
+........\mathon
+........\hbox(4.51111+0.83334)x10.23615
+.........\OMS/cmsy/m/n/7 ^^@
+.........\OT1/cmr/m/n/7 1
+........\mathoff
+......\mathoff
+....\mathoff
+....\glue 3.33333 plus 1.66666 minus 1.11111
+....\mathon
+....\hbox(6.44444+0.0)x10.00003
+.....\hbox(6.44444+0.0)x10.00003
+......\mathon
+......\hbox(6.44444+0.0)x10.00003
+.......\OT1/cmr/m/n/10 1
+.......\OT1/cmr/m/n/10 0
+......\mathoff
+....\penalty 10000
+....\glue 1.66663
+....\hbox(8.14003+0.0)x40.59726
+.....\hbox(8.14003+0.0)x40.59726
+......\mathon
+......\hbox(8.14003+0.0)x40.59726
+.......\OT1/cmr/m/n/10 J
+.......\glue 1.66663
+.......\OT1/cmr/m/n/10 m
+.......\OT1/cmr/m/n/10 o
+.......\OT1/cmr/m/n/10 l
+.......\glue 1.66663
+.......\OT1/cmr/m/n/10 k
+.......\hbox(4.51111+0.83334)x10.73615, shifted -3.62892
+........\mathon
+........\hbox(4.51111+0.83334)x10.23615
+.........\OMS/cmsy/m/n/7 ^^@
+.........\OT1/cmr/m/n/7 1
+........\mathoff
+......\mathoff
+....\mathoff
+....\glue 3.33333 plus 1.66666 minus 1.11111
+....\hbox(6.44444+0.0)x10.00003
+.....\OT1/cmr/m/n/10 1
+.....\OT1/cmr/m/n/10 0
+....\penalty 10000
+....\kern 1.66672
+....\hbox(8.14003+0.0)x53.60834
+.....\OT1/cmr/m/n/10 J
+.....\kern 1.66672
+.....\OT1/cmr/m/n/10 m
+.....\OT1/cmr/m/n/10 o
+.....\OT1/cmr/m/n/10 l
+.....\mathon
+.....\hbox(4.51111+0.83313)x10.62352, shifted -3.62892
+......\hbox(4.51111+0.83313)x10.12352
+.......\hbox(4.32309+0.83313)x6.13739
+........\TS1/cmr/m/n/7 =
+.......\OT1/cmr/m/n/7 1
+.....\mathoff
+.....\kern 1.66672
+.....\OT1/cmr/m/n/10 K
+.....\mathon
+.....\hbox(4.51111+0.83313)x10.62352, shifted -3.62892
+......\hbox(4.51111+0.83313)x10.12352
+.......\hbox(4.32309+0.83313)x6.13739
+........\TS1/cmr/m/n/7 =
+.......\OT1/cmr/m/n/7 1
+.....\mathoff
+....\penalty 10000
+....\glue(\parfillskip) 0.0 plus 1.0fil
+....\glue(\rightskip) 0.0
+...\glue(\parskip) 0.0 plus 1.0
+...\glue(\lineskip) 1.0
+...\hbox(14.5+9.5)x345.0, glue set 260.4443fil
+....\hbox(0.0+0.0)x15.0
+....\hbox(14.5+9.5)x69.5557
+.....\mathon
+.....\vbox(14.5+9.5)x69.5557
+......\hbox(8.39996+3.60004)x69.5557
+.......\glue(\tabskip) 0.0
+.......\hbox(8.39996+3.60004)x34.77785
+........\rule(8.39996+3.60004)x0.0
+........\glue 6.0
+........\glue 0.0 plus 1.0fil
+........\glue 0.0 plus 0.5fill
+........\kern 0.0
+........\hbox(0.0+0.0)x0.0
+.........\glue 0.0 plus 1.0fil
+........\hbox(0.0+0.0)x0.0
+.........\glue 0.0 plus 1.0fil
+........\hbox(6.44444+0.0)x22.77785
+.........\hbox(6.44444+0.0)x22.77785
+..........\mathon
+..........\hbox(6.44444+0.0)x22.77785
+...........\OT1/cmr/m/n/10 1
+...........\OT1/cmr/m/n/10 2
+...........\OML/cmm/m/it/10 :
+...........\OT1/cmr/m/n/10 3
+...........\OT1/cmr/m/n/10 4
+..........\mathoff
+........\hbox(0.0+0.0)x0.0
+.........\glue 0.0 plus 1.0fil
+........\hbox(0.0+0.0)x0.0
+........\glue 0.0 plus 0.5fill
+........\kern 0.0
+........\glue 0.0 plus 1.0fil
+........\glue 6.0
+.......\glue(\tabskip) 0.0
+.......\hbox(8.39996+3.60004)x34.77785
+........\glue 6.0
+........\glue 0.0 plus 1.0fil
+........\glue 0.0 plus 0.5fill
+........\kern 0.0
+........\hbox(0.0+0.0)x0.0
+.........\glue 0.0 plus 1.0fil
+........\hbox(0.0+0.0)x0.0
+.........\glue 0.0 plus 1.0fil
+........\hbox(6.44444+0.0)x22.77785
+.........\hbox(0.0+0.0)x0.0
+..........\glue 0.0 plus 1.0fil
+.........\hbox(6.44444+0.0)x22.77785
+..........\mathon
+..........\hbox(6.44444+0.0)x22.77785
+...........\OT1/cmr/m/n/10 1
+...........\OT1/cmr/m/n/10 2
+...........\OML/cmm/m/it/10 :
+...........\OT1/cmr/m/n/10 3
+...........\OT1/cmr/m/n/10 4
+..........\mathoff
+........\hbox(0.0+0.0)x0.0
+.........\glue 0.0 plus 1.0fil
+........\hbox(0.0+0.0)x0.0
+.........\glue 0.0 plus 1.0fil
+........\glue 0.0 plus 0.5fill
+........\kern 0.0
+........\glue 0.0 plus 1.0fil
+........\glue 6.0
+.......\glue(\tabskip) 0.0
+......\glue(\lineskip) 0.0
+......\hbox(8.39996+3.60004)x69.5557
+.......\glue(\tabskip) 0.0
+.......\hbox(8.39996+3.60004)x34.77785
+........\rule(8.39996+3.60004)x0.0
+........\glue 6.0
+........\glue 0.0 plus 1.0fil
+........\glue 0.0 plus 0.5fill
+........\kern 0.0
+........\hbox(0.0+0.0)x0.0
+.........\glue 0.0 plus 1.0fil
+........\hbox(0.0+0.0)x5.00002, glue set 5.00002fil
+.........\glue 0.0 plus 1.0fil
+........\hbox(6.44444+0.0)x17.77783
+.........\hbox(6.44444+0.0)x17.77783
+..........\mathon
+..........\hbox(6.44444+0.0)x17.77783
+...........\OT1/cmr/m/n/10 5
+...........\OML/cmm/m/it/10 :
+...........\OT1/cmr/m/n/10 6
+...........\OT1/cmr/m/n/10 7
+..........\mathoff
+........\hbox(0.0+0.0)x0.0
+.........\glue 0.0 plus 1.0fil
+........\hbox(0.0+0.0)x0.0
+........\glue 0.0 plus 0.5fill
+........\kern 0.0
+........\glue 0.0 plus 1.0fil
+........\glue 6.0
+.......\glue(\tabskip) 0.0
+.......\hbox(8.39996+3.60004)x34.77785
+........\glue 6.0
+........\glue 0.0 plus 1.0fil
+........\glue 0.0 plus 0.5fill
+........\kern 0.0
+........\hbox(0.0+0.0)x0.0
+.........\glue 0.0 plus 1.0fil
+........\hbox(0.0+0.0)x5.00002, glue set 5.00002fil
+.........\glue 0.0 plus 1.0fil
+........\hbox(6.44444+0.0)x17.77783
+.........\hbox(0.0+0.0)x0.0
+..........\glue 0.0 plus 1.0fil
+.........\hbox(6.44444+0.0)x17.77783
+..........\mathon
+..........\hbox(6.44444+0.0)x17.77783
+...........\OT1/cmr/m/n/10 5
+...........\OML/cmm/m/it/10 :
+...........\OT1/cmr/m/n/10 6
+...........\OT1/cmr/m/n/10 7
+..........\mathoff
+........\hbox(0.0+0.0)x0.0
+.........\glue 0.0 plus 1.0fil
+........\hbox(0.0+0.0)x0.0
+.........\glue 0.0 plus 1.0fil
+........\glue 0.0 plus 0.5fill
+........\kern 0.0
+........\glue 0.0 plus 1.0fil
+........\glue 6.0
+.......\glue(\tabskip) 0.0
+.....\mathoff
+....\penalty 10000
+....\glue(\parfillskip) 0.0 plus 1.0fil
+....\glue(\rightskip) 0.0
+...\glue 0.0 plus 1.0fil
+...\glue 0.0
+...\glue 0.0 plus 0.0001fil
+..\glue(\baselineskip) 23.55556
+..\hbox(6.44444+0.0)x345.0, glue set 170.0fil
+...\glue 0.0 plus 1.0fil
+...\OT1/cmr/m/n/10 1
+...\glue 0.0 plus 1.0fil
+(.aux)
diff --git a/texlive.sh b/texlive.sh
index f057d89..9356ccc 100644
--- a/texlive.sh
+++ b/texlive.sh
@@ -25,3 +25,4 @@ EOF
 ./install-tl --profile=./texlive.profile
 export PATH=/tmp/texlive/bin/x86_64-linux:$PATH
 tlmgr install courier ptex times uptex xetex
+sh contrib/contrib.sh
\ No newline at end of file

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the latex3-commits mailing list