[PATCH] test: remove ".sh" extension from the recently added Emacs tests

2012-02-04 Thread David Bremner
On Sat, 28 Jan 2012 08:47:39 +0400, Dmitry Kurochkin  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


Re: [PATCH] test: remove .sh extension from the recently added Emacs tests

2012-02-04 Thread David Bremner
On Sat, 28 Jan 2012 08:47:39 +0400, Dmitry Kurochkin 
dmitry.kuroch...@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
___
notmuch mailing list
notmuch@notmuchmail.org
http://notmuchmail.org/mailman/listinfo/notmuch


[PATCH] test: remove ".sh" extension from the recently added Emacs tests

2012-01-28 Thread Dmitry Kurochkin
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 000..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..000
--- 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 000..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..000
--- 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



[PATCH] test: remove ".sh" extension from the recently added Emacs tests

2012-01-28 Thread David Edmondson
On Sat, 28 Jan 2012 08:47:39 +0400, Dmitry Kurochkin  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 at 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
-- next part --
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: not available
URL: 



[PATCH] test: remove ".sh" extension from the recently added Emacs tests

2012-01-28 Thread Austin Clements
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.


Re: [PATCH] test: remove .sh extension from the recently added Emacs tests

2012-01-28 Thread David Edmondson
On Sat, 28 Jan 2012 08:47:39 +0400, Dmitry Kurochkin 
dmitry.kuroch...@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@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


pgpjtkEDvWT4k.pgp
Description: PGP signature
___
notmuch mailing list
notmuch@notmuchmail.org
http://notmuchmail.org/mailman/listinfo/notmuch


Re: [PATCH] test: remove .sh extension from the recently added Emacs tests

2012-01-27 Thread Austin Clements
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.
___
notmuch mailing list
notmuch@notmuchmail.org
http://notmuchmail.org/mailman/listinfo/notmuch