-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathrun-core-tests.lisp
34 lines (25 loc) · 1.09 KB
/
run-core-tests.lisp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
(require "asdf")
(require "uiop")
;; Sometimes lispworks doesn't seem to load the initialization file when running from
;; the command line, in which case this could be uncommented.
;; (load "~/quicklisp/setup.lisp")
(ql:quickload "prove-asdf")
(ql:quickload "cl-ppcre")
(ql:quickload "prove")
(ql:quickload :cl-fad)
(ql:quickload :log4cl)
(ql:quickload :cffi)
(defvar *boxer-project-dir* (make-pathname :directory (pathname-directory *load-truename*)))
(pushnew
(cl-fad:merge-pathnames-as-directory *boxer-project-dir* "data/boxersunrise.app/Contents/Frameworks/")
cffi:*foreign-library-directories* :test #'equal)
(setf asdf:*central-registry*
(list* '*default-pathname-defaults*
*boxer-project-dir*
asdf:*central-registry*))
;; This turns off the terminal color sequences and simplifies the characters in the
;; output so they display well in the lispworks listener.
(setf prove:*enable-colors* nil)
(setf prove::*default-reporter* :tap)
#+lispworks (load (example-file "opengl/examples/load"))
(asdf:test-system :boxer-sunrise-core :reporter :list)