all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Philipp Stephani <p.stephani2@gmail.com>
To: Emacs developers <emacs-devel@gnu.org>
Subject: Renaming some test files to the usual naming pattern
Date: Fri, 19 May 2017 09:04:23 +0000	[thread overview]
Message-ID: <CAArVCkRC0+1gQL3rsvZXURJDNPiUWq-UOW5K7QHEEFrdF5J_uA@mail.gmail.com> (raw)


[-- 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


             reply	other threads:[~2017-05-19  9:04 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-05-19  9:04 Philipp Stephani [this message]
2017-06-09 15:28 ` Renaming some test files to the usual naming pattern Philipp Stephani

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAArVCkRC0+1gQL3rsvZXURJDNPiUWq-UOW5K7QHEEFrdF5J_uA@mail.gmail.com \
    --to=p.stephani2@gmail.com \
    --cc=emacs-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.