Skip to content
cl-protobufs-tests.asd 4.25 KiB
Newer Older
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;;                                                                  ;;;
;;; Free Software published under an MIT-like license. See LICENSE   ;;;
;;; Copyright (c) 2012 Google, Inc.  All rights reserved.            ;;;
;;;                                                                  ;;;
;;; Original author: Scott McKay                                     ;;;
;;;                                                                  ;;;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

(in-package "CL-USER")


Scott McKay's avatar
Scott McKay committed
(asdf:defsystem :cl-protobufs-tests
  :name "Protobufs Tests"
  :author "Scott McKay"
  :version "1.0"
  :maintainer '("Scott McKay")
  :description      "Test code for Protobufs for Common Lisp"
  :long-description "Test code for Protobufs for Common Lisp"
  :defsystem-depends-on (:cl-protobufs)
  :depends-on (:cl-protobufs
               #+qres :quux
               #+qres :test-tools
               #+qres :qres-core)
  :serial t
  :components
    ((:module "packages"
              :serial t
              :pathname #p""
              :components
     ;; Wire format tests
     (:module "wire-level-tests"
              :serial t
              :pathname #p""
              :depends-on ("packages")
              :components
                ((:file "varint-tests")
                 (:file "wire-tests")))
     ;; Simple tests
     (:module "object-level-tests"
              :serial t
              :pathname #p""
              :depends-on ("wire-level-tests")
              :components
              ((:file "serialization-tests")
               (:file "stability-tests")
               (:file "symbol-import-tests")))
     ;; Geodata hack
     (:module "geodata-proto"
              :pathname #p""
                ((:protobuf-file "geodata")))
     (:module "geodata-data"
              :pathname #p""
                ((:static-file "geodata.data")))
     (:module "geodata"
              :pathname #p""
              :depends-on ("geodata-proto" "geodata-data")
              :components
     ;; Bob Brown's protocol buffers tests
     (:module "brown-tests-proto"
              :serial t
              :pathname #p""
              :components
                ((:protobuf-file "testproto1")
                 (:protobuf-file "testproto2")))
     (:module "brown-tests"
              :serial t
              :pathname #p""
              :depends-on ("object-level-tests" "brown-tests-proto")
              :components
                ((:file "quick-tests")
                 (:static-file "golden.data")))
Scott McKay's avatar
Scott McKay committed

     (:module "lisp-reference-tests"
              :serial t
              :pathname #p""
              :components
                ((:protobuf-file "package_test1") ; automatically includes package_test2
                 (:protobuf-file "forward_reference")
                 (:file "lisp-reference-tests")))

     (module "nested-extend-test"
             :serial t
             :pathname #p""
             :components
               ((:protobuf-file "extend-test")
                (:file "lisp-extend-test")))

     (module "case-preservation-test"
             :serial t
             :pathname #p""
             :components
               ((:protobuf-file "case-preservation")
                (:file "case-preservation-test")))

     ;; Google's own protocol buffers and protobuf definitions tests
     #+++notyet
     (:module "google-tests-proto"
              :serial t
              :pathname #p""
              :components
                ((:protobuf-file "descriptor")
                 (:protobuf-file "unittest_import")
                 (:protobuf-file "unittest" :depends-on ("unittest_import"))))
     #+++notyet
     (:module "google-tests"
              :serial t
              :pathname #p""
              :depends-on ("object-level-tests" "google-tests-proto")
              :components
                ((:file "full-tests")
                 (:static-file "golden_message.data")
                 (:static-file "golden_packed_message.data")))))