-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Beginning a major overhaul of :house, starting with test-utils use
- Loading branch information
Showing
13 changed files
with
184 additions
and
146 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
language: common-lisp | ||
sudo: required | ||
|
||
install: | ||
- curl -L https://raw.githubusercontent.com/snmsts/roswell/release/scripts/install-for-ci.sh | sh | ||
|
||
script: | ||
- ros -s prove -e '(progn (ql:quickload (list :house :house-test)) (or (prove:run :house-test) (uiop:quit -1)))' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,11 @@ | ||
;;;; house.asd | ||
|
||
(asdf:defsystem #:house | ||
:serial t | ||
:description "Custom asynchronous HTTP server for the Deal project." | ||
:description "Custom asynchronous HTTP server for the Deal project." | ||
:author "Inaimathi <[email protected]>" | ||
:license "AGPL3" | ||
:version "0.0.1" | ||
:serial t | ||
:depends-on (#:alexandria | ||
#:anaphora | ||
|
||
|
@@ -14,11 +15,27 @@ | |
#:session-token #:trivial-features | ||
|
||
#:lisp-unit) | ||
:components ((:file "package") | ||
(:file "model") | ||
(:file "handler-table") | ||
(:file "util") | ||
(:file "define-handler") | ||
(:file "session") | ||
(:file "house") | ||
(:file "unit-tests"))) | ||
:components ((:module | ||
src :components | ||
((:file "package") | ||
(:file "model") | ||
(:file "handler-table") | ||
(:file "util") | ||
(:file "define-handler") | ||
(:file "session") | ||
(:file "house"))))) | ||
|
||
(asdf:defsystem #:house-test | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
inaimathi
Author
Owner
|
||
:description "Test suite for :house" | ||
:author "Inaimathi <[email protected]>" | ||
:license "AGPL3" | ||
:serial t | ||
:depends-on (#:house #:test-utils) | ||
:defsystem-depends-on (#:prove-asdf) | ||
:components ((:module | ||
test :components | ||
((:file "package") | ||
(:test-file "house")))) | ||
:perform (test-op | ||
:after (op c) | ||
(funcall (intern #.(string :run) :prove) c))) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
#!/bin/bash | ||
sbcl \ | ||
--eval '(ql:quickload (list :house :house-test))' \ | ||
--eval '(or (and (prove:run :house-test) (uiop:quit 0)) (uiop:quit -1))' |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
;;;; test/package.lisp | ||
|
||
(defpackage #:house-test | ||
(:use #:cl #:house #:test-utils) | ||
(:import-from #:house #:parse #:parse-params #:uri-decode #:http-assertion-error)) |
This file was deleted.
Oops, something went wrong.
ASDF will going to complain about the system being defined in this file instead of a separate one. If one wants to define the test system in the same asd file, ASDF wants one to use '/
' instead of
-. ie.
(defsystem "house/test" .`From the ASDF manual