This is a template for a Common Lisp project using Ocicl for package management, Lisp-Unit2 as testing framework and Check-It as property testing library.
Common Lisp 100.0%
34 1 0

Clone this repository

https://tangled.org/releasecandidate.bsky.social/commonlisp-template https://tangled.org/did:plc:bsvlnvc2ypnlpvcttd7b5jlz/commonlisp-template
git@tangled.org:releasecandidate.bsky.social/commonlisp-template git@tangled.org:did:plc:bsvlnvc2ypnlpvcttd7b5jlz/commonlisp-template

For self-hosted knots, clone URLs may differ based on your setup.

Download tar.gz
README.md
WARNING

This repository has been moved to Codeberg: Common Lisp Project Template

Common Lisp Project Template#

Test <- this test is failing to check whether failing tests actually cause the workflow to fail

This is a template for a Common Lisp project using Ocicl for package management, Lisp-Unit2 as testing framework and Check-It as property testing library. Contains GitHub actions for Linux, MacOS and Windows in ./.github/workflows/test.yml.

Lisp Systems (Packages) Used#

Usage#

To be able to download all needed systems, Ocicl must be installed and setup to work in your REPL.

Downloading Systems#

In a REPL with Ocicl enabled, run

(asdf:load-system :commonlisp-template)

Now the directory ./systems/ should exist and be filled with the downloaded dependencies.

Running Tests#

To run all tests defined by function run-tests in file ./test/main-test.lisp either call ASDF's test runner in a REPL:

(asdf:test-system :commonlisp-template)

or evaluate it on the command line, for example using SBCL:

sbcl --non-interactive --eval '(asdf:test-system :commonlisp-template)'

For the configuration of the test runner, see the definition of system commonlisp-template/test in file ./commonlisp-template.asd

To run tests in the terminal or in a CI, run (commonlisp-template/test:run-tests-exit) which quits the REPL with an exit code.

sbcl --non-interactive --eval '(asdf:load-system :commonlisp-template/test)'  --eval '(commonlisp-template/test:run-tests-exit)'

Generate the Executable#

The generate the executable commonlisp-template call asdf:make in a REPL:

(asdf:make :commonlisp-template)

or evaluate it on the command line, for example using SBCL:

sbcl --non-interactive --eval '(asdf:make :commonlisp-template)'

Blog Posts About This Project#

License#

This template is licensed under the MIT license, see file ./LICENSE