Add a game state log dumping facility that produces a (load)able sexpr-log.
[eow] / eow.asd
diff --git a/eow.asd b/eow.asd
index 01d54501da943a142dd09f4c2aa1159b727efd0b..e4c89478111f7c60b3f59bd042b79186df2c5fec 100644 (file)
--- a/eow.asd
+++ b/eow.asd
     :version "0.0.1"
     :licence "MIT"
     :description "Web Empire client"
-    :depends-on (:usocket :hunchentoot)
+    :in-order-to ((test-op (load-op eow-test)))
+    :perform (test-op :after (op c)
+                     (describe (funcall (intern "RUN-TESTS" :lift) 
+                                        :suite (intern "EMPIRE-TESTS"
+                                                       :empire-tests))))
+    :depends-on (:usocket :hunchentoot :parenscript :lift)
     :components ((:file "package")
                  (:file "util"
                         :depends-on ("package"))
                  (:file "locked-queue"
                         :depends-on ("package"))
+                 (:file "xdump"
+                        :depends-on ("package"))
+                 (:file "xdump-data"
+                        :depends-on ("package" "xdump"))
+                (:file "log"
+                        :depends-on ("package"))
                 (:file "web"
-                       :depends-on ("package" "locked-queue"))
+                       :depends-on ("package" "locked-queue" "log"))
                  (:file "empire"
-                        :depends-on ("util"))))
+                        :depends-on ("util" "log" "xdump"))
+                (:file "unit-tests"
+                       :depends-on ("xdump"))))
+
+(defsystem eow-test
+  :components ((:file "unit-tests"))
+  :depends-on ("eow" "lift"))