40 lines
1.3 KiB
Common Lisp
40 lines
1.3 KiB
Common Lisp
(require "asdf")
|
||
|
||
(asdf:defsystem "mirror-img"
|
||
:version "0.1"
|
||
:license "GPLv3"
|
||
:author "Jaidyn Ann <jadedctrl@posteo.at>"
|
||
:depends-on (:dexador :lquery :pathname-utils :split-sequence)
|
||
:components ((:file "src/mirror-img"))
|
||
:in-order-to ((test-op (test-op "mirror-img/tests"))
|
||
(build-op (build-op "mirror-img/unix"))))
|
||
|
||
(asdf:defsystem "mirror-img/unix"
|
||
:version "0.1"
|
||
:license "GPLv3"
|
||
:author "Jaidyn Ann <jadedctrl@posteo.at>"
|
||
:class asdf:program-system
|
||
:build-operation "program-op"
|
||
:build-pathname "mirror-img"
|
||
:entry-point "mirror-img/unix:main"
|
||
:depends-on (:mirror-img :unix-opts :cl-strings)
|
||
:components ((:file "src/unix")))
|
||
|
||
|
||
|
||
;;; Tests
|
||
;;; —————————————————————————————————————
|
||
(asdf:defsystem "mirror-img/tests"
|
||
:version "0.1"
|
||
:license "GPLv3"
|
||
:author "Jaidyn Ann <jadedctrl@posteo.at>"
|
||
:description "Tests for the the mirror-img package."
|
||
:depends-on (:mirror-img :hunchentoot :lisp-unit2)
|
||
:components ((:file "t/mirror-img")))
|
||
|
||
;; Following method tweaked from lisp-unit2’s documentation:
|
||
;; https://github.com/AccelerationNet/lisp-unit2/blob/master/README.md#asdf
|
||
(defmethod asdf:perform ((o asdf:test-op) (c (eql (asdf:find-system :mirror-img/tests))))
|
||
(eval (read-from-string
|
||
"(mirror-img/tests:run)")))
|