diff options
author | apfelkuchen06 <apfelkuchen@hrnz.li> | 2023-04-27 00:34:53 +0200 |
---|---|---|
committer | apfelkuchen06 <apfelkuchen@hrnz.li> | 2023-04-27 00:36:41 +0200 |
commit | f2644470f9fb29bff1f677fe469e68468100f807 (patch) | |
tree | b41f3a18611992b3cd7be89133b62397d8d26ee8 /pkgs/test/texlive | |
parent | c5403f4505d77de2510cae3b7fc4b6cffed6c309 (diff) |
tests.texlive: also test xelatex in the opentype font test
Diffstat (limited to 'pkgs/test/texlive')
-rw-r--r-- | pkgs/test/texlive/default.nix | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/pkgs/test/texlive/default.nix b/pkgs/test/texlive/default.nix index cbfa0c45e8fc9..91a894906cc76 100644 --- a/pkgs/test/texlive/default.nix +++ b/pkgs/test/texlive/default.nix @@ -11,11 +11,11 @@ diff -u "''${nixpkgsTlpdbNix}" "''${tlpdbNix}" | tee "$out/tlpdb.nix.patch" ''; - luaotfload-fonts = runCommand "texlive-test-lualatex" { + opentype-fonts = runCommand "texlive-test-opentype" { nativeBuildInputs = [ (with texlive; combine { inherit scheme-medium libertinus-fonts; }) ]; - input = builtins.toFile "lualatex-testfile.tex" '' + input = builtins.toFile "opentype-testfile.tex" '' \documentclass{article} \usepackage{fontspec} \setmainfont{Libertinus Serif} @@ -26,7 +26,13 @@ } '' export HOME="$(mktemp -d)" + # We use the same testfile to test two completely different + # font discovery mechanisms, both of which were once broken: + # - lualatex uses its own luaotfload script (#220228) + # - xelatex uses fontconfig (#228196) + # both of the following two commands need to succeed. lualatex -halt-on-error "$input" + xelatex -halt-on-error "$input" echo success > $out ''; |