diff options
author | Cayetano Santos <csantosb@inventati.org> | 2025-06-24 15:06:53 +0200 |
---|---|---|
committer | Hilton Chain <hako@ultrarare.space> | 2025-07-24 15:42:42 +0800 |
commit | 393c97e1533185b46201c9ef3a139c3e31af0a7f (patch) | |
tree | 0de883930972ff46117505eddd2190337c5dc86b /gnu/packages/emacs-xyz.scm | |
parent | d1589a228071a567fe05c188524b1fbe1e1c3ddc (diff) |
gnu: emacs-smartparens: Add tests.
* gnu/packages/emacs-xyz.scm (emacs-smartparens): Add tests.
[source]: Remove not basic tests.
[native-inputs]: Add yasnippet and ert-runner.
Change-Id: Ic562da9b454babdcc08011048497cfc74cb8d8a6
Signed-off-by: Hilton Chain <hako@ultrarare.space>
Diffstat (limited to 'gnu/packages/emacs-xyz.scm')
-rw-r--r-- | gnu/packages/emacs-xyz.scm | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/gnu/packages/emacs-xyz.scm b/gnu/packages/emacs-xyz.scm index a8ae38bc67..cd0c674fce 100644 --- a/gnu/packages/emacs-xyz.scm +++ b/gnu/packages/emacs-xyz.scm @@ -14468,9 +14468,46 @@ placed at the margin of the minibuffer for your completion candidates.") (url "https://github.com/Fuco1/smartparens") (commit commit))) (file-name (git-file-name name version)) + (modules '((guix build utils) + (ice-9 ftw) + (srfi srfi-26))) + (snippet + '(begin + ;; Taken from nextpnr package. + (define (delete-all-but directory . preserve) + (with-directory-excursion directory + (let* ((pred + (negate (cut member <> (append '("." "..") preserve)))) + (items (scandir "." pred))) + (for-each delete-file items)))) + ;; Only activate basic tests. + (delete-all-but "test" + "test-helper.el" + "smartparens-advice-test.el" + "smartparens-delete-pair-test.el" + "smartparens-elisp-test.el" + "smartparens-framework-test.el" + "smartparens-get-comment-bounds-test.el" + "smartparens-get-paired-expression-elisp-test.el" + "smartparens-get-prefix-test.el" + "smartparens-get-stringlike-expression-elisp-test.el" + "smartparens-get-stringlike-expression-python-test.el" + "smartparens-get-stringlike-expression-test.el" + "smartparens-get-suffix-test.el" + "smartparens-insertion-specification-parser-test.el" + "smartparens-markdown-test.el" + "smartparens-movement-test.el" + "smartparens-org-test.el" + "smartparens-region-ok-test.el" + "smartparens-rst-test.el" + "smartparens-search-fn-test.el" + "smartparens-settings-sp-pair-test.el" + "smartparens-skip-closing-pair-test.el"))) (sha256 (base32 "1nfd10kxd1l8bmxhaghhxphl424yg5qn6xcqaligwc3b406b566w")))) (build-system emacs-build-system) + (native-inputs + (list emacs-ert-runner emacs-yasnippet)) (propagated-inputs (list emacs-dash emacs-markdown-mode)) (home-page "https://github.com/Fuco1/smartparens") |