unofficial mirror of notmuch@notmuchmail.org
 help / color / mirror / code / Atom feed
* [PATCH] test: remove ".sh" extension from the recently added Emacs tests
@ 2012-01-28  4:47 Dmitry Kurochkin
  2012-01-28  5:23 ` Austin Clements
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Dmitry Kurochkin @ 2012-01-28  4:47 UTC (permalink / raw)
  To: notmuch

All test files, except for the recently added Emacs tests, do not have
".sh" extension.  So remove it from the new test files for consistency.
---
 test/emacs-address-cleaning    |   18 ++++++++++++++++++
 test/emacs-address-cleaning.sh |   18 ------------------
 test/emacs-test-functions      |    9 +++++++++
 test/emacs-test-functions.sh   |    9 ---------
 test/notmuch-test              |    4 ++--
 5 files changed, 29 insertions(+), 29 deletions(-)
 create mode 100755 test/emacs-address-cleaning
 delete mode 100755 test/emacs-address-cleaning.sh
 create mode 100755 test/emacs-test-functions
 delete mode 100755 test/emacs-test-functions.sh

diff --git a/test/emacs-address-cleaning b/test/emacs-address-cleaning
new file mode 100755
index 0000000..51018fe
--- /dev/null
+++ b/test/emacs-address-cleaning
@@ -0,0 +1,18 @@
+#!/usr/bin/env bash
+
+test_description="emacs address cleaning"
+. test-lib.sh
+
+test_begin_subtest "notmuch-test-address-clean part 1"
+test_emacs_expect_t \
+    '(load "emacs-address-cleaning.el") (notmuch-test-address-cleaning-1)'
+
+test_begin_subtest "notmuch-test-address-clean part 2"
+test_emacs_expect_t \
+    '(load "emacs-address-cleaning.el") (notmuch-test-address-cleaning-2)'
+
+test_begin_subtest "notmuch-test-address-clean part 3"
+test_emacs_expect_t \
+    '(load "emacs-address-cleaning.el") (notmuch-test-address-cleaning-3)'
+
+test_done
diff --git a/test/emacs-address-cleaning.sh b/test/emacs-address-cleaning.sh
deleted file mode 100755
index 51018fe..0000000
--- a/test/emacs-address-cleaning.sh
+++ /dev/null
@@ -1,18 +0,0 @@
-#!/usr/bin/env bash
-
-test_description="emacs address cleaning"
-. test-lib.sh
-
-test_begin_subtest "notmuch-test-address-clean part 1"
-test_emacs_expect_t \
-    '(load "emacs-address-cleaning.el") (notmuch-test-address-cleaning-1)'
-
-test_begin_subtest "notmuch-test-address-clean part 2"
-test_emacs_expect_t \
-    '(load "emacs-address-cleaning.el") (notmuch-test-address-cleaning-2)'
-
-test_begin_subtest "notmuch-test-address-clean part 3"
-test_emacs_expect_t \
-    '(load "emacs-address-cleaning.el") (notmuch-test-address-cleaning-3)'
-
-test_done
diff --git a/test/emacs-test-functions b/test/emacs-test-functions
new file mode 100755
index 0000000..0e1f9fc
--- /dev/null
+++ b/test/emacs-test-functions
@@ -0,0 +1,9 @@
+#!/usr/bin/env bash
+
+test_description="emacs test function sanity"
+. test-lib.sh
+
+test_begin_subtest "emacs test function sanity"
+test_emacs_expect_t 't'
+
+test_done
diff --git a/test/emacs-test-functions.sh b/test/emacs-test-functions.sh
deleted file mode 100755
index 0e1f9fc..0000000
--- a/test/emacs-test-functions.sh
+++ /dev/null
@@ -1,9 +0,0 @@
-#!/usr/bin/env bash
-
-test_description="emacs test function sanity"
-. test-lib.sh
-
-test_begin_subtest "emacs test function sanity"
-test_emacs_expect_t 't'
-
-test_done
diff --git a/test/notmuch-test b/test/notmuch-test
index 3f1740c..ced6b47 100755
--- a/test/notmuch-test
+++ b/test/notmuch-test
@@ -52,8 +52,8 @@ TESTS="
   python
   hooks
   argument-parsing
-  emacs-test-functions.sh
-  emacs-address-cleaning.sh
+  emacs-test-functions
+  emacs-address-cleaning
 "
 TESTS=${NOTMUCH_TESTS:=$TESTS}
 
-- 
1.7.8.3

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

* Re: [PATCH] test: remove ".sh" extension from the recently added Emacs tests
  2012-01-28  4:47 [PATCH] test: remove ".sh" extension from the recently added Emacs tests Dmitry Kurochkin
@ 2012-01-28  5:23 ` Austin Clements
  2012-01-28  8:08 ` David Edmondson
  2012-02-04 12:37 ` David Bremner
  2 siblings, 0 replies; 4+ messages in thread
From: Austin Clements @ 2012-01-28  5:23 UTC (permalink / raw)
  To: Dmitry Kurochkin; +Cc: notmuch

Quoth Dmitry Kurochkin on Jan 28 at  8:47 am:
> All test files, except for the recently added Emacs tests, do not have
> ".sh" extension.  So remove it from the new test files for consistency.

LGTM.

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

* Re: [PATCH] test: remove ".sh" extension from the recently added Emacs tests
  2012-01-28  4:47 [PATCH] test: remove ".sh" extension from the recently added Emacs tests Dmitry Kurochkin
  2012-01-28  5:23 ` Austin Clements
@ 2012-01-28  8:08 ` David Edmondson
  2012-02-04 12:37 ` David Bremner
  2 siblings, 0 replies; 4+ messages in thread
From: David Edmondson @ 2012-01-28  8:08 UTC (permalink / raw)
  To: Dmitry Kurochkin, notmuch

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

On Sat, 28 Jan 2012 08:47:39 +0400, Dmitry Kurochkin <dmitry.kurochkin@gmail.com> wrote:
> All test files, except for the recently added Emacs tests, do not have
> ".sh" extension.  So remove it from the new test files for consistency.

It's fine with me, though I'll point out that they have .sh because of
id:"87k44r8s0a.fsf@gmail.com":

>   I like the idea of putting elisp testing code into .el files and calling
>   functions from regular tests (that is why I added test-lib.el).  For
>   tests implemented in elisp, I propose adding a pair of files, e.g.:
> 
>     tests/emacs-address.sh - tests that call elisp functions
>     tests/emacs-address.el - elisp code that actually implements the tests

[-- Attachment #2: Type: application/pgp-signature, Size: 197 bytes --]

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

* Re: [PATCH] test: remove ".sh" extension from the recently added Emacs tests
  2012-01-28  4:47 [PATCH] test: remove ".sh" extension from the recently added Emacs tests Dmitry Kurochkin
  2012-01-28  5:23 ` Austin Clements
  2012-01-28  8:08 ` David Edmondson
@ 2012-02-04 12:37 ` David Bremner
  2 siblings, 0 replies; 4+ messages in thread
From: David Bremner @ 2012-02-04 12:37 UTC (permalink / raw)
  To: Dmitry Kurochkin, notmuch

On Sat, 28 Jan 2012 08:47:39 +0400, Dmitry Kurochkin <dmitry.kurochkin@gmail.com> wrote:
> All test files, except for the recently added Emacs tests, do not have
> ".sh" extension.  So remove it from the new test files for consistency.

pushed

d

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

end of thread, other threads:[~2012-02-04 12:37 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-01-28  4:47 [PATCH] test: remove ".sh" extension from the recently added Emacs tests Dmitry Kurochkin
2012-01-28  5:23 ` Austin Clements
2012-01-28  8:08 ` David Edmondson
2012-02-04 12:37 ` David Bremner

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

	https://yhetil.org/notmuch.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).