Remove the .el suffix from all module use
I don’t think there’s anywhere where the module file name is used in this particular situation. That’s all done by Make.
This commit is contained in:
parent
f58e528439
commit
3c005ded28
1 changed files with 5 additions and 11 deletions
16
generate.el
16
generate.el
|
@ -25,18 +25,10 @@
|
|||
("script" . ,(format "make integration-test-%s TEST_ARCHIVE=$(realpath bin/)" module))))
|
||||
|
||||
(defun unit-test-exists-p (module)
|
||||
(file-exists-p
|
||||
(format "test/%s-test.el" (string-remove-suffix ".el" module))))
|
||||
(file-exists-p (format "test/%s-test.el" module)))
|
||||
|
||||
(defun integration-test-exists-p (module)
|
||||
(file-exists-p
|
||||
(format "test/integration/%s.bats" (string-remove-suffix ".el" module))))
|
||||
|
||||
(defun alist-p (lst)
|
||||
(and (listp lst)
|
||||
(listp (car lst))
|
||||
(= (length lst) 2)
|
||||
(not (proper-list-p (car lst)))))
|
||||
(file-exists-p (format "test/integration/%s.bats")))
|
||||
|
||||
(defun prepare-value-for-yaml (object)
|
||||
(pcase object
|
||||
|
@ -55,7 +47,9 @@
|
|||
hash))
|
||||
|
||||
(defun generate ()
|
||||
(let* ((modules (directory-files "." nil (rx string-start "oni-")))
|
||||
(let* ((modules
|
||||
(mapcar (lambda (file) (string-remove-suffix ".el" file))
|
||||
(directory-files "." nil (rx string-start "oni-"))))
|
||||
(directories (cl-remove-if-not #'file-directory-p modules)))
|
||||
(with-temp-buffer
|
||||
(insert
|
||||
|
|
Loading…
Reference in a new issue