]> dreyeck.freedombox.rocks Git - topic-maps.git/blob - reports/slice-22n/api-preflight.lisp
test: prove CTM/XTM anyType equivalence (slice 22T)
[topic-maps.git] / reports / slice-22n / 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::rrr-native-tests)
7 (load #P"/Users/rgb/workspace/topic-maps/tests/xtm-role-reifier-native.lisp"))
8 (in-package #:topic-maps.xtm.tests)
9 (setf *checks* nil)
10 (rrr-native-tests)
11 (let ((path (uiop:getenv "TOPIC_MAPS_22N_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-Role-Reification-gate-before-Reader-change"
16 "checks" (coerce (reverse *checks*) 'vector) "observations" (coerce *role-reifier-native* 'vector)
17 "ReaderInvoked" :false "originalRegistrationsAdded" 0) out)
18 (terpri out))))
19 (format t "ROLE-REIFIER-NATIVE-PREFLIGHT-PASS: ~D native checks; no Reader calls; no corpus registration~%" (length *checks*))