diff options
author | Dmitry Kalinkin <dmitry.kalinkin@gmail.com> | 2024-03-31 16:43:12 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-03-31 16:43:12 -0400 |
commit | ce426df9bbdb00596edaa8c2029d02e2bd72f92d (patch) | |
tree | 3afe1fc42ba4376542e176779c70982479d4277e /pkgs/test | |
parent | ce31cd2a458e3b8b2315802accbd692617871959 (diff) | |
parent | 87216540ef8175515676c0d4dd5adba3ab46273e (diff) |
Merge pull request #294826 from xworld21/texlive-install-tl
texlive.withPackages: replace postBuild with install-tl like script
Diffstat (limited to 'pkgs/test')
-rw-r--r-- | pkgs/test/texlive/default.nix | 20 |
1 files changed, 8 insertions, 12 deletions
diff --git a/pkgs/test/texlive/default.nix b/pkgs/test/texlive/default.nix index 5f70675439323..e363b5776e890 100644 --- a/pkgs/test/texlive/default.nix +++ b/pkgs/test/texlive/default.nix @@ -81,6 +81,14 @@ rec { name = "texlive-test-context"; format = "context"; texLive = texliveConTeXt; + # check that the PDF has been created: we have hit cases of context + # failing with exit status 0 due to a misconfigured texlive + postTest = '' + if [[ ! -f "$name".pdf ]] ; then + echo "ConTeXt test failed: file '$name.pdf' not found" + exit 1 + fi + ''; text = '' \starttext \startsection[title={ConTeXt test document}] @@ -333,18 +341,6 @@ rec { done ''; - # test that fmtutil.cnf is fully regenerated on scheme-full - fmtutilCnf = runCommand "texlive-test-fmtutil.cnf" { - kpathsea = texlive.pkgs.kpathsea.tex; - schemeFull = texliveFull; - } '' - mkdir -p "$out" - - diff --ignore-matching-lines='^# Generated by ' -u \ - {"$kpathsea","$schemeFull"/share/texmf-var}/web2c/fmtutil.cnf \ - | tee "$out/fmtutil.cnf.patch" - ''; - # verify that the restricted mode gets enabled when # needed (detected by checking if it disallows --gscmd) repstopdf = runCommand "texlive-test-repstopdf" { |