summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/test-basic.el8
-rw-r--r--test/test-buffer.el5
-rw-r--r--test/test-fns.el6
-rw-r--r--test/test-no-clear.el6
4 files changed, 23 insertions, 2 deletions
diff --git a/test/test-basic.el b/test/test-basic.el
index b9c6314..d8c2fba 100644
--- a/test/test-basic.el
+++ b/test/test-basic.el
@@ -1,5 +1,5 @@
;;; test-simple.el --- Simple Unit Test Framework for Emacs Lisp
-;; Copyright (C) 2015 Free Software Foundation, Inc
+;; Copyright (C) 2015, 2026 Free Software Foundation, Inc
;; Author: Rocky Bernstein <rocky@gnu.org>
;; This program is free software: you can redistribute it and/or
;; modify it under the terms of the GNU General Public License as
@@ -14,8 +14,14 @@
;; You should have received a copy of the GNU General Public License
;; along with this program. If not, see
;; <http://www.gnu.org/licenses/>.
+
+;; Press C-x C-e at the end of the next line to run this file test non-interactively
+;; (test-simple-run "emacs -batch -L %s -l %s" (file-name-directory (locate-library "test-simple.elc")) buffer-file-name)
+
(require 'cl-lib)
(load-file "../test-simple.el")
+(get-buffer-create "*test-simple*")
+
(test-simple-start "test-simple.el")
(note "basic-tests")
diff --git a/test/test-buffer.el b/test/test-buffer.el
index edef897..30d4399 100644
--- a/test/test-buffer.el
+++ b/test/test-buffer.el
@@ -14,6 +14,11 @@
;; You should have received a copy of the GNU General Public License
;; along with this program. If not, see
;; <http://www.gnu.org/licenses/>.
+
+;; Press C-x C-e at the end of the next line to run this file test non-interactively
+;; (test-simple-run "emacs -batch -L %s -l %s" (file-name-directory (locate-library "test-simple.elc")) buffer-file-name)
+
+
(load-file "../test-simple.el")
(test-simple-start "test-simple.el")
diff --git a/test/test-fns.el b/test/test-fns.el
index cad655e..24e85e5 100644
--- a/test/test-fns.el
+++ b/test/test-fns.el
@@ -1,5 +1,5 @@
;;; test-simple.el --- Simple Unit Test Framework for Emacs Lisp
-;; Copyright (C) 2015 Free Software Foundation, Inc
+;; Copyright (C) 2015, 2026 Free Software Foundation, Inc
;; Author: Rocky Bernstein <rocky@gnu.org>
;; This program is free software: you can redistribute it and/or
;; modify it under the terms of the GNU General Public License as
@@ -14,6 +14,10 @@
;; You should have received a copy of the GNU General Public License
;; along with this program. If not, see
;; <http://www.gnu.org/licenses/>.
+
+;; Press C-x C-e at the end of the next line to run this file test non-interactively
+;; (test-simple-run "emacs -batch -L %s -l %s" (file-name-directory (locate-library "test-simple.elc")) buffer-file-name)
+
(require 'cl-lib)
(load-file "../test-simple.el")
(test-simple-clear)
diff --git a/test/test-no-clear.el b/test/test-no-clear.el
index 748baa0..9a71f33 100644
--- a/test/test-no-clear.el
+++ b/test/test-no-clear.el
@@ -14,8 +14,14 @@
;; You should have received a copy of the GNU General Public License
;; along with this program. If not, see
;; <http://www.gnu.org/licenses/>.
+
+;; Press C-x C-e at the end of the next line to run this file test non-interactively
+;; (test-simple-run "emacs -batch -L %s -l %s" (file-name-directory (locate-library "test-simple.elc")) buffer-file-name)
+
(require 'cl-lib)
(load-file "../test-simple.el")
+(get-buffer-create "*test-simple*")
+
;; We don't do this or test-simple-start
;; (test-simple-clear)