unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* Renaming some test files to the usual naming pattern
@ 2017-05-19  9:04 Philipp Stephani
  2017-06-09 15:28 ` Philipp Stephani
  0 siblings, 1 reply; 2+ messages in thread
From: Philipp Stephani @ 2017-05-19  9:04 UTC (permalink / raw)
  To: Emacs developers


[-- Attachment #1.1: Type: text/plain, Size: 76 bytes --]

Here's a patch to rename a couple of test files to have a -tests.el suffix.

[-- Attachment #1.2: Type: text/html, Size: 101 bytes --]

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: 0001-Give-test-files-a-tests.el-suffix.txt --]
[-- Type: text/plain; charset="US-ASCII";  name="0001-Give-test-files-a-tests.el-suffix.txt", Size: 3404 bytes --]

From 3ff66a86a694c02c0a2951957c3e8eb7767bc83a Mon Sep 17 00:00:00 2001
From: Philipp Stephani <phst@google.com>
Date: Fri, 19 May 2017 10:58:58 +0200
Subject: [PATCH] Give test files a -tests.el suffix

Rename a couple of test files that have the same name as the library
they test.  This harmonizes the naming pattern and makes it possible
to have the tests directories in the load path.
---
 test/lisp/eshell/{eshell.el => eshell-tests.el} | 4 ++--
 test/lisp/net/{puny.el => puny-tests.el}        | 4 ++--
 test/lisp/progmodes/{f90.el => f90-tests.el}    | 4 ++--
 test/lisp/vc/{vc-hg.el => vc-hg-tests.el}       | 4 ++--
 4 files changed, 8 insertions(+), 8 deletions(-)
 rename test/lisp/eshell/{eshell.el => eshell-tests.el} (99%)
 rename test/lisp/net/{puny.el => puny-tests.el} (92%)
 rename test/lisp/progmodes/{f90.el => f90-tests.el} (98%)
 rename test/lisp/vc/{vc-hg.el => vc-hg-tests.el} (96%)

diff --git a/test/lisp/eshell/eshell.el b/test/lisp/eshell/eshell-tests.el
similarity index 99%
rename from test/lisp/eshell/eshell.el
rename to test/lisp/eshell/eshell-tests.el
index dee6c17e02..363ef525e1 100644
--- a/test/lisp/eshell/eshell.el
+++ b/test/lisp/eshell/eshell-tests.el
@@ -1,4 +1,4 @@
-;;; tests/eshell.el --- Eshell test suite
+;;; tests/eshell-tests.el --- Eshell test suite
 
 ;; Copyright (C) 1999-2017 Free Software Foundation, Inc.
 
@@ -249,4 +249,4 @@ eshell-test-command-result
 
 (provide 'esh-test)
 
-;;; tests/eshell.el ends here
+;;; tests/eshell-tests.el ends here
diff --git a/test/lisp/net/puny.el b/test/lisp/net/puny-tests.el
similarity index 92%
rename from test/lisp/net/puny.el
rename to test/lisp/net/puny-tests.el
index b119e45d65..b06364e3b3 100644
--- a/test/lisp/net/puny.el
+++ b/test/lisp/net/puny-tests.el
@@ -1,4 +1,4 @@
-;;; puny.el --- tests for net/puny.el  -*- coding: utf-8; -*-
+;;; puny-tests.el --- tests for net/puny.el  -*- coding: utf-8; -*-
 
 ;; Copyright (C) 2017 Free Software Foundation, Inc.
 
@@ -38,4 +38,4 @@
   "Test puny decoding."
   (should (string= (puny-decode-string "xn--9dbdkw") "חנוך")))
 
-;;; puny.el ends here
+;;; puny-tests.el ends here
diff --git a/test/lisp/progmodes/f90.el b/test/lisp/progmodes/f90-tests.el
similarity index 98%
rename from test/lisp/progmodes/f90.el
rename to test/lisp/progmodes/f90-tests.el
index cda39eda37..533a67149e 100644
--- a/test/lisp/progmodes/f90.el
+++ b/test/lisp/progmodes/f90-tests.el
@@ -1,4 +1,4 @@
-;;; f90.el --- tests for progmodes/f90.el
+;;; f90-tests.el --- tests for progmodes/f90.el
 
 ;; Copyright (C) 2011-2017 Free Software Foundation, Inc.
 
@@ -273,4 +273,4 @@ f90-test-indent
     (forward-line -2)
     (should (= 2 (current-indentation))))) ; class is
 
-;;; f90.el ends here
+;;; f90-tests.el ends here
diff --git a/test/lisp/vc/vc-hg.el b/test/lisp/vc/vc-hg-tests.el
similarity index 96%
rename from test/lisp/vc/vc-hg.el
rename to test/lisp/vc/vc-hg-tests.el
index 8e4c9739e0..284e06a205 100644
--- a/test/lisp/vc/vc-hg.el
+++ b/test/lisp/vc/vc-hg-tests.el
@@ -1,4 +1,4 @@
-;;; vc-hg.el --- tests for vc/vc-hg.el
+;;; vc-hg-tests.el --- tests for vc/vc-hg.el
 
 ;; Copyright (C) 2016-2017 Free Software Foundation, Inc.
 
@@ -55,4 +55,4 @@
     (save-excursion (insert "philringnalda 218075 2014-11-28 CLOBBER:"))
     (should (floatp (vc-hg-annotate-time)))))
 
-;;; vc-hg.el ends here
+;;; vc-hg-tests.el ends here
-- 
2.13.0.303.g4ebf302169-goog


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: Renaming some test files to the usual naming pattern
  2017-05-19  9:04 Renaming some test files to the usual naming pattern Philipp Stephani
@ 2017-06-09 15:28 ` Philipp Stephani
  0 siblings, 0 replies; 2+ messages in thread
From: Philipp Stephani @ 2017-06-09 15:28 UTC (permalink / raw)
  To: Emacs developers

[-- Attachment #1: Type: text/plain, Size: 188 bytes --]

Pushed as 39121649be.

Philipp Stephani <p.stephani2@gmail.com> schrieb am Fr., 19. Mai 2017 um
11:04 Uhr:

> Here's a patch to rename a couple of test files to have a -tests.el suffix.
>

[-- Attachment #2: Type: text/html, Size: 453 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2017-06-09 15:28 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-05-19  9:04 Renaming some test files to the usual naming pattern Philipp Stephani
2017-06-09 15:28 ` Philipp Stephani

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).