* WL-MK (check-wl): New function.
+2001-08-29 TAKAHASHI Kaoru <kaoru@kaisei.org>
+
+ * Makefile (check): New rule
+ * WL-MK (check-wl): New function.
+ * tests/ChangeLog: New file.
+
+ * utils/ChangeLog: New file.
+
2001-08-28 Yuuichi Teranishi <teranisi@gohome.org>
* WL-ELS (ELMO-MODULES): Added `acap' and `slp'.
elc:
$(EMACS) $(FLAGS) -l WL-MK -f compile-wl-package $(LISPDIR) $(PIXMAPDIR)
+check:
+ $(EMACS) $(FLAGS) -l WL-MK -f check-wl $(LISPDIR) $(PIXMAPDIR)
+
install-elc:
$(EMACS) $(FLAGS) -l WL-MK -f install-wl-package $(LISPDIR) $(PIXMAPDIR)
(config-wl-pixmap-dir)
(princ "\n"))
+(defun check-wl ()
+ (config-wl-package)
+ (require 'lunit)
+ (let ((files (directory-files "tests" t "^test-.*\\.el$"))
+ (suite (lunit-make-test-suite)))
+ (while files
+ (if (file-regular-p (car files))
+ (progn
+ (load-file (car files))
+ (lunit-test-suite-add-test
+ suite (lunit-make-test-suite-from-class
+ (intern (file-name-sans-extension
+ (file-name-nondirectory (car files))))))))
+ (setq files (cdr files)))
+ (lunit suite)))
(defun wl-scan-source (path)
(let (ret)