about summary refs log tree commit diff
path: root/third_party/lisp/mime4cl/default.nix
diff options
context:
space:
mode:
authorsterni <sternenseemann@systemli.org>2023-05-01T16·06+0200
committerclbot <clbot@tvl.fyi>2023-05-01T16·17+0000
commit1e4b73ac957f30b57800533276a1f571d06f4f62 (patch)
treec359331e81296b7a364fca8fe2ba4e6ccfdd782c /third_party/lisp/mime4cl/default.nix
parent93a6d3d9208197c9d8ce419747ec5c34a9d8d8d1 (diff)
refactor(3p/lisp/mime4cl): unify test mechanism for sample msgs r/6122
For whatever reason, there were two sort of identical tests, mime.1 and
mime.2, in the mime4cl test suite: The former tested *sample1-file* and
the latter all messages *samples-directory*—in the same way, parsing the
original and a re-rendered version of the message to check if they were
equal.

We can just move sample1.msg into *samples-directory*, get rid
of *sample1-file* and thus pave the way for more test messages in the
future.

Change-Id: I843be331682b731af6ae02a4648ba1c64aaf59a5
Reviewed-on: https://cl.tvl.fyi/c/depot/+/8546
Reviewed-by: sterni <sternenseemann@systemli.org>
Autosubmit: sterni <sternenseemann@systemli.org>
Tested-by: BuildkiteCI
Diffstat (limited to 'third_party/lisp/mime4cl/default.nix')
-rw-r--r--third_party/lisp/mime4cl/default.nix6
1 files changed, 2 insertions, 4 deletions
diff --git a/third_party/lisp/mime4cl/default.nix b/third_party/lisp/mime4cl/default.nix
index 06831640968f..f276e9f8e77c 100644
--- a/third_party/lisp/mime4cl/default.nix
+++ b/third_party/lisp/mime4cl/default.nix
@@ -29,10 +29,8 @@ depot.nix.buildLisp.library {
       (pkgs.writeText "nix-samples.lisp" ''
         (in-package :mime4cl-tests)
 
-        ;; missing from the tarball completely
-        (defvar *samples-directory* (pathname "/this/does/not/exist"))
-        ;; override auto discovery which doesn't work in store
-        (defvar *sample1-file* (pathname "${./test/sample1.msg}"))
+        ;; override auto discovery which doesn't work in the nix store
+        (defvar *samples-directory* (pathname "${./test/samples}"))
       '')
       ./test/temp-file.lisp
       ./test/endec.lisp