Skip to content

Commit

Permalink
Change test target and test ASDF system file
Browse files Browse the repository at this point in the history
  • Loading branch information
eudoxia0 committed May 17, 2014
1 parent 0a083b6 commit 7b65655
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 24 deletions.
15 changes: 4 additions & 11 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -66,17 +66,10 @@ cmc: buildapp libs
all: cmc

test: libs
$(LISP_QL) --eval '(ql:quickload :split-sequence)' \
--eval '(ql:quickload :anaphora)' \
--eval '(ql:quickload :alexandria)' \
--eval '(ql:quickload :trivial-shell)' \
--eval '(ql:quickload :cl-mustache)' \
--eval '(ql:quickload :yason)' \
--eval '(load "$(NAME).asd")' \
--eval '(ql:quickload :cl-test-more)' \
--eval '(ql:quickload :fiveam)' \
--eval '(load "$(NAME)-test.asd")' \
--eval '(load "t/$(NAME).lisp")' --quit
$(LISP_QL) --eval '(ql:quickload :fiveam)' \
--eval '(ql:quickload :$(NAME))' \
--eval '(ql:quickload :$(NAME)-test)' \
--quit

clean:
rm -rf $(BUILD)
Expand Down
15 changes: 2 additions & 13 deletions cmacro-test.asd
Original file line number Diff line number Diff line change
@@ -1,19 +1,8 @@
(in-package :cl-user)
(defpackage cmacro-test-asd
(:use :cl :asdf))
(in-package :cmacro-test-asd)

(defsystem cmacro-test
(asdf:defsystem cmacro-test
:author "Fernando Borretti"
:license "MIT"
:depends-on (:cmacro
:fiveam)
:components ((:module "t"
:components
((:file "cmacro"))))

:defsystem-depends-on (:cl-test-more)
:perform (test-op :after (op c)
(funcall (intern #. (string :run-test-system) :cl-test-more)
c)
(asdf:clear-system c)))
((:file "cmacro")))))

0 comments on commit 7b65655

Please sign in to comment.