From 08f32f27c85eb2cd25f8294974cc635a301a9695 Mon Sep 17 00:00:00 2001 From: Javier Olaechea Date: Sat, 24 Sep 2016 00:27:00 -0500 Subject: [PATCH] Improve COLESLAW-CONF:*BASEDIR* tests Check for the presence of plugins and themes sub-directories. This is to ensure that COLESLAW-CONF:*BASEDIR* is not bound the directory of the FASL cache. --- tests/tests.lisp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/tests/tests.lisp b/tests/tests.lisp index 200ba32..1db239c 100644 --- a/tests/tests.lisp +++ b/tests/tests.lisp @@ -3,10 +3,14 @@ (in-package :coleslaw-tests) -(plan 1) +(plan 3) (diag "COLESLAW-CONF:*BASEDIR* points to Coleslaw's top level directory") (is (car (last (pathname-directory coleslaw-conf:*basedir*))) "coleslaw" :test #'string=) +(ok (probe-file (merge-pathnames #P"plugins" coleslaw-conf:*basedir*)) + "COLESLAW-CONF:*BASEDIR* has a plugins sub-directory") +(ok (probe-file (merge-pathnames #P"themes" coleslaw-conf:*basedir*)) + "COLESLAW-CONF:*BASEDIR* has a themes sub-directory") (finalize)