From 2e2b6d13e2eb585c91329683cedc142c09780e2e Mon Sep 17 00:00:00 2001 From: apfelkuchen06 Date: Wed, 22 Mar 2023 02:52:50 +0100 Subject: [PATCH] tests/texlive: add a context test Since context now uses the luametatex engine, which is not distributed with texlive, the probability of breaking it when updating increases. Let's add a simple test just in case. Co-authored-by: Vincenzo Mantova <1962985+xworld21@users.noreply.github.com> --- pkgs/test/texlive/default.nix | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/pkgs/test/texlive/default.nix b/pkgs/test/texlive/default.nix index 12fdd5c45f8b..acf806f9e0b0 100644 --- a/pkgs/test/texlive/default.nix +++ b/pkgs/test/texlive/default.nix @@ -1,4 +1,4 @@ -{ lib, stdenv, buildEnv, runCommand, fetchurl, file, texlive, writeShellScript, writeText, texliveInfraOnly, texliveSmall, texliveMedium, texliveFull }: +{ lib, stdenv, buildEnv, runCommand, fetchurl, file, texlive, writeShellScript, writeText, texliveInfraOnly, texliveConTeXt, texliveSmall, texliveMedium, texliveFull }: rec { @@ -74,6 +74,19 @@ rec { grep "One warning printed" "$out" ''; + context = mkTeXTest { + name = "texlive-test-context"; + format = "context"; + texLive = texliveConTeXt; + text = '' + \starttext + \startsection[title={ConTeXt test document}] + This is an {\em incredibly} simple ConTeXt document. + \stopsection + \stoptext + ''; + }; + dvipng = lib.recurseIntoAttrs { # https://github.com/NixOS/nixpkgs/issues/75605 basic = runCommand "texlive-test-dvipng-basic" {