X-Git-Url: https://dreyeck.freedombox.rocks/gitweb/topic-maps.git/blobdiff_plain/5e716c078b885e97ebe858230ce7d8578e65ae4b..refs/heads/codex/xtm-slice-22r:/scripts/fresh-sbcl.lisp?ds=sidebyside diff --git a/scripts/fresh-sbcl.lisp b/scripts/fresh-sbcl.lisp index 669cf59..a722e08 100644 --- a/scripts/fresh-sbcl.lisp +++ b/scripts/fresh-sbcl.lisp @@ -12,7 +12,7 @@ (asdf:test-system "topic-maps/ctm/merging-tests") (asdf:test-system "topic-maps/ctm/association-tests") ;; Import tests run all retained CTM/TMDM/CXTM suites once. - (asdf:test-system "topic-maps/ctm/mergemap-tests") + (asdf:test-system "topic-maps/ctm/include-tests") (when report (uiop:symbol-call :topic-maps.ctm.tests :write-slice-report report (concatenate 'string report ".semantics.json")) @@ -39,8 +39,9 @@ (uiop:symbol-call :topic-maps.relationship.tests :relationship-checks) (uiop:symbol-call :topic-maps.template.tests :template-checks) (uiop:symbol-call :topic-maps.import.tests :import-checks) - (uiop:symbol-call :topic-maps.mergemap.tests :mergemap-checks)) - :scope "Slice 19B: controlled CTM Mergemap resources; 169 positive CTM/CXTM comparisons, 25 specific rejections and 2 retained DateTime baseline FAILs. Include and XTM Mergemap remain NOT-RUN") + (uiop:symbol-call :topic-maps.mergemap.tests :mergemap-checks) + (uiop:symbol-call :topic-maps.include.tests :include-checks)) + :scope "Slice 19C: controlled CTM Include and Mergemap; 176 byte-equal positives, 28 specific rejections, 2 retained DateTime and 2 explicit Include baseline FAILs. XTM Mergemap remains NOT-RUN") (uiop:symbol-call :topic-maps.ctm.tests :write-occurrence-report (concatenate 'string report ".occurrences.json")) (uiop:symbol-call :topic-maps.ctm.tests :write-prefix-report @@ -76,4 +77,74 @@ (uiop:symbol-call :topic-maps.import.tests :write-import-report (concatenate 'string report ".map-import.json")) (uiop:symbol-call :topic-maps.mergemap.tests :write-mergemap-report - (concatenate 'string report ".mergemap.json")))) + (concatenate 'string report ".mergemap.json")) + (uiop:symbol-call :topic-maps.include.tests :write-include-report + (concatenate 'string report ".include.json")))) + +;; Explicit opt-in integration after the unchanged core suites and reports. +;; Restore only the caller's qualified source registry, then load the adapter. +(let ((prefix (uiop:getenv "TOPIC_MAPS_XTM_MERGEMAP_REPORT"))) + (when prefix + (let ((calls 0)) + (handler-case + (progn + (uiop:symbol-call :topic-maps.ctm :deserialize-string + "%mergemap " + :document-iri "urn:adapter-boundary" + :resource-resolver (lambda (&rest args) (declare (ignore args)) (incf calls))) + (error "Core CTM unexpectedly accepted XTM without its explicit adapter.")) + (topic-maps.ctm:ctm-unsupported (condition) + (assert (and (zerop calls) (eq :xtm-mergemap-reader-required (topic-maps.ctm:error-code condition))))))) + (format t "XTM-ADAPTER-BOUNDARY-PASS: explicit adapter required before resource retrieval~%") + (asdf:initialize-source-registry + (let ((*read-eval* nil)) + (read-from-string + (or (uiop:getenv "CL_SOURCE_REGISTRY") + (error "XTM integration requires the prepared qualified source registry."))))) + (asdf:test-system "topic-maps/ctm/xtm-tests") + (uiop:symbol-call :topic-maps.xtm-mergemap.tests :write-reports prefix))) + + +;; Slice 20A registration always runs after the retained suites and the optional +;; XTM adapter. Historical reports above remain snapshots of their own stages. +(asdf:test-system "topic-maps/ctm/registered-original-tests") +(let ((prefix (uiop:getenv "TOPIC_MAPS_REGISTERED_ORIGINALS_REPORT"))) + (when prefix + (uiop:symbol-call :topic-maps.registered-original.tests :write-reports prefix))) + + +;; Slice 20B runs after the unchanged Slice 20A snapshot in the same fresh process. +(asdf:test-system "topic-maps/ctm/registered-negative-tests") +(let ((prefix (uiop:getenv "TOPIC_MAPS_REGISTERED_NEGATIVES_REPORT"))) + (when prefix + (uiop:symbol-call :topic-maps.registered-original.tests :write-negative-reports prefix))) + +;; Slice 20C: retained 20A/20B snapshots precede the new original contracts. +(asdf:test-system "topic-maps/ctm/prolog-tests") +(let ((prefix (uiop:getenv "TOPIC_MAPS_PROLOG_REPORT"))) + (when prefix (uiop:symbol-call :topic-maps.prolog.tests :write-reports prefix))) + + +;; Slice 20E: one positive original after all retained stage snapshots. +(asdf:test-system "topic-maps/ctm/empty2-tests") +(let ((prefix (uiop:getenv "TOPIC_MAPS_EMPTY2_REPORT"))) + (when prefix + (uiop:symbol-call :topic-maps.registered-original.tests :write-empty2-reports prefix))) + + +;; Slice 20F: original CTM-integer literal after all retained stage reports. +(asdf:test-system "topic-maps/ctm/ctm-integer-tests") +(let ((prefix (uiop:getenv "TOPIC_MAPS_CTM_INTEGER_REPORT"))) + (when prefix (uiop:symbol-call :topic-maps.ctm-integer.tests :write-reports prefix))) + + +;; Slice 20G: four original Triple Strings after retained stage reports. +(asdf:test-system "topic-maps/ctm/triple-string-tests") +(let ((prefix (uiop:getenv "TOPIC_MAPS_TRIPLE_REPORT"))) + (when prefix (uiop:symbol-call :topic-maps.triple.tests :write-reports prefix))) + + +;; Slice 20H: qualified ISO-8859-5 after all retained stage snapshots. +(asdf:test-system "topic-maps/ctm/encoding-tests") +(let ((prefix (uiop:getenv "TOPIC_MAPS_ENCODING_REPORT"))) + (when prefix (uiop:symbol-call :topic-maps.encoding.tests :write-reports prefix)))