]> dreyeck.freedombox.rocks Git - topic-maps.git/blob - reports/slice-22l/api-preflight.lisp
docs: design draft for a read-only SHOP3 adapter over TMDM objects
[topic-maps.git] / reports / slice-22l / api-preflight.lisp
1 (require :asdf)
2 (setf *compile-verbose* nil *load-verbose* nil)
3 (assert (string= "2.5.4" (lisp-implementation-version)))
4 (asdf:load-asd #P"/Users/rgb/workspace/topic-maps/topic-maps.asd")
5 (asdf:load-system "topic-maps/xtm/tests")
6 (unless (fboundp 'topic-maps.xtm.tests::orr-native-tests)
7 (load #P"/Users/rgb/workspace/topic-maps/tests/xtm-occurrence-reifier-native.lisp"))
8 (in-package #:topic-maps.xtm.tests)
9 (setf *checks* nil)
10 (orr-native-tests)
11 (let ((path (uiop:getenv "TOPIC_MAPS_22L_NATIVE_REPORT")))
12 (when path
13 (with-open-file (out path :direction :output :if-exists :supersede :external-format :utf-8)
14 (topic-maps.test-foundation::emit-json-value
15 (mm-fields "runtime" (lisp-implementation-version) "kind" "native-Occurrence-Reification-gate-before-Reader-change"
16 "checks" (coerce (reverse *checks*) 'vector) "observations" (coerce *occurrence-reifier-native* 'vector)
17 "ReaderInvoked" :false "originalRegistrationsAdded" 0) out)
18 (terpri out))))
19 (format t "OCCURRENCE-REIFIER-NATIVE-PREFLIGHT-PASS: ~D native checks; no Reader calls; no corpus registration~%" (length *checks*))