Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add test suite and fix failing tests #74

Merged
merged 6 commits into from
Oct 18, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions .dir-locals.el
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
;; TODO: We have to be careful what variables we set here. Some can cause the
;; Eldev linters to not read the settings here. See emacs-eldev/eldev#83.
((nil
;; FIXME: This is just set to silence linter line-length warnings. It should
;; be set to an intentional value, then the long-lines fixed.
(fill-column . 167)
(indent-tabs-mode . nil)
(sentence-end-double-space . nil)))
2 changes: 2 additions & 0 deletions .envrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
direnv_layout_dir="$PWD/.cache/direnv"
use flake
10 changes: 10 additions & 0 deletions .github/renovate.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"extends": ["config:base"],
"lockFileMaintenance": {
"enabled":true
},
"nix": {
"enabled":true
}
}
6 changes: 5 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,5 @@
*.DS_Store
*.elc
/.cache/direnv/
/dist
/.eldev
/result
30 changes: 30 additions & 0 deletions Eldev
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
;;; Eldev --- Build configuration -*- mode: emacs-lisp; lexical-binding: t; -*-

(require 'eldev)
(require 'elisp-lint)

(define-error 'auto-dark-test-invalid-test-selection "Unknown test type")

(eldev-add-loading-roots 'test "initialize")

(eldev-defoption auto-dark-test-selection (type)
"Select tests to run; type can be `main' or `integration'"
:options (-T --test-type)
:for-command test
:value TYPE
:default-value 'main
(pcase (intern type)
('main
(setf eldev-test-fileset
`(:and ,eldev-test-fileset (:not "./tests/initialization"))))
('integration (setf eldev-test-fileset "./tests/initialization"))
(_ (signal 'auto-dark-test-invalid-test-selection (list type)))))

(setq
;; run all linters by default
eldev-lint-default t
;; ignore lisp files in the example directory
eldev-standard-excludes `(:or ,eldev-standard-excludes "./example")
;; and disable the ‘elisp-lint’ validators that are already covered by
;; ‘eldev-lint’ (see ‘eldev-linter-elisp’).
elisp-lint-ignored-validators '("checkdoc" "package-lint"))
Loading