~rgrjr/rgr-hacks

bb3c4b4fd5620187acb6a416f5b163056b4b51b4 — Bob Rogers 5 months ago b514449
Add an umbrella test-rgr-hacks.el script

* test/test-rgr-hacks.el (added):
   + Umbrella test file, loads everything (though currently just one
     file) and runs all tests.
* makefile:
   + (test-rgr-hacks):  Replace the explicit "--batch --load" stuff with
     just the one test-rgr-hacks.el use.
2 files changed, 15 insertions(+), 5 deletions(-)

M makefile
A test/test-rgr-hacks.el
M makefile => makefile +2 -5
@@ 25,11 25,8 @@ imported-autoloads:		../imported
	    emacs --batch --load ../rgr-hacks/rgr-random-hacks.el \
		-f rgr-batch-update-autoloads $^ loaddefs.el

test-rgr-hacks:
	emacs --batch --load rgr-hacks-autoloads.el \
		--load rgr-abbrev-completion.elc \
		--load test/test-rgr-abbrev-completion.el \
		--eval '(ert-run-tests-batch-and-exit)'
test-rgr-hacks:		rgr-hacks-autoloads.el
	emacs --batch --load test/test-rgr-hacks.el

clean:
	rm -f *.elc

A test/test-rgr-hacks.el => test/test-rgr-hacks.el +13 -0
@@ 0,0 1,13 @@
;;; test-rgr-hacks.el --- test rgr-hacks code -*- lexical-binding: t -*-
;;
;; Copyright (C) 2023 Robert G Rogers Jr.
;;

(add-to-list 'load-path ".")

(load "rgr-hacks-autoloads.el")

(dolist (f (directory-files "test/" nil "[.]el$" t))
  (unless (equal f "test-rgr-hacks.el")
    (load (concat "test/" f))))
(ert-run-tests-batch-and-exit)