- NEW: org-skill-utils-lisp (consolidated from org-skill-lisp-utils) * 3-phase validation: structural, syntactic, semantic * Sandboxed eval, AST extraction/injection/wrapping * Format, list-definitions utilities - NEW: org-skill-utils-org (consolidated from org-skill-emacs-edit) * Read/update/delete org headlines * Property management, TODO state handling * ID-link and internal link support - DELETE: org-skill-lisp-utils (merged into utils-lisp) - DELETE: org-skill-emacs-edit (merged into utils-org) - RENAME: run-all-tests.lisp -> run-tests.lisp - HARDEN: Skill loader with improved lisp keyword handling - FIX: Package jailing issues with def-cognitive-tool macro conflicts - ADD: Setup wizard (opencortex setup) and doctor (opencortex doctor) - ADD: TUI client with Croatoan for native terminal rendering - REMOVE: Dynamic loading from opencortex.asd (use :force t instead) - CLEANUP: Test file consolidation (removed duplicate test suites) Co-authored-by: Agent <agent@memex>
25 lines
947 B
Common Lisp
25 lines
947 B
Common Lisp
(defpackage :opencortex-doctor-tests
|
|
(:use :cl :fiveam :opencortex)
|
|
(:export #:doctor-suite))
|
|
|
|
(in-package :opencortex-doctor-tests)
|
|
|
|
(def-suite doctor-suite :description "Verification of the System Doctor diagnostic logic")
|
|
(in-suite doctor-suite)
|
|
|
|
(test test-dependency-check-fail
|
|
"Verify that missing binaries are correctly identified as failures."
|
|
(let ((opencortex::*doctor-required-binaries* '("non-existent-binary-123")))
|
|
(is (null (opencortex:doctor-check-dependencies)))))
|
|
|
|
(test test-env-validation-fail
|
|
"Verify that an invalid MEMEX_DIR triggers a critical failure."
|
|
(let ((old-m (uiop:getenv "MEMEX_DIR"))
|
|
(old-s (uiop:getenv "SKILLS_DIR")))
|
|
(unwind-protect
|
|
(progn
|
|
(setf (uiop:getenv "MEMEX_DIR") "/non/existent/path/999")
|
|
(is (null (opencortex:doctor-check-env))))
|
|
(setf (uiop:getenv "MEMEX_DIR") (or old-m ""))
|
|
(setf (uiop:getenv "SKILLS_DIR") (or old-s "")))))
|