diff --git a/homestead.asd b/homestead.asd index 7c6e979..04440cc 100644 --- a/homestead.asd +++ b/homestead.asd @@ -1,5 +1,22 @@ -(asdf:defsystem #:homestead - :serial t - :description "A static site generator" - :author "Gosha Tcherednitchenko" - :license "MIT") +(defsystem "homestead" + :version "0.0.1" + :author "Gosha Tcherednitchenko " + :license "MIT License" + :depends-on (#:cl-markdown) + :components ((:module "src" + :components + ((:file "main")))) + :description "A static website generator" + :in-order-to ((test-op (test-op "homestead/tests")))) + +(defsystem "homestead/tests" + :author "Gosha Tcherednitchenko " + :license "MIT License" + :depends-on ("homestead" + "fiveam") + :components ((:module "tests" + :components + ((:file "main")))) + :description "Test system for homestead" + :perform (test-op (o s) + (uiop:symbol-call :fiveam :run! 'homestead/tests/main:all-tests))) diff --git a/src/main.lisp b/src/main.lisp index e69de29..c78f73b 100644 --- a/src/main.lisp +++ b/src/main.lisp @@ -0,0 +1,5 @@ +(defpackage homestead + (:use :cl)) +(in-package :homestead) + +;; blah blah blah. diff --git a/tests/main.lisp b/tests/main.lisp new file mode 100644 index 0000000..f1ddc6a --- /dev/null +++ b/tests/main.lisp @@ -0,0 +1,21 @@ +(defpackage homestead/tests/main + (:use :cl + :homestead + :fiveam) + (:export #:run! #:all-tests)) +(in-package #:homestead/tests/main) + +;; NOTE: To run this test file, execute `(asdf:test-system :homestead)' in your Lisp. + +(def-suite all-tests + :description "Global test suite") + +(in-suite all-tests) + +(defun test-homestead () + (run! 'all-tests)) + +(test dummy-tests + "Just a placeholder." + (is (listp (list 1 2))) + (is (= 5 (+ 2 3))))