]> git.cworth.org Git - notmuch/commitdiff
test: move test_ruby() inside the only client
authorFelipe Contreras <felipe.contreras@gmail.com>
Sat, 1 May 2021 11:59:15 +0000 (06:59 -0500)
committerDavid Bremner <david@tethera.net>
Sun, 2 May 2021 11:11:04 +0000 (08:11 -0300)
Not much point in polluting the main library, and also will be useful to
modify it in tandem with the tests.

Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
test/T395-ruby.sh
test/test-lib.sh

index a0b76eb89ca1ba1da02c861a39f1e280105dbaf6..fec1f5ef322e4d38568225b117a158959df48b1e 100755 (executable)
@@ -8,6 +8,10 @@ fi
 
 add_email_corpus
 
+test_ruby() {
+    MAIL_DIR=$MAIL_DIR $NOTMUCH_RUBY -I "$NOTMUCH_BUILDDIR/bindings/ruby"> OUTPUT
+}
+
 test_begin_subtest "compare thread ids"
 test_ruby <<"EOF"
 require 'notmuch'
index 88e2a82f7337e9bf0a755b70187e8bbc342bada1..d46bb4c34a9165599542b2eff981e5d224f63d67 100644 (file)
@@ -1124,10 +1124,6 @@ test_python() {
        $NOTMUCH_PYTHON -B - > OUTPUT
 }
 
-test_ruby() {
-    MAIL_DIR=$MAIL_DIR $NOTMUCH_RUBY -I "$NOTMUCH_BUILDDIR/bindings/ruby"> OUTPUT
-}
-
 test_C () {
     local exec_file test_file
     exec_file="test${test_count}"